Skip to main content
Glama

set_column_semantics

Destructive

Say what a table's columns MEAN: prose, unit and whether they are required. One entry per column, every facet optional. Pass every column you are documenting in ONE call: it costs a single table version and one update to viewers.

description also says how the column was derived and which values are special; do NOT write the unit into it. Over 1000 characters is refused. An unknown unit URI is refused. Check with run_sql before requiring (nullable: false) a column you were not told about; keys are the table's (set_table_metadata). A facet is set or cleared, never both, and each column gets one entry.

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": {
      "model_id": "<model_id>",
      "table_id": "<table_id>",
      "columns": "<columns>"
    },
    "name": "set_column_semantics"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsYesOne entry per column. Each carries whichever facets you are setting; a facet you leave out keeps whatever the column already has.
model_idYes
table_idYes
expected_versionNoOptional optimistic-concurrency guard (see edit_rows).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare this as non-read-only and destructive; the description adds meaningful behavior: it costs one table version and one viewer update, enforces a 1000-character limit, refuses unknown unit URIs, and explains set-vs-clear semantics. It also warns that requiring a column affects future writes.

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 dense but front-loaded: the purpose and batching rule come first, followed by validation and facet constraints. Every sentence carries a specific rule or constraint, with no filler.

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 destructive mutation with no output schema, it covers side effects, refusal conditions, prerequisites, and batching. Remaining details such as `expected_version` are adequately handled by the input schema.

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?

The schema documents most column facets, but the description adds important meaning and constraints for `description`, `unit`, `nullable`, and `clear`, including batching and mutual exclusivity. It does not elaborate on `model_id` or `table_id`, leaving those top-level identifiers to the 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 opening sentence gives a specific verb and resource: it documents what a table's columns mean via prose, unit, and requiredness. It clearly identifies the facet set and contrasts table-level metadata by pointing keys to `set_table_metadata`.

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?

It specifies batching all documented columns into one call and says to check with `run_sql` before requiring an unfamiliar column. It provides clear operational context but does not explicitly state when to avoid this tool versus alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources