Skip to main content
Glama

update_draft

Writes a new version of an existing draft, or renames its preview address. Acts as a patch: files you send are written as a new version, files you omit carry forward unchanged, and earlier versions are kept. For when the user wants to change the copy, sections or layout of a draft that already exists, or give its preview a different readable name. Returns the version and preview_url. Cannot spend money.

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

Input Schema

NameRequiredDescriptionDefault
hostNoA domain your account has proven it owns and attached as a draft host (POST /agency-hosts). With label, the draft is also published at https://{label}.{host}, noindex and with no Scopeweb banner. Send host and label together.
slugNoNew readable word for the preview address; the draft keeps its random tag where it can (ninkasi-k7q becomes brewing-k7q). The previous address keeps redirecting. Send slug alone to rename without writing a new version.
filesNo
labelNoThe address on host, for example ninkasi for ninkasi.example.com. 3 to 40 lowercase letters, digits and single hyphens; names that imitate login, payment or brand pages are refused.
draft_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / host
      Added value: +{
      +  "description": "A domain your account has proven it owns and attached as a draft host (POST /agency-hosts). With label, the draft is also published at https://{label}.{host}, noindex and with no Scopeweb banner. Send host and label together.",
      +  "type": "string"
      +}
    • addedInput schema / properties / label
      Added value: +{
      +  "description": "The address on host, for example ninkasi for ninkasi.example.com. 3 to 40 lowercase letters, digits and single hyphens; names that imitate login, payment or brand pages are refused.",
      +  "type": "string"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "New readable word for the preview address; the draft keeps its random tag where it can (ninkasi-k7q becomes brewing-k7q). The previous address keeps redirecting. Send slug alone to rename without writing a new version.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "draft_id",
      -  "files"
      -]New value: +[
      +  "draft_id"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), it discloses the crucial patch semantics — omitted files carry forward, earlier versions are kept — which reconciles a write operation with destructiveHint=false and explains the non-idempotent flag. It also names the return values (version, preview_url) and adds a hard constraint ('Cannot spend money') that matters against budget/domain-purchase siblings.

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 two operating modes, then semantics, then trigger, then returns. There is mild redundancy between the opening sentence and the 'For when...' sentence restating the rename case, but nearly every sentence carries distinct information.

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?

There is no output schema, but the description names what is returned, and a mutation tool with annotations plus patch semantics and a spend restriction is largely self-explanatory for an agent. Minor gaps remain (permission requirements for host/label publishing, path constraints for files) but nothing that would cause a wrong call.

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?

With 60% schema coverage, the description compensates for the undocumented parameters: it explains that omitting files carries them forward, and that 'slug alone renames without writing a new version' — a behavioral rule the schema does not state. Only draft_id and the file path/content shape are left to the schema, which is acceptable.

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 ('Writes a new version of an existing draft') plus a second mode ('renames its preview address'), and the word 'existing' plus 'new version' cleanly separates it from create_draft in the sibling list. An agent can tell what this does without opening the 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?

'For when the user wants to change the copy, sections or layout of a draft that already exists, or give its preview a different readable name' gives an explicit trigger condition for both modes. It stops short of naming a sibling alternative or an explicit when-not case, so it is clear context rather than full routing guidance.

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