Skip to main content
Glama

Delete a draft

delete_draft
DestructiveIdempotent

Use this when the user wants to remove a draft post: "scrap that draft". Moves it to Deleted posts in the planner, where the user can restore it for 30 days. Touches nothing on a social network and never deletes clips. Not for: scheduled or posted posts (refused) or editing a draft (update_draft). Free.

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": {
      "post_id": "<post_id>"
    },
    "name": "delete_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_idYesId of the draft post, from get_post_stats with status "draft".

Output Schema

NameRequiredDescriptionDefault
noteYes
deletedYes
post_idYes
platformYes
restorable_daysYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / post_id / description
      Added value: +"Id of the draft post, from get_post_stats with status \"draft\"."
    • removedInput schema / properties / post_id / title
      Removed value: -"Post Id"
    • removedInput schema / title
      Removed value: -"delete_draft_routeArguments"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the destructiveHint/idempotentHint annotations by disclosing that the delete is a soft move to Deleted posts with a 30-day restore window, that it does not touch any social network, never removes clips, and is a no-cost ("Free") call. The refusal behavior for scheduled/posted posts is exactly the kind of side-effect disclosure annotations cannot express.

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?

Front-loads the trigger condition, then scope of the move, then exclusions, then cost. Every clause carries distinct information; even the terse "Free" earns its place by ruling out a credit charge an agent might otherwise hesitate over.

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?

For a single-parameter destructive tool with an output schema, the description covers the only things that matter: what gets removed, where it goes, reversibility window, and what is explicitly not affected. Nothing needed to call it safely is missing.

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 single post_id parameter already documents that the id comes from get_post_stats with status "draft", so the description needn't compensate. The description adds no further parameter detail, which the baseline of 3 anticipates for a fully documented one-parameter tool.

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 (remove a draft post) and immediately distinguishes it from sibling operations: it is not update_draft, not delete_clip, and not a social-network deletion. An agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger phrase ("scrap that draft"), an explicit exclusion list with behavior on misuse (scheduled or posted posts are refused), and names the alternative for the adjacent intent (update_draft for editing). This is the full when/when-not/alternative triad.

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