suggest_query
Suggest SQL queries that should be executed manually, providing the query and reason to guide database operations with explicit user approval.
Instructions
Suggests a query that should be executed manually.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | ||
| query | Yes | ||
| reason | No |
Implementation Reference
- src/index.js:156-164 (handler)The handler for the suggest_query tool. It extracts connection, query, and reason from args, then returns a message indicating manual execution is required, along with the query details.
case "suggest_query": { const { connection, query, reason } = args || {}; return ok({ message: "MANUAL EXECUTION REQUIRED", connection, reason: reason || "Write operation", query, }); } - src/tools.js:98-110 (registration)The tool definition registration for suggest_query. Defines name, description, and inputSchema with connection (string), query (string), and reason (string). connection and query are required.
tools.push({ name: "suggest_query", description: "Suggests a query that should be executed manually.", inputSchema: { type: "object", properties: { connection: { type: "string" }, query: { type: "string" }, reason: { type: "string" }, }, required: ["connection", "query"], }, });