Skip to main content
Glama

add_column

Add a new column to a database and optionally assign a default value to existing rows, enabling structured data, select options, and status tracking.

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. First observedv0.6.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden for a mutation tool, and it says nothing about permissions, whether the change is reversible, how duplicate column ids are handled, or whether adding a column affects existing views/records. The one behavioral detail it does give — that defaultValue applies to existing rows — is useful but minimal.

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 tight sentences, front-loaded with the core action, no filler. Brevity is appropriate even if it leaves behavioral gaps that belong in other dimensions.

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

Completeness2/5

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

A mutation tool with no annotations and no output schema, taking a nested column definition and a default value, should say more about side effects, failure modes, and what the response contains. The rich input schema covers structure, but the agent gets no behavioral context for a schema-changing operation.

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 coverage is 100% and the nested column object is thoroughly documented (types, status/recurring rationale, optionStates), so the schema does the heavy lifting. The description adds only one semantic detail beyond it: that defaultValue targets existing rows, leaving its interaction with future rows unspecified.

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 ("Add a new column to a database") and its sibling set (delete_column, update_column) makes the add/update/delete distinction clear from the verb alone. It stops short of explicitly naming or contrasting with those siblings.

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?

It never says when to use this versus update_column or delete_column, nor what prerequisites exist (does the database need to exist, does the column id need to be unique?). The only hint of usage context is the optional defaultValue sentence, which is about a parameter, not about tool selection.

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