executeQuery
executeQueryExecute SQL queries (SELECT, INSERT, UPDATE, DELETE, EXPLAIN) on a database via NeoSQL, using the current project context.
Instructions
Execute a SQL query on the database through NeoSQL. Supports SELECT, INSERT, UPDATE, DELETE, and EXPLAIN statements. DDL statements (CREATE, ALTER, DROP, TRUNCATE) are NOT allowed — use createTables or modifyTables tools instead. SELECT and EXPLAIN return result rows (up to 200 rows). Uses the current context (project/connection/schema).
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": {
"sql": "<sql>"
},
"name": "executeQuery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement to execute. Must not be DDL (CREATE/ALTER/DROP/TRUNCATE). | |
| connectionId | No | NeoSQL connection ID from listConnections. If omitted, uses current context connectionId. | |
| schema | No | MCP-enabled database schema name from listConnections. If omitted, uses current context schema. |