get_ai_calls
Get recent individual AI/LLM calls with model, provider, tokens, cost, latency, and status. Helps answer 'what did my last AI calls look like?' or 'show me failed AI calls'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ai_calls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Lookback hours (1-168, default 24) | |
| limit | No | Max results (1-200, default 50) | |
| model | No | Filter by model name (e.g., 'gpt-4o', 'claude-3-5-sonnet') | |
| provider | No | Filter by provider (e.g., 'openai', 'anthropic', 'workers-ai') |