Skip to main content
Glama

set_table_metadata

Destructive

Rename a table, say what it holds, and set its unique keys and checks; omitted fields stay. checks: range or multiple_of on a number, text or length (characters) on text. Keys and checks are enforced on later writes; rows already breaking them stay; their columns' types lock. description also gives its source and what one row is; at most 10000 bytes; blank is refused. Last write wins. A connector table takes a description but no name. Check describe_table.capabilities.can_rename and can_describe first. Safe to repeat.

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>"
    },
    "name": "set_table_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew display name. Must not be blank.
checksNoThe table's whole list of checks, naming columns by `column_id`; it replaces the one `describe_table` reports, and `[]` removes them all.
model_idYesThe model that OWNS the table.
table_idYes
descriptionNoWhat the table holds, for the person who opens the model later.
unique_keysNoThe table's whole list of unique keys, naming columns by `column_id`; it replaces the one `describe_table` reports, and `[]` removes them all. Only text, uuid, integer, decimal, date and timestamp columns can be in a key.
expected_versionNoOptional optimistic-concurrency guard for the rename (see edit_rows).
clear_descriptionNo`true` removes the table's description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, it discloses partial-update semantics ('omitted fields stay'), enforcement timing ('enforced on later writes; rows already breaking them stay'), a side effect ('their columns' types lock'), a hard limit (10000 bytes, blank refused), conflict resolution ('Last write wins'), and idempotency ('Safe to repeat'). That is a substantial behavioral payload the annotations alone could not convey.

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 and partial-update behavior are front-loaded, and every subsequent clause carries information about constraints or side effects. It is dense with backticked tokens and long sentences, but no clause is filler.

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

Completeness4/5

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

For an 8-parameter destructive mutation with no output schema, the definition covers prerequisites, partial-update behavior, enforcement, size limits, and idempotency. The only thin spot is concurrency failure behavior, which is delegated to 'see edit_rows' rather than spelled out.

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 already high at 88%, but the description adds real meaning: which rule kinds apply to numbers versus text and that length is in characters, plus what `description` should contain and its 10000-byte cap. The nested `expected_version` and `clear_description` semantics are left 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 first clause names a concrete verb and resource — 'Rename a table' — and lists the other metadata it mutates (description, unique keys, checks). That is enough for an agent to distinguish it from rename_column and set_column_semantics, which operate on columns rather than the table.

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 gives an explicit prerequisite ('Check describe_table.capabilities.can_rename and can_describe first') and a conditional case ('A connector table takes a description but no name'). It stops short of naming sibling alternatives for column-level or row-level edits, so guidance is strong but not exhaustive.

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