trace_usage
Traces client code to detect API calls including MCP tool calls, HTTP requests, and GraphQL hooks, identifying how properties are accessed on responses.
Instructions
Trace how client code calls APIs. Detects: MCP callTool(), fetch/axios HTTP calls, Apollo Client hooks (useQuery/useMutation), Python requests/aiohttp/httpx, and tracks property access patterns on responses.
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": {
"rootDir": "<rootDir>"
},
"name": "trace_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootDir | Yes | Root directory of client/consumer source code | |
| include | No | Glob patterns to include | |
| exclude | No | Glob patterns to exclude |