Skip to main content
Glama

Edit the content document

update_content
Destructive

Saves a demo’s content document (steps or hotspots, startScreenId, description, the checklist’s flows) to the draft: either the whole document (content) or JSON Patch operations (ops, RFC 6902, paths like "/steps/2/body" or "/hotspots/0/label"; "-" appends). Validated like the editor (ids unique, screens exist, safe links) and recorded in revision history. Pass the revision you read with get_demo to avoid overwriting someone else’s edit. For single steps, update_step / add_step / delete_step / move_step are simpler.

Steps (guided demos), in order:

  • tip: { id, kind:"tip", screenId, title ≤200, body ≤2000, spot:{x,y,w,h} (percent of the screenshot), place:"auto"|"top"|"right"|"bottom"|"left", advance:"click"|"next"|"timer"|"narration" ("narration": continues when the step's narration ends), timerMs 1000–60000, hotspot:"pulse"|"dot"|"outline"|"hidden" ("pulse": the spot with a pulsing ball on its top-right corner; "dot": only the pulsing ball, in the spot's middle, the spot still the click target), zoom, dim, camera?, cursor?, spotlight? } Tooltip camera and motion (optional; left out = the demo default in settings.motion): "camera": { mode?: "auto" (zoom to the spot) | "frame" (show camera.frame) | "off", frame?: {x,y,w,h} percent of the screenshot (fitted to the stage, 1–4× zoom), transition?: "glide"|"cut", speed?: "slow"|"normal"|"fast" }, "cursor": true|false (animated cursor that moves to the spot and clicks), "spotlight": "rounded"|"circle" (the cutout shape with dim). Without camera.mode, zoom: true means "auto".

  • intro / chapter / cta / outro cards: { id, kind, screenId (or null), title, body, cta ≤60 (button label), ctaUrl (https://, mailto: or tel:, or null), theme:"dark"|"light" }

  • form (lead form): { id, kind:"form", screenId, title, body, cta, fields: ["email", "name"?, "company"?, "phone"?] (email required), form?, theme }. form (optional) lists every field in order, custom questions included: { key, type: text|textarea|email|phone|number|url|select|radio|checkboxes|consent|hidden, label, placeholder, required, options? (choices), param? (hidden: the URL parameter) }; the standard ones use keys email/name/company/phone with label null for the default, and fields must then list exactly the standard keys in form. Branching (any guided step but a form): "choices": 2–4 of { id, label ≤60, target: {type:"step",stepId} | {type:"end"} | {type:"url",url} | null } (a card shows them instead of its button; a tooltip shows them as buttons) — set_choices is the easy way. "next" on any step: {type:"step",stepId} or {type:"end"}: where the default path goes after it (absent: the following step); use it to skip ahead, rejoin or end a path. Personalization: titles, bodies, button labels, choice labels, hotspot labels and links can hold {{key}} or {{key|fallback}} (built-ins first_name, last_name, full_name, company, title, email; custom ones declared in content.variables as { key, label, default?, sample? }). Each viewer sees their own values (personalized links, URL parameters), everyone else the fallback or default. Keep the tokens when rewriting copy. Hotspots (clickable demos): { id, screenId, rect:{x,y,w,h}, label ≤120, hint ≤300, target: {type:"screen",screenId} | {type:"url",url} | null }, plus "auto": true on navigation links made by stitch_demo (shown quietly) and "link": a group id the same control shares on every screen. Plus startScreenId and description (≤300, shown under the title on the hosted page). Narration (voiceovers, Pro and Team): "voiceover" on any guided step: { script ≤1000 (what a voice says when the step appears: short, spoken, separate from the tooltip text), source:"ai"|"recorded"|"uploaded", clip: { key, durationMs, cues, hash, voiceId? } | null }. Clickable demos keep it per screen in "screenVoiceovers": { "": same }. "voice": { voiceId (list_voices), speed 0.7–1.2, stability 0–1 } is the demo's AI voice. Make clips with generate_voiceovers; never write a clip key yourself (it must be this demo's audio). Checklist (a demo with several flows, every plan): "flows": { checklist: true|false (viewers see it), title? ≤60 (else "Checklist"), flows: up to 12 of { id, title ≤60, steps: [step ids] (guided) or [screen ids] (clickable) } }. A step or screen is in one flow at most; a guided flow usually starts at a chapter card and runs to the next one, or is the path a start choice opens. Viewers see % complete, steps and time per flow and done marks, and can jump to a flow. Ids of deleted steps are left out (see checklist.warnings). Other fields present in the document (newer features) are kept as they are; the server validates the whole document.

Requires: demos:read, demos:write.

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": {
      "demoId": "<demoId>"
    },
    "name": "update_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsNoJSON Patch operations applied to the current document, in order.
demoIdYesDemo id (from list_demos), e.g. "d_Ab12Cd34Ef56Gh78".
contentNoThe whole document (replaces the current one).
revisionNoThe revision from get_demo; the save fails if the demo changed since.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), it discloses that saves are validated editor-style (unique ids, existing screens, safe links), recorded in revision history, that a stale `revision` fails the save, and that unknown newer fields are preserved rather than dropped. It also names the required scopes demos:read/demos:write and the Pro/Team gating for narration. No contradiction with destructiveHint=true, since `content` replaces the whole document.

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?

Key operational facts (save target, payload choice, revision safety, simpler siblings) are front-loaded in the first paragraph, with reference material following. The body is long, but it is documenting an otherwise-unspecified free-form document; a few niche clauses (e.g. the camera.mode/zoom interaction) could be trimmed.

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 tool whose `content` parameter is an unconstrained object with no output schema, the description supplies the full document model: tip/card/form steps, branching, personalization tokens, hotspots, narration, and checklist flows. Only the post-save return value is unstated, which is minor given the revision mechanism is explained.

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 already 100%, yet the description adds substantial meaning: RFC 6902 path examples ('/steps/2/body', '-' appends), the read-then-write revision pattern, and a full field-level reference for the free-form `content` object that the schema leaves as additionalProperties: {}. That is real value beyond the schema rather than restatement.

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?

Opens with a specific verb and resource: 'Saves a demo's content document ... to the draft', and immediately names the two mutually exclusive payload shapes (`content` vs `ops`). It also distinguishes itself from sibling editors by name, so an agent can route between update_content and update_step/add_step without opening either 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?

Explicitly routes single-step edits away to update_step / add_step / delete_step / move_step, and points to set_choices for branching and generate_voiceovers for clips. It also instructs the agent to pass the `revision` read via get_demo to avoid clobbering concurrent edits. The only gap is that it never states which of `content` vs `ops` to prefer (full rewrite vs incremental patch).

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.