cache_query
Send an LLM request through the caching proxy. Returns cached response if available, otherwise proxies to upstream LLM.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"path": "<path>",
"body": "<body>",
"api_key": "<api_key>"
},
"name": "cache_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | JSON request body as string | |
| path | Yes | API path (e.g. /v1/chat/completions) | |
| api_key | Yes | API key for the upstream provider | |
| provider | Yes | LLM provider to proxy to | |
| cache_ttl | No | Cache TTL in seconds (default 86400) |