Skip to main content
Glama

Update an existing on-screen graphic

update_graphic
DestructiveIdempotent

Updates an existing on-screen graphic by itemId (from get_graphics or add_graphic). Only fields you pass are overwritten; kind cannot be changed.

Changes are recorded in the edit history and burn into the next render (the existing video stays unchanged until render_episode). Pass accent: "default" or color: "default" to reset to the default highlight colour.

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": {
      "jobId": "<jobId>",
      "itemId": "<itemId>"
    },
    "name": "update_graphic"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNocallout: optional supporting line below the title.
edgeNoprogress_bar: top or bottom edge of the frame.
nameNoname_tag: speaker name (max 60 chars).
sizeNologo: size preset (s, m, or l).
colorNoprogress_bar: hex colour like "#ffd400", or "default".
endMsNoname_tag, chapter_card, or callout: end time on the recording clock (ms).
jobIdYesThe episode's id (jobId), as returned by create_episode or list_episodes.
styleNoname_tag, chapter_card, or callout: visual style (clean or boxed).
titleNochapter_card or callout: main headline or stat.
accentNoname_tag, chapter_card, or callout: hex colour like "#ffd400", or "default".
cornerNologo: corner placement for the episode-wide logo.
itemIdYesThe graphic item ID to update.
eyebrowNocallout: optional small uppercase kicker (e.g. "KEY STAT").
opacityNologo: opacity from 0.15 to 1.
startMsNoname_tag, chapter_card, or callout: start time on the recording clock (ms).
positionNoname_tag, chapter_card, or callout: screen placement (valid positions depend on kind).
subtitleNoname_tag or chapter_card: optional second line (role/title or chapter number).
thicknessNoprogress_bar: bar thickness (thin, medium, or thick).

Output Schema

NameRequiredDescriptionDefault
itemYes
itemsYes
revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag this as a destructive, idempotent write with closed-world scope, so the bar is lower; the description adds real value on top by disclosing that changes are recorded in edit history and do not affect the existing video until render_episode, which materially softens the destructiveHint for the agent. It stops short of explaining reversibility (how to undo an edit) or any permission requirements.

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?

Three sentences, zero filler, front-loaded with the identifying verb and the itemId provenance. Every subsequent sentence carries distinct information (partial-update rule, immutability, edit/render timing, reset sentinel) with no repetition of schema content.

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 an 18-parameter mutation tool with a full output schema and rich annotations, the description covers what structured fields cannot: which fields are preserved, what is immutable, when effects become visible, and the reset convention. Nothing an agent needs in order to call it correctly is missing.

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 100%, so the baseline is 3; the description earns above it by explaining cross-parameter semantics the schema cannot express: unspecified fields are preserved (partial update), `kind` is immutable, and `accent`/`color` accept a 'default' sentinel to reset the highlight colour. Per-field kind applicability is left entirely to the schema, which already documents it.

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 ('Updates an existing on-screen graphic') and anchors identity with 'by `itemId` (from get_graphics or add_graphic)', which both tells the agent where the id comes from and implicitly separates this from the create path. An agent can distinguish it from add_graphic and get_graphics without opening any schema.

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?

Gives clear operating context: partial-update semantics ('Only fields you pass are overwritten'), an explicit exclusion ('`kind` cannot be changed'), and timing guidance that edits only land at render_episode. It does not explicitly say 'to create a new graphic use add_graphic', so routing guidance is implied rather than stated, keeping it just short of 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