Skip to main content
Glama

Plan Studio

discard_draft

Idempotent

Throw away the caller's own draft and leave the published plan alone. Use it to start again from the current revision, with the cookie or session that saved the draft. Returns has_draft false, also when there was nothing to discard.

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>"
    },
    "name": "discard_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe room id, from get_rooms
ownerYesa display handle echoed back in the answer; it never selects another person's draft

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?

Annotations already declare readOnlyHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description still adds real value by disclosing the auth/session dependency ("with the cookie or session that saved the draft") and the concrete no-op outcome ("Returns has_draft false, also when there was nothing to discard"), which makes the idempotentHint tangible.

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 short sentences, zero filler: the destructive scope is front-loaded in the first sentence and the usage plus return behavior follow. Every clause carries 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?

With an output schema present, the description need not explain return values, yet it highlights the key has_draft outcome anyway. Session requirements, idempotent no-op behavior and scope exclusions are all covered; only error/permission failure behavior is left unstated, which is a minor gap for a two-parameter tool.

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 both parameters are already documented, and the owner semantics ("never selects another person's draft") are in the schema itself. The description adds the complementary point that the draft is identified by the caller's session, but that is a modest increment over structured fields.

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 ("Throw away the caller's own draft") and immediately bounds the scope by excluding the published plan, which cleanly separates it from publish_draft and save_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?

"Use it to start again from the current revision" gives a concrete when-to-use condition, and "leave the published plan alone" implicitly excludes the publish path. It stops short of naming the alternative tools explicitly, so it is clear context rather than full when/when-not routing.

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