Skip to main content
Glama

Save the draft

update_draft

Replace the draft's masters (brand.json). Send the draftRev you started from: if someone saved in between, you get a 409 with the current draft, so no change is lost. Saving publishes nothing. Costs no credits.

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": {
      "slug": "<slug>",
      "draftRev": "<draftRev>",
      "masters": "<masters>"
    },
    "name": "update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
mastersYes
draftRevYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses the three things an agent most needs for a mutation: the write is a wholesale replacement of masters, concurrency is protected by optimistic locking with a 409 response carrying the current draft, and there are no publishing side effects and no credit cost. This directly reinforces and enriches readOnlyHint=false, destructiveHint=false, and openWorldHint=false.

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?

Four short sentences, each carrying distinct information (what is replaced, what to send, the conflict behavior, and the absence of publishing and cost). The operation and its scoping constraint are front-loaded with no filler.

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 3-required-parameter mutation with a nested object and no output schema, the description covers side effects, cost, and concurrency, which are the highest-risk unknowns. The remaining gap is the shape and validation of the masters payload and the slug format, which the schema encodes without prose support.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry the parameter burden. It clarifies draftRev as the revision the caller started from and identifies masters as brand.json, but it never explains slug, nor the schemaVersion/name fields required inside the nested masters object.

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?

"Replace the draft's masters (brand.json)" gives a specific verb (replace) and resource (draft masters), and the line "Saving publishes nothing" implicitly separates it from the approve_draft sibling. It stops short of naming any sibling directly, but the operation an agent would be choosing between is clear.

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 tells the agent exactly what to send ("the draftRev you started from") and what happens on conflict (409 with the current draft), which is the key decision context for calling this tool. It does not explicitly say when to prefer approve_draft or restore_version, so it is a strong context statement rather than a full routing rule.

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