Skip to main content
Glama

Plan Studio

save_draft

Idempotent

Save the caller's private draft of a plan without publishing it. Use it to work on a change over several calls; it needs the browser's own cookie or a signed-in session and answers 401 without one. Returns whether the draft differs from the plan and whether the plan has moved on.

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>",
      "owner": "<owner>",
      "body": "<body>",
      "base_revision": "<base_revision>"
    },
    "name": "save_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe room id, from get_rooms
bodyYesthe whole plan as you want it, in Markdown
ownerYesa display handle echoed back in the answer; it never selects another person's draft
base_revisionYesthe revision the draft started from, from get_editor

Output Schema

NameRequiredDescriptionDefault
idYesThe room id.
ownerYesWhose draft.
behindYesWhether someone published since the draft was started.
has_draftYesWhether a draft is now open.
draft_differsYesWhether it differs from the published body.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds real context beyond annotations: the authentication requirement (browser cookie or signed-in session) and the 401 failure mode, plus a preview of the two comparison signals returned. It doesn't clarify what happens on a stale base_revision conflict, though "whether the plan has moved on" implies a non-failing path.

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, front-loaded with the action and its key distinction, then usage, then auth and return behavior. No filler or restatement of the name.

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 four-required-parameter write tool with annotations and an output schema, the description covers purpose, prerequisites, auth failure, and return semantics adequately. The one gap is conflict behavior when base_revision is stale, which an agent must infer.

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 coverage is 100%, so all four parameters are already documented in the schema, including owner's non-selecting behavior and base_revision's origin. The description only reinforces that the draft is the caller's own private one; it adds no syntax or constraint detail beyond the schema.

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 ("Save the caller's private draft of a plan") plus the defining scope constraint "without publishing it", which cleanly separates it from publish_draft and discard_draft. An agent can identify the operation 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?

Gives concrete when-to-use guidance: "work on a change over several calls", and the publishing exclusion implies when to reach for publish_draft instead. It stops short of explicitly naming alternatives or stating when not to save.

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