Skip to main content
Glama
IBM watsonx.data MCP Server

IBM watsonx.data MCP Server

Official
by IBM

Execute Select

execute_select

Run read-only SELECT queries against IBM watsonx.data to retrieve rows from a specified catalog, schema, and running engine, with optional row limits.

Instructions

Execute read-only SELECT queries against watsonx.data.

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>",
      "catalog_name": "<catalog_name>",
      "schema_name": "<schema_name>",
      "engine_id": "<engine_id>"
    },
    "name": "execute_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSQL SELECT query to execute (must start with SELECT)
limitNoMax rows to return (default: 500 if no LIMIT in query). Note: Using high limits will consume more tokens.
engine_idYesEngine to run query on (from list_engines, must be running)
schema_nameYesDefault schema for unqualified table names
catalog_nameYesTarget catalog (e.g., "iceberg_data", "tpch")

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.5
    • addedInput schema / properties / catalog_name / description
      Added value: +"Target catalog (e.g., \"iceberg_data\", \"tpch\")"
    • addedInput schema / properties / engine_id / description
      Added value: +"Engine to run query on (from list_engines, must be running)"
    • addedInput schema / properties / limit / description
      Added value: +"Max rows to return (default: 500 if no LIMIT in query). Note: Using high limits will consume more tokens."
    • addedInput schema / properties / schema_name / description
      Added value: +"Default schema for unqualified table names"
    • addedInput schema / properties / sql / description
      Added value: +"SQL SELECT query to execute (must start with SELECT)"
  2. First observedv0.1.4

TDQS

C2.9/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 behavioral burden, yet it only says 'read-only' — a claim the schema already makes via 'must start with SELECT'. It says nothing about engine-running prerequisites, timeouts, cost/token implications of large result sets, or error behavior on invalid SQL.

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?

A single front-loaded sentence with zero filler or redundancy. It is efficient, though the brevity borders on under-specification rather than being optimally informative.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the parameters are fully documented in the schema. However, for a query-execution tool with four required parameters and no annotations, the description omits operational context (engine must be running, alternatives for read-only metadata or plan inspection).

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 five parameters (sql, limit, engine_id, schema_name, catalog_name) are already documented in the input schema. The description adds no meaning beyond that, which meets the baseline 3 for fully-covered schemas.

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 names a specific verb and resource ('Execute read-only SELECT queries') and the 'read-only SELECT' qualifier implicitly separates it from execute_insert and execute_update among the siblings. It stops short of explicitly naming when a different sibling (e.g., explain_query) is the better fit.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance: nothing tells the agent to prefer explain_query for planning, describe_table/list_tables for metadata, or how to choose between this and execute_insert. The only constraint is carried by the schema, not the description.

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