Skip to main content
Glama

insert_column

Add a new column to a Markdown table, setting a default value for all existing rows. Requires a version hash for safe updates.

Instructions

Insert a new column. Requires version hash from read_table.

All existing rows are populated with default_value (empty string if omitted).

On success returns ONLY v:{new_hash}. On error returns JSON with "error" and "message" fields.

Args: file_path: Absolute path to the Markdown file. table_index: 0-based table index from list_tables. version: 12-char hex hash from read_table (after "v:"). name: Header text for the new column. default_value: Value for all existing rows (default: empty string). position: 0-based column index for insertion. -1 appends to the right (default).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
versionYes
positionNo
file_pathYes
table_indexYes
default_valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It discloses the version hash requirement (optimistic concurrency), that existing rows are populated with default_value (empty string if omitted), and specifies the exact return format on success (`v:{new_hash}`) and error (JSON with 'error' and 'message'). It also explains the position parameter behavior, including the -1 append default. This is thorough and transparent.

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?

The description is efficiently structured: it leads with the core action, then prerequisites, defaults, return format, and a parameter list. Every sentence contributes value – no filler or redundancy. The layout is easy to scan and front-loaded with the most critical constraints.

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

Completeness5/5

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

For a 6-parameter tool with no output schema and no annotations, the description covers all necessary context: prerequisites (version hash), behavior for existing rows, return format on success and error, and explicit semantics for every parameter. An agent has everything needed to call the tool correctly.

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

Parameters5/5

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

Schema description coverage is 0% – the schema provides no parameter descriptions. The description compensates fully by explaining each parameter: file_path as absolute path, table_index as 0-based from list_tables, version as 12-char hex hash after 'v:', name as header text, default_value as value for existing rows (default empty string), and position as 0-based index with -1 append right. This adds substantial meaning beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Insert a new column' – a specific verb and resource. It also mentions the requirement of a version hash from read_table, distinguishing it from sibling operations like insert_row, delete_column, and rename_column. The purpose is unambiguous and clearly differentiated.

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?

The description explicitly states 'Requires version hash from read_table', which establishes the prerequisite context and implies when to use the tool (after a read). It explains position semantics and defaults, but does not name alternative tools or explicitly state when not to use it. This is clear context, though not exhaustive exclusions.

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