query_api
Query your API graph with natural language to find routes, models, and middleware. Identify unprotected routes or unused models.
Instructions
Query the API graph with natural language. Builds a graph of routes, models, frontend components, and middleware, then queries it. Examples: "unprotected routes", "routes that write to users", "unused models".
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": {
"projectPath": "<projectPath>",
"query": "<query>"
},
"name": "query_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language query (e.g., "unprotected routes", "routes that write to users") | |
| rebuild | No | Force rebuild the API graph (default: use cache) | |
| projectPath | Yes | Absolute path to the project root directory |