Skip to main content
Glama
IBM watsonx.data MCP Server

IBM watsonx.data MCP Server

Official
by IBM

Execute Insert

execute_insert

Runs INSERT queries against watsonx.data using a catalog, schema, engine, and SQL statement to add data to lakehouse tables.

Instructions

Execute INSERT 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_insert"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSQL INSERT query to execute (must start with INSERT)
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", "hive_data")

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.5
    • addedInput schema / properties / catalog_name / description
      Added value: +"Target catalog (e.g., \"iceberg_data\", \"hive_data\")"
    • addedInput schema / properties / engine_id / description
      Added value: +"Engine to run query on (from list_engines, must be running)"
    • addedInput schema / properties / schema_name / description
      Added value: +"Default schema for unqualified table names"
    • addedInput schema / properties / sql / description
      Added value: +"SQL INSERT query to execute (must start with INSERT)"
  2. First observedv0.1.4

TDQS

B3.2/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 for a write operation. It does not disclose that this mutates data, whether the write is committed or transactional, whether permissions are required, or what happens on partial failure. Saying 'Execute INSERT queries' restates the name without adding behavioral context.

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 no filler or redundancy. It is appropriately sized for what it says, though the brevity reflects under-specification rather than disciplined economy.

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?

Parameters are fully documented and an output schema exists, so return values need not be explained. However, for a mutation tool with zero annotations, the definition leaves a gap around side effects and safety that the structured data does not cover.

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%, with each of the four required parameters documented inline (sql, engine_id, schema_name, catalog_name), so the schema does the heavy lifting. The description adds no syntax hints, catalog examples, or naming caveats beyond what the schema already says.

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 INSERT queries against watsonx.data'), which is enough to separate it from execute_select and execute_update by name and operation. It stops short of explicitly contrasting with those siblings or stating the scope of what an INSERT can target.

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 implied by the verb: use this when you need to insert rows, not read or modify them. There is no explicit statement of when to prefer execute_update, no prerequisites (engine must be running is only in the schema), and no exclusions such as multi-statement or DDL restrictions.

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