Skip to main content
Glama

add_column

Add a column. data_type is spelled as describe_table reports it (list_column_types lists them), default string. For fixed options use categorical with the labels in categories. Returns the new column_id and the table version. Pass idempotency_key to avoid a duplicate column on retry.

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": {
      "model_id": "<model_id>",
      "table_id": "<table_id>",
      "name": "<name>"
    },
    "name": "add_column"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDisplay name for the new column.
model_idYes
table_idYes
data_typeNoColumn type, in the same spelling `describe_table` reports: "string", "i64", "f64", "bool", "date", … (`list_column_types` lists them all). Defaults to "string".
categoriesNoFor a "categorical" column: its option labels (implies "categorical" when `data_type` is omitted). Cells then take these labels.
idempotency_keyNoOptional idempotency key — a retry with the same key will not add a second column.
expected_versionNoOptional optimistic-concurrency guard (see edit_rows).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description adds real value on top: the return payload (column_id and table version) and the idempotency-on-retry guarantee. It leaves the optimistic-concurrency semantics of expected_version entirely to a pointer at edit_rows, which is thin for a mutating tool.

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

Conciseness5/5

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

Four dense sentences, front-loaded with the action, then parameter sourcing, then the categorical rule, then return values and retry safety. Every sentence earns its place with no filler.

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

Completeness4/5

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

For a seven-parameter mutation with no output schema, the description covers the return shape, the type vocabulary, and retry safety. Gaps remain around column placement/ordering and the meaning of expected_version, which is deferred rather than explained.

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

Parameters4/5

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

With 71% schema coverage the schema carries most of the weight, but the description adds meaning the schema repeats only partly: the default of string, the categorical implication of supplying `categories`, and the retry contract for idempotency_key. model_id, table_id, and expected_version get no elaboration here.

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?

Opens with a specific verb and resource ("Add a column"), which cleanly separates it from rename_column, delete_column, and cast_column siblings. It stops short of explicitly naming the alternatives, so an agent must infer the boundaries from the verb alone.

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

Usage Guidelines4/5

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

Gives concrete routing guidance for parameter sourcing (use describe_table's spelling, list_column_types enumerates the options) and a rule for choosing categorical mode via `categories`. It has no explicit when-not-this-tool clause against siblings like cast_column, so it lands one short of the top.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources