query
Execute read-only SQL SELECT statements against PostgreSQL staging, test, or prod databases to retrieve data safely without write operations.
Instructions
Execute a read-only SQL query on a PostgreSQL database.
⛔ WRITE OPERATIONS ARE STRICTLY FORBIDDEN (INSERT, UPDATE, DELETE, DROP, etc.)
Always use schema-qualified table names (e.g., schema.table_name)
Only SELECT queries are accepted
Use parameterized queries for user-provided values
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": {
"env": "<env>",
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | Target environment (staging, test, prod) | |
| sql | Yes | SQL SELECT query to execute (read-only) | |
| params | No | Optional parameters for parameterized queries |