Skip to main content
Glama
IBM watsonx.data MCP Server

IBM watsonx.data MCP Server

Official
by IBM

Add Columns

add_columns

Adds one or more columns to an existing table in a watsonx.data schema by specifying column names and data types.

Instructions

Add one or more columns to a table in a watsonx.data schema.

Note: Data types are typically specified in lowercase (e.g., "varchar", "int", "decimal"). While the API pattern allows both cases, lowercase is recommended for compatibility.

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": {
      "catalog_name": "<catalog_name>",
      "schema_name": "<schema_name>",
      "table_name": "<table_name>",
      "columns": "<columns>",
      "engine_id": "<engine_id>"
    },
    "name": "add_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsYesList of column definitions, each with: name (required), type (required, lowercase recommended), comment (optional), extra (optional), precision (optional), scale (optional)
engine_idYesEngine ID to use for the operation (from list_engines)
table_nameYesTable to add columns to
schema_nameYesSchema containing the table
catalog_nameYesCatalog containing the table (e.g., "iceberg_data")

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: +"Catalog containing the table (e.g., \"iceberg_data\")"
    • addedInput schema / properties / columns / description
      Added value: +"List of column definitions, each with: name (required), type (required, lowercase recommended),\n     comment (optional), extra (optional), precision (optional), scale (optional)"
    • addedInput schema / properties / engine_id / description
      Added value: +"Engine ID to use for the operation (from list_engines)"
    • addedInput schema / properties / schema_name / description
      Added value: +"Schema containing the table"
    • addedInput schema / properties / table_name / description
      Added value: +"Table to add columns to"
  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 provided, so the description carries the full behavioral burden. It only adds a lowercase data-type recommendation and omits permissions, transactional effects, handling of existing columns, failure modes, idempotency, and engine readiness.

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?

The description is short and front-loads the purpose in one clear sentence. The lowercase compatibility note is relevant but partly redundant with the schema, so it is efficient without being perfectly economical.

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 do not need explanation, and the input schema fully documents the parameters. Still, for a schema-mutating tool with no annotations, the description is thin on prerequisites and side effects.

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 the schema already documents all five parameters, including the columns object and engine_id. The description's lowercase note duplicates schema text and adds little new parameter meaning beyond that baseline.

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 states a specific verb and resource: adding one or more columns to a table in a watsonx.data schema. This clearly identifies the operation, though it does not explicitly contrast it with siblings such as rename_column or create_schema.

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 guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. The agent is left to infer that this is the right choice whenever columns need to be added.

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