Skip to main content
Glama

add_column

Add a new column to a database and optionally set a default value for existing rows, enabling schema updates without manual data entry.

Instructions

Add a new column to a database. Optionally set a default value for existing rows.

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": {
      "workspace": "<workspace>",
      "databasePath": "<databasePath>",
      "column": "<column>"
    },
    "name": "add_column"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnYesColumn definition
workspaceYesWorkspace path or name
databasePathYesPath to the database folder
defaultValueNoDefault value to set for existing rows

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.19.0
    • changedInput schema / properties / column / properties / type / description
      Previous value: -"Column type. Use \"status\" for task status columns (supports kanban views with done/archive states). Use \"recurring\" for auto-resetting task schedules."New value: +"Column type. Use \"status\" for task status columns (supports kanban views with done/archive states). Use \"recurring\" for auto-resetting task schedules. Use \"location\" for places (city/address, \"lat, lng\" coordinates, or a Google Maps link). Use \"image\" for a picture — the value is a workspace-relative resource path (resources/images/<folder>/<file>) or an https URL, shown as a cover on gallery and board cards."
    • changedInput schema / properties / column / properties / type / enum
      Previous value: -[
      -  "title",
      -  "text",
      -  "number",
      -  "select",
      -  "multiselect",
      -  "status",
      -  "checkbox",
      -  "date",
      -  "url",
      -  "email",
      -  "recurring"
      -]New value: +[
      +  "title",
      +  "text",
      +  "number",
      +  "select",
      +  "multiselect",
      +  "status",
      +  "checkbox",
      +  "date",
      +  "url",
      +  "email",
      +  "recurring",
      +  "location",
      +  "image"
      +]
  2. First observedv0.6.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that a default value applies to existing rows, which signals existing data is touched, but it says nothing about whether new columns are appended at the end, what happens on a duplicate id, required permissions, or reversibility.

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?

Two short sentences, front-loaded with the core action and with zero filler. It is efficient, though thin enough that the brevity comes partly from omission rather than discipline.

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?

The input schema is detailed enough for an agent to construct a valid call, so the description need not repeat types or options. However, for an unannotated mutation tool with no output schema, the definition should at minimum say what is returned and whether the change is safe or reversible.

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% and the nested column definition (id, name, type with detailed enum guidance, options, states) is richly documented in the schema itself. The description only restates the defaultValue parameter nearly verbatim, adding no meaning beyond the structured field.

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 gives a specific verb plus resource ('Add a new column to a database'), which is clearly distinct from sibling operations like delete_column and update_column. It stops short of naming an alternative explicitly, but the intent is unambiguous.

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 only implied: the agent can infer this is for creating a column rather than modifying one. There is no statement of when to prefer this over update_column, no prerequisites (e.g. the column id must not already exist), and no exclusions.

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