Skip to main content
Glama

Update schema

update_schema
Destructive

Edit a saved schema's metadata or replace its full schema_content without an LLM call. Requires editor. Only supplied values change. For one property, prefer update_schema_property, add_schema_property or move_schema_property. Replacements must use GeneratedJsonSchema; unknown keywords are dropped, not rejected, and reported in ignored_keywords / applied_repairs. On database-linked schemas this edits the working copy: neutral edits propagate automatically; structural edits take effect after publish_schema. Returns the publish_state the edit left, the repairs and the link — not the document (get_schema reads it back). Contract and edit workflow: enricher://docs/schema-reference.

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": {
      "schema_id": "<schema_id>"
    },
    "name": "update_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name (must be unique).
tagsNoReplacement tag list.
is_pinnedNoPin or unpin.
schema_idYesUUID of the schema to update.
key_languageNoPre-set the key language for multilingual database keys ahead of a database link (ISO 639-1). Settable only while the schema has no linked database and no entity state; locked afterwards.
schema_contentNoFull replacement schema document, following get_schema.schema_content. See enricher://docs/schema-reference.
ambiguity_check_enabledNoEnable/disable the ambiguity check for this schema — the pass that flags properties whose name admits more than one meaning (gates analyze_schema and the generation post-pass).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the destructiveHint/readOnlyHint annotations: it discloses that unknown keywords are dropped rather than rejected and surfaced in ignored_keywords/applied_repairs, that linked-schema edits affect a working copy with neutral vs structural propagation, and what the response contains (publish_state, repairs, link — not the document). Only the destructive semantics of a full schema_content replacement could be spelled out more bluntly.

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-loaded with the core action and the sibling routing, then behavioral caveats, then the return shape, closing with a doc pointer. Information-dense and largely waste-free, though the middle sentences run long and could be split for scannability.

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, schema-mutating tool with 7 parameters, the definition covers prerequisites, patch semantics, linked-schema propagation, error-tolerant keyword handling, return shape and a reference doc — even though an output schema exists and returns need not be described. Nothing an agent needs before calling is missing.

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%, so each parameter is already documented in the input schema; the description mainly reinforces it. It does add genuinely new semantics with 'Only supplied values change' (partial-patch behavior) and the dropped-keyword repair contract for schema_content, but per-field meaning is 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?

States a specific verb and resource ('Edit a saved schema's metadata or replace its full schema_content') and scopes it with 'without an LLM call'. It immediately distinguishes itself from property-level siblings by pointing to update_schema_property, add_schema_property and move_schema_property.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: 'For one property, prefer update_schema_property, add_schema_property or move_schema_property', plus the prerequisite 'Requires editor' and the publish_schema follow-up condition for structural edits on database-linked schemas. When-to-use, when-to-use-something-else, and preconditions are all present.

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.