get_agent_usage
Retrieve token usage for a specific agent, with optional filtering by run ID to limit scope.
Instructions
Get token usage for an agent, optionally scoped to one run (GET .../usage).
Args: agent_id: Agent id (for example bc-...). run_id: Optional run id to scope usage.
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": {
"agent_id": "<agent_id>"
},
"name": "get_agent_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | ||
| agent_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||