List Agent Tool Usage
list_agent_tool_usageFor one agent over the last hours (default 168, at most 720), every tool its LLM calls offered (listed among the tool definitions), with how many sessions were offered it (sessions_offered), how many of those called it at least once (sessions_called), and usage_pct = sessions_called / sessions_offered * 100 to one decimal. never_used marks a tool that was offered and never called. Ordered with used tools first by usage_pct highest first (ties: more sessions offered, then tool name), and never-used tools last. tool is the matched name: lower-cased, with an MCP prefix removed, so mcp__srv__search and search are one tool; display_name is the spelling most sessions used. Sessions whose LLM calls declared no tools are unknown, not tool-less: they count toward neither number, and sessions_with_tool_definitions says how many sessions the figures rest on. Each tool lists up to 5 skipped_session_ids, newest first: sessions that were offered it and did not call it. Two bounds apply. The window is at most 720 hours. Example sessions are looked up for only the first 30 tools in the response order that have any skipping session; later tools show skipped_session_ids [] although sessions_called is below sessions_offered. An agent with no such sessions answers 200 with tools [] (an agent name is not a registry entry).
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": {
"workspaceID": "<workspaceID>",
"agentName": "<agentName>"
},
"name": "list_agent_tool_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How far back to look, in hours: the window is the last <hours> hours up to now. Default 168 (7 days), at most 720 (30 days) | |
| agentName | Yes | The agent's name as it appears on its spans | |
| workspaceID | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | Yes | The window that was read, in hours | |
| tools | Yes | Every tool offered to the agent in the window, ordered: tools that were used before tools that never were, then by usage_pct highest first, then by sessions_offered highest first, then by tool name. [] when none was offered | |
| $schema | No | A URL to the JSON Schema for this object. | |
| agent_name | Yes | The agent asked about, as given | |
| sessions_with_tool_definitions | Yes | How many of the agent's sessions in the window declared tools on any LLM call. Sessions that declared none are unknown, not tool-less, and are counted nowhere in this response. 0 for an agent with no such session, including one that never reported anything |