Skip to main content
Glama

discard_page_draft

Destructive

Delete target.draftId without changing live content. Execute only when the user requests discarding this draft.

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": {
      "target": "<target>"
    },
    "name": "discard_page_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoSource for save. Defaults to working; live saves the currently published content.
targetYesTarget page resource; kind must be page.
versionNoSaved version name for save or restore. Save requires a new name; live and draft: names are reserved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed2 schema fields changed
    • removedInput schema / properties / expectedRevision
      Removed value: -{
      -  "description": "Latest page snapshot revision; required for every action except list.",
      -  "type": "string"
      -}
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description adds real value by scoping the blast radius — only the private draft is removed and live published content is untouched. It does not say whether the deletion is recoverable/undoable or whether confirmation is expected, which is the main remaining behavioral gap for a destructive tool.

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 tightly written sentences with the effect stated first and the invocation guard second. No filler, no restatement of the tool name, and every clause carries operational 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?

For a three-parameter, single-action discard with no output schema, the description covers what is destroyed, what is preserved, and when to call it. It would be fully complete with a note on irreversibility or what happens when the draftId is stale, but the essentials an agent needs to call it safely are present.

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% and the nested target object is fully documented, including the draftId description ('explicit private draft identifier returned by draft creation or discovery'). The description's mention of target.draftId reinforces which field is operative but adds no format, sourcing, or error semantics beyond the schema, so the baseline 3 applies.

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 and resource ('Delete target.draftId') plus a scope qualifier ('without changing live content'), which lets an agent distinguish this from publishing or editing live page content. It does not name its obvious siblings (discard_email_draft, discard_wallet_draft) or explain the page-vs-email-vs-wallet boundary, so sibling differentiation is implied by the domain noun rather than stated.

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?

Provides an explicit gating condition: 'Execute only when the user requests discarding this draft,' which tells the agent not to invoke it speculatively. It does not state when-not conditions beyond that (e.g., draft already published) or name an alternative tool, keeping it short of a full 5.

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.