Run allow-listed SQL
run_named_queryExecute parameterized SQL queries using allow-listed templates on an MCP server. Provide query ID and parameters for secure, predefined database operations.
Instructions
Execute a parameterized, allow-listed SQL template
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": {
"query_id": "<query_id>"
},
"name": "run_named_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Named params for the template | |
| query_id | Yes | Template key in the allow-list |