Skip to main content
Glama

Change a data table column

folio_table_update_column
DestructiveIdempotent

Updates a single data table column—rename, retype with value conversion, or adjust options, width, alignment, hints, defaults, and date/number settings—while changing only supplied fields.

Instructions

Changes one column of a data table, like the column menu in the web app: rename it, change its type (values are converted; the answer says how many were converted and how many could not be and were cleared), its hint, width, alignment, select/status options (the WHOLE list: give every option to keep), multiple, allowCreate, precision, time or default. Only the fields you give change. Call folio_table_schema first to learn this table's REAL column ids, types and option values — never guess them from a title or prior knowledge of a similar table. Requires a write-scoped token.

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": {
      "id": "<id>",
      "columnId": "<columnId>"
    },
    "name": "folio_table_update_column"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTable page id
nameNoNew column title
timeNodate columns: also store the time of day
typeNoNew column type; existing values are converted
alignNoCell text alignment
widthNoColumn width in pixels (60-1200)
defaultNoValue a new row gets when it omits this column
optionsNoselect and status columns: the whole new list of allowed values, as labels or { value, color?, description? }
columnIdYesId of the column to change (from folio_table_schema)
multipleNoselect or user columns: allow several values per cell
precisionNonumber columns: digits after the decimal point (0-6)
allowCreateNoselect columns: allow a value that is not among the options
descriptionNoHint shown in the column header

Output Schema

NameRequiredDescriptionDefault
columnYesThe column after the change
clearedYesValues that could not be converted and were cleared
convertedYesValues converted to the new type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that type changes convert values and that the response reports how many were converted versus cleared, and warns that options is a full replacement list ('the WHOLE list: give every option to keep'), which is essential destructive-behavior context the destructiveHint annotation alone cannot convey. Also discloses the auth requirement ('Requires a write-scoped token').

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?

Front-loads the verb and scope, then the destructive warning and prerequisite in priority order; nearly every clause carries unique information. The single long em-dash-chained paragraph is dense and slightly harder to scan than a structured list would be.

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 13-parameter mutation tool with an output schema, the description covers the gaps that matter: prerequisite lookup, partial-update semantics, destructive conversion reporting, list-replacement semantics, and scope requirement. Return values are covered by the output schema, so no gap remains.

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% and each parameter is already documented, but the description still adds real semantics: partial-update behavior, whole-list replacement for options, and value conversion on type change. It does not cover every parameter (e.g. precision, width, multiple) in prose, relying on the schema for those.

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?

Names a specific verb and resource ('Changes one column of a data table') and immediately frames scope against siblings ('like the column menu in the web app'), making clear it modifies an existing column rather than adding or deleting one. Enumerates exactly which column properties are in scope.

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 an explicit prerequisite workflow: 'Call folio_table_schema first to learn this table's REAL column ids, types and option values — never guess them.' Also states the partial-update rule ('Only the fields you give change'). Lacks an explicit when-not-to-use or a named alternative such as folio_table_add_column/delete_column, so not a 5.

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