Skip to main content
Glama

Plan Studio

publish_draft

Idempotent

Publish the caller's own draft as the next revision. Use it after save_draft, with the same cookie or session. Returns the room's new revision, or 409 when someone published after expect_revision, so newer work is never overwritten.

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>",
      "author": "<author>",
      "expect_revision": "<expect_revision>"
    },
    "name": "publish_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe room id, from get_rooms
noteNoa short note for the history, up to 80 characters
ownerYesa display handle echoed back in the answer; it never selects another person's draft
authorYesthe display name the revision is credited to
expect_revisionYesthe revision you edited, from get_editor

Output Schema

NameRequiredDescriptionDefault
idYesThe room id.
titleYesIts title.
revisionYesIts current revision.

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 (which only say not read-only, idempotent, closed-world), the description discloses the optimistic-concurrency contract: 409 when someone published after expect_revision, so newer work is never overwritten. It also states the session/cookie requirement for the write to be attributed correctly, which annotations cannot convey.

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?

Two sentences, front-loaded with the action, followed by sequencing and the failure mode. No filler and no repetition of schema fields.

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?

An output schema exists, so return values need only be summarized, and the description does exactly that (new revision or 409). Prerequisite, auth continuity, and conflict semantics are all covered for a 5-parameter mutation tool.

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 baseline is 3, but the description adds real meaning by explaining expect_revision's role as a conflict guard rather than just "the revision you edited." The "caller's own draft" phrasing also reinforces that owner does not select another user's draft.

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?

"Publish the caller's own draft as the next revision" gives a specific verb (publish), resource (draft), and scope constraint (caller's own), which separates it from save_draft and discard_draft. An agent knows exactly what state transition this performs 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?

"Use it after save_draft, with the same cookie or session" states the prerequisite step and the auth continuity requirement, and the 409 clause implies the retry/conflict path. It stops short of naming when to prefer discard_draft or snapshot_version, but the sequencing guidance is explicit.

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