Skip to main content
Glama

Update element

update_element
Destructive

Change one of a space's own @elements: its name, description or media. media_ids replaces the whole set, so pass the ones to keep (from list_elements) with the new ones; one it already holds keeps the trim set in the app. Change an inherited element in the space it comes from.

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": {
      "space_id": "<space_id>",
      "element_id": "<element_id>"
    },
    "name": "update_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoWhat a prompt calls it after @: letters, digits and _, with a letter, up to 30.
space_idYesA space id from list_spaces.
media_idsNomedia_id values from upload_file's answers with space_id, or from list_elements: up to 4 images (the first is the face) or one video instead, plus one voice or sound. A video runs at least 3 s and audio at least 5 s; a model uses the first seconds it takes of a longer one.
element_idYesAn element_id from list_elements.
descriptionNoWho or what it is, in a line a prompt can lean on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / media_ids / items / anyOf
      Added value: +[
      +  {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +    "type": "string"
      +  },
      +  {
      +    "pattern": "^clip:[\\w-]+\\.[\\w-]+$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / media_ids / items / format
      Removed value: -"uuid"
    • removedInput schema / properties / media_ids / items / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / media_ids / items / type
      Removed value: -"string"
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the key added value is the disclosure that media_ids replaces the entire set rather than appending, and that ids already held retain their existing trim set. That is exactly the kind of data-loss nuance annotations cannot express; only permissions/error behavior is left unstated.

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?

Three sentences, front-loaded with the verb and resource, no filler. The phrasing is dense and semicolon-packed ('one it already holds keeps the trim set in the app'), which costs some readability but no sentences are wasted.

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 five-parameter mutation with no output schema and destructive annotations, the definition covers the main pitfall (wholesale media replacement) and the inherited-element scope rule. It omits what a successful response looks like and any failure modes such as name collisions, which is a minor gap given the rich schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline would be 3, but the description adds semantics the schema cannot: media_ids is a full replacement whose value must include the ids to keep, and preservation of existing trims depends on re-passing those ids. That is decision-relevant meaning beyond the parameter descriptions.

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?

The description names a specific verb ('Change') and a precisely scoped resource ('one of a space's own @elements') and enumerates the mutable fields (name, description, media), which distinguishes it from create_element and the doc-oriented update tools. The final clause about inherited elements is terser and slightly ambiguous, but the core purpose is unambiguous.

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 real operational guidance: media ids must be sourced from list_elements, and an inherited element must be changed in the space it originates from rather than locally. It does not explicitly name alternatives such as update_doc or state when not to use this tool, which keeps it below a 5.

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