Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_dataquery_execute

Execute SQL queries synchronously on Ncloud Data Query's Trino-based serverless service to retrieve paginated results directly for data analysis and reporting.

Instructions

Execute a SQL query synchronously on Ncloud Data Query (Trino-based serverless query service). Returns results directly with pagination support.

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": "ncloud_dataquery_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSQL query to execute
isReuseNoWhether to reuse cached query results (default: false)
timeoutNoQuery execution timeout in seconds (1-60, default: 20)
databaseNoDatabase name for query execution
projectIdNoProject ID for query execution
dataSourceNoData source name for query execution
reuseMaxAgeNoMax age in minutes for reusing cached results (1-10080, default: 60). Required if isReuse=true
executionParametersNoQuery execution parameters (for parameterized queries with '?')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.10.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses only that execution is synchronous and results come back inline. It omits result-size limits, error/timeout behavior beyond the schema's own field, cost or resource implications of running Trino queries, and how 'pagination support' is actually triggered given no pagination parameter exists in the schema. The claim of pagination is stated but left unactionable.

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

Conciseness4/5

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

Two tight sentences with the core action front-loaded and no filler. The trailing 'with pagination support' is the one clause that costs more than it earns, since nothing in the schema lets an agent act on it.

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 an 8-parameter mutation-class query tool with no annotations and no output schema, the description does too little: it never describes the shape of returned results, result-set or row limits, or how partial/paginated output is retrieved. An agent would have to guess at both calling preconditions and interpreting responses.

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 every one of the 8 parameters (including defaults, ranges, and the isReuse/reuseMaxAge dependency) is already documented in structured data. The description adds no meaning beyond the schema and does not address how database, projectId, or dataSource scope the query, so 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?

States a specific verb and resource (execute a SQL query) and adds the differentiating qualifier 'synchronously' on a named Trino-based serverless service, which separates it from the async sibling without naming it. Slightly short of 5 because it never explicitly contrasts with ncloud_dataquery_execute_async or explains what 'synchronously' means in terms of blocking/polling.

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?

Usage is only implied: 'synchronously' and 'returns results directly' suggest this is the choice when the caller wants results in one call rather than the submit-then-get-result pattern of the async sibling. There is no explicit when-to-use, no when-not, and no mention of long-running queries that should be routed to the async tool instead.

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

Deploy Server

Other Tools