Skip to main content
Glama

Discard your draft

discard_draft
DestructiveIdempotent

Move a page or entry you created through this connection to the bin, such as a test page or a draft that is no longer wanted. Only for drafts that were never published, are not in review, approved or in a release, and that no person or other connection has changed since. Anything else is refused with the reason. A person can restore it from the bin.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe draft's id, as returned by search_content, list_pages or create_draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"The draft's id, as returned by search_content, list_pages or create_draft."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds context annotations cannot: the operation is refused with a reason unless strict preconditions hold, and the item is recoverable from the bin by a person — an important softening of the 'destructive' label. It does not say what happens to drafts that fail the check beyond the refusal message.

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?

Three sentences, front-loaded with the action, then conditions, then outcome. Dense but every clause carries information; the 'such as a test page or a draft that is no longer wanted' example is slightly redundant with 'draft' in the title.

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?

A single-parameter mutation tool with no output schema, and the description covers eligibility, refusal behavior, and recovery path — enough for an agent to call it correctly or know it will be rejected. Only the concrete error/return payload is left unstated, which is acceptable without an output schema.

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?

With one parameter at 100% schema coverage, the schema already documents 'id' and even names where to obtain it (search_content, list_pages, create_draft). The description only adds the constraint that the id must refer to content created through this connection, which is useful but marginal.

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?

States a specific verb ('Move ... to the bin') and a clearly bounded resource ('a page or entry you created through this connection'), which also implicitly separates it from discard_experiment and discard_upload. It does not name those siblings explicitly, so an agent must infer the boundary from the resource nouns.

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 eligibility conditions: never published, not in review/approved/in a release, and unchanged by any person or other connection since creation. It also states the failure mode ('Anything else is refused with the reason'). It stops short of pointing to the alternative tool (e.g. update_draft or a delete path) when those conditions fail.

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