execute_query
Execute read-only SQL SELECT queries on a selected database connection, limiting rows returned for controlled data retrieval.
Instructions
Execute a SQL query on a specific database connection (read-only queries)
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": {
"connectionId": "<connectionId>",
"query": "<query>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL query to execute (SELECT statements only) | |
| maxRows | No | Maximum number of rows to return (default: 1000) | |
| connectionId | Yes | The ID or name of the database connection to use |