Skip to main content
Glama

update_component

Destructive

Change the owned source or metadata of existing components. Every source part you provide is COMPLETE content, not a diff; an omitted part is left unchanged and an empty string clears it. Name, type and lock state cannot be changed. A protected component is refused with the name of what protects it — do not work around that by cloning it or overriding it from elsewhere; say so and let the user unlock it. Changes are saved to the catalogue and can queue a thumbnail render that fetches external assets referenced by its content.

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": {
      "documentId": "<documentId>",
      "updates": "<updates>",
      "llm_model": "<llm_model>"
    },
    "name": "update_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
updatesYes
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
documentIdYesThe catalogue's id. Call list_documents first if you do not have one.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond the annotations, it discloses the write model (each provided part is complete content, omitted parts unchanged, empty string clears), the immutability constraints, the refusal path for protected components, and the side effects: persistence to the catalogue plus a possibly-queued thumbnail render that fetches external assets, which explains the openWorldHint. This tells an agent exactly what will be destroyed and what external fetching a save may trigger.

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?

Four sentences, each carrying a distinct operational fact, with the core replace-not-diff rule front-loaded right after the purpose statement. No restatement of the name or 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 a destructive, open-world mutation with no output schema, the description covers the mutation model, protection and side effects adequately. It does not address expectedRevision conflict behavior or whether a multi-item updates array applies atomically, both of which matter for an agent retrying or batching.

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 60%, and the description compensates for the most consequential parameter by explaining replace-not-merge semantics for the updates array and which fields are immutable. The gap is expectedRevision, whose concurrency/conflict meaning appears in neither the schema nor the description.

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?

"Change the owned source or metadata of existing components" gives a specific verb plus resource and scopes it to the parts this tool owns (source vs metadata), which separates it from create_component/delete_component/read_component by implication. It stops short of naming which sibling to use for adjacent operations, so an agent still infers routing from tool names alone.

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 sets real usage boundaries: name, type and lock state cannot be changed, and protected components are refused with the reason, with explicit instruction to surface that to the user rather than clone or override elsewhere. What is missing is a positive statement of when to prefer this over edit_source, update_file, or create_component.

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