api_analytics
View API usage analytics per project or system-wide, including call counts, success rates, latency, token usage, top tools, and daily trends.
Instructions
View API usage analytics per project or system-wide. Shows call counts, success rates, latency, token usage, top tools, and daily trends.
Scopes:
project— Analytics for a specific projectsystem— System-wide aggregate analytics
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": {
"scope": "<scope>"
},
"name": "api_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to analyze (default: 30). | |
| scope | Yes | Analytics scope: 'project' for per-project, 'system' for global. | |
| project | No | Project identifier (required when scope='project'). |