Skip to main content
Glama

Update a draft

update_draft

Changes a page's name, fields or blocks in its draft; what is live stays as it is until a person publishes. Read the page with get_page first and pass its docVersion. Leave out what should stay. fields and components each replace the whole set, so send every field and block you want to keep. Returns the page summary and the new docVersion for the next change. Pages in review or due to go live cannot be changed. Trip, Trips, Destination and Departure fields and Travel links are checked against what Travel Orbit lists (see get_schema and list_travel_items), and Product, Products and Collection fields against Commerce Orbit (see list_commerce_items).

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": {
      "id": "<id>",
      "docVersion": "<docVersion>"
    },
    "name": "update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe page or entry's id, as returned by search_content, list_pages or create_draft.
nameNoA new name. Leave out to keep it.
fieldsNoField values by field key, in the shapes get_schema gives for this content type. On update this replaces all the draft's fields: include the ones you keep.
componentsNoThe page's blocks, in the blockShape from get_schema. This replaces the whole block list: keep each block you leave unchanged, with its id.
docVersionYesThe docVersion from your last get_page or update. If someone else has changed the page since, the call is refused with the current version, so nobody's newer change is overwritten: read it again and retry. Your own changes since that version don't count, so several steps on one page can each pass the version they read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / docVersion / description
      Previous value: -"The docVersion from your last get_page or update. If the page has changed since, the call is refused with the current version, so nobody's newer change is overwritten: read it again and retry."New value: +"The docVersion from your last get_page or update. If someone else has changed the page since, the call is refused with the current version, so nobody's newer change is overwritten: read it again and retry. Your own changes since that version don't count, so several steps on one page can each pass the version they read."
  2. Changed5 schema fields changed
    • addedInput schema / properties / components / description
      Added value: +"The page's blocks, in the blockShape from get_schema. This replaces the whole block list: keep each block you leave unchanged, with its id."
    • addedInput schema / properties / docVersion / description
      Added value: +"The docVersion from your last get_page or update. If the page has changed since, the call is refused with the current version, so nobody's newer change is overwritten: read it again and retry."
    • addedInput schema / properties / fields / description
      Added value: +"Field values by field key, in the shapes get_schema gives for this content type. On update this replaces all the draft's fields: include the ones you keep."
    • addedInput schema / properties / id / description
      Added value: +"The page or entry's id, as returned by search_content, list_pages or create_draft."
    • addedInput schema / properties / name / description
      Added value: +"A new name. Leave out to keep it."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the draft-vs-live isolation, the optimistic-concurrency conflict behavior (refused call returns the current version), the retry path, and the nuance that the caller's own prior changes don't invalidate a docVersion. It also warns that fields and components are whole-set replacements, and notes the return payload, which the annotations alone would never convey. One mild tension exists between 'Leave out what should stay' and 'send every field and block you want to keep', but the two are reconcilable as 'omit the parameter to keep everything, otherwise send everything'.

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 effect and the draft distinction, then prerequisites, semantics, return value, and validation constraints in a logical order. It is dense but each sentence carries information; the only cost is that 'Leave out what should stay' reads ambiguously next to the whole-set replacement warning.

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 mutating, nested-object tool with no output schema, the description covers the essentials: required read-first workflow, version-passing contract, destructive-replacement warning, state restrictions, external validation dependencies, and what is returned. An agent has enough to call this correctly on the first attempt and to recover from a version conflict.

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 that by explaining the replacement semantics of fields and components and by spelling out the conflict/retry contract for docVersion, including the non-obvious rule that self-made changes don't count. Remaining gap is minor: no added detail on id provenance beyond what the schema already states.

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?

Names a specific verb and resource ('Changes a page's name, fields or blocks') and immediately scopes it to 'in its draft', with the clarification that live content is untouched until a person publishes. That draft-versus-live framing is exactly what distinguishes this tool from siblings like update_seo_fields or submit_for_review without needing their schemas.

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?

Gives an explicit prerequisite ('Read the page with get_page first and pass its docVersion') and an explicit exclusion ('Pages in review or due to go live cannot be changed'). It also routes the agent to specific helpers (get_schema, list_travel_items, list_commerce_items) for the validation cases, so when-to-use and when-not-to-use are both covered.

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