Skip to main content
Glama
Kole MCP Server

Kole MCP Server

Official
by SyneHQ

execute_query

Run SQL or natural-language queries against connected databases to analyze data, build reports, and perform database operations within API key permissions and connector policies.

Instructions

Execute a SQL query or natural language query against your data through SyneHQ Kole. Supports SQL queries subject to the API key permission and connector policy. Perfect for data analysis, reporting, and database operations.

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": "<query>"
    },
    "name": "execute_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
psqlNoDeprecated: CLI metacommands are disabled; use ordinary SQL
limitNoMaximum number of rows to return (helps with large result sets)
queryYesSQL query or natural language query to execute. Examples: - 'SELECT * FROM users LIMIT 10' - 'Show me the top 5 customers by revenue' - 'What are the active subscriptions?'
userIdNoUser ID for query tracking and audit logs
timeoutNoQuery timeout in milliseconds (default: 30000)
databaseNoDatabase name to execute the query against.
connectionIdNoConnection ID for the database. If not provided, uses SYNEHQ_CONNECTION_ID environment variable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.10

TDQS

B3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full behavioral burden and it omits the single most important fact for a SQL execution tool: whether queries can mutate or drop data. It does add that execution is 'subject to the API key permission and connector policy', which is useful, but permission failures, timeouts, row caps, and destructive-statement handling stay unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action, which is good. The closing sentence ('Perfect for data analysis, reporting, and database operations') is generic marketing that adds no decision-relevant information and could be replaced by actual behavioral constraints.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a seven-parameter query executor with no annotations and no output schema, the description leaves critical gaps: it says nothing about result shape, whether the limit parameter truncates silently, timeout behavior, or whether writes are permitted. What is present is barely enough for an agent to call the tool safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all seven parameters (including psql, limit, timeout, connectionId, userId) are already documented in the schema. The description only restates that the query may be SQL or natural language, which the schema also states, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Execute a SQL query or natural language query against your data') and identifies the backend (SyneHQ Kole), which distinguishes it from the metadata siblings such as get_tables and get_table_schema. It stops short of explicitly contrasting itself with those siblings, so an agent must infer the read-vs-execute split.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Perfect for data analysis, reporting, and database operations' implies a usage context but names no alternative tool and gives no exclusions or prerequisites (e.g. inspect schema first, or use get_connections to obtain a connectionId). The agent is left to infer when this is the right call versus the sibling inspection tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.