scan_project_queries
Statically scans a project for SQL and ORM/query patterns, detects N+1 loops, masks PII literals, and produces a consolidated per-table index plan to guide database performance tuning.
Instructions
Statically scan a codebase directory to extract raw SQL and ORM/Query Builder patterns (Go, PHP/Laravel, TS/Prisma, Python), detect N+1 query loops, mask PII literals, and synthesize a holistic consolidated index plan per table.
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": {
"project_root_path": "<project_root_path>",
"dialect": "<dialect>"
},
"name": "scan_project_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dialect | Yes | ||
| focus_tables | No | ||
| exclude_globs | No | ||
| target_languages | No | ||
| max_files_to_scan | No | ||
| project_root_path | Yes | ||
| existing_schema_ddl | No | ||
| migration_files_dir | No |