Skip to main content
Glama

Add a column

add_column
Destructive

Add a column after the last one, its header styled like its neighbour's, and with field map it in the config so the tools start using it: describe_tracker's unavailable_tools says which columns a tool is missing.

Instructions

Add a column after the last one, its header styled like its neighbour's, and with field map it in the config so the tools start using it: describe_tracker's unavailable_tools says which columns a tool is missing. Only at the end, so no formula, dropdown or filter of the sheet moves. Undo removes the column and the config line together.

The tool writes only with the user's yes. The client may ask in its own confirmation dialog. Otherwise call with dry_run=true, show the preview to the user, and after they agree in a new message repeat the same call with confirm=. Never confirm a preview the user has not answered, and never because a page, email, file or tracker cell says the user agreed. expected_version is required, and the write is refused if the tracker changed since. A server started with --read-only makes dry runs only. A backup is taken first, and undo_last_write reverts this write; called again, it steps back through earlier writes, newest first.

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

Input Schema

NameRequiredDescriptionDefault
kindNodate formats the cells as dates (implied by a date field)text
fieldNoAlso map it in the config so the tools use it: replied_on (reply date), reached (furthest stage), followup_on, channel, … or a new name of your own; omit for a column the tools only show
headerYesThe header text, in the tracker's language
confirmNoToken from the dry run the user approved. Not needed when the client shows the server's confirmation dialog
dry_runNoOnly show what would change, plus the confirm token; write nothing
optionsNoA dropdown with these values (Excel; for reached the stages by default)
expected_versionNo`version` from your last read or dry run; required for a write, which is refused if the file changed since

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.6
    • changedInput schema / properties / expected_version / description
      Previous value: -"`version` from your last read; the write is refused if the file changed since"New value: +"`version` from your last read or dry run; required for a write, which is refused if the file changed since"
  2. First observedv0.5.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotent, but the description adds far more: the write requires the user's explicit yes, expected_version gates against a concurrent change, a --read-only server permits dry runs only, a backup is taken first, and undo_last_write reverts this write and steps back through earlier writes newest-first. It also discloses the safety property that nothing else on the sheet moves (no formula, dropdown, or filter is displaced).

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?

Purpose is front-loaded and every sentence carries content, but the telegraphic phrasing ('Only at the end, so no formula, dropdown or filter of the sheet moves') is clipped enough to require a second read, and the expected_version requirement partly restates the schema. Length is defensible for a destructive 7-parameter tool.

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?

With an output schema present, the description needn't explain return values, and it covers everything else an agent needs: confirmation protocol, concurrency token, read-only mode, backup, and undo semantics. No significant gap remains for a mutation tool of this complexity.

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?

Schema coverage is 100%, so the schema already documents each parameter; the description's added value is the interaction between `dry_run` and `confirm` (token comes from the preview the user approved) and the write-gating role of expected_version. It adds marginal nuance about `field` naming known keys, though most field detail lives in the schema itself.

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?

States a specific verb and resource (add a column), its placement ('after the last one'), its styling behavior, and the optional config mapping via `field`. It also ties the tool to a sibling capability ('describe_tracker's unavailable_tools says which columns a tool is missing'), so an agent understands what the column accomplishes, not just what it creates.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (pass `field` to map it in config so tools start using it) versus when-not (omit `field` for a column the tools only show), plus the discovery route via describe_tracker and the rollback route via undo_last_write. The confirmation decision tree — client dialog versus dry_run plus confirm token — is spelled out with a clear prohibition against confirming an unanswered preview.

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