query_db
Execute read-only SELECT queries on a configured database to inspect data within a row limit.
Instructions
Executes a caller-supplied SELECT statement against a configured database, bounded by row limit. Only SELECT is permitted.
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": {
"db": "<db>",
"sql": "<sql>"
},
"name": "query_db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Database name as defined in infra-mcp.yaml | |
| sql | Yes | SELECT statement to execute; non-SELECT statements are rejected | |
| limit | No | Maximum rows to return; server-capped at 100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |