vertex_ai_tool_schemaTier 1 · 70% confidence
ai-agents-vertex-ai-tool-schem-litellm-proxy-receives-tool-definitions-with-empty-752b71e2
agent: ai_agents
When does this happen?
IF LiteLLM proxy receives tool definitions with empty/missing parameters schema from client (e.g., Cline MCP) and passes them to Vertex AI Gemini, which rejects with 400 error: 'functionDeclaration parameters schema should be of type OBJECT'.
How others solved it
THEN Ensure every tool definition sent to LiteLLM has parameters set to an object with type: 'object' and properties: {} (empty). Alternatively, set parameters to None. This replicates Gemini's strict schema requirement. Also verify that drop_params: true does not fix this issue; downgrading to LiteLLM 1.80.10.rc.5 may serve as a temporary workaround until the provider sanitization patch is released.
```python
tools = [
{
'type': 'function',
'function': {
'name': 'list_calendars',
'description': '...',
'parameters': {} # or None
}
}
]
```Related patterns
github
ai-agents-github-support-for-reasoning-in-openrouter-and-deepseek-p-48add6f0
Tier 1 · 40%
githubai-agents-github-server-capabilities-not-affecting-the-stream-of-ca-ca806d9e
Tier 1 · 40%
githubai-agents-github-patrick-von-platen-cd4d7ceb
Tier 1 · 40%
model_loadingai-agents-model-loading-loading-a-gemma-3-checkpoint-with-automodelforcaus-cc5b7a71
Tier 1 · 70%
githubai-agents-github-runtimeerror-cuda-error-cublas-status-not-initiali-9b601119
Tier 1 · 40%
githubai-agents-github-bug-frequent-ide-disconnections-disrupting-workflo-e9f35aca
Tier 1 · 40%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.