Skip to main content
Glama

Delete draft

delete_draft
DestructiveIdempotent

Delete a draft. Deletion cannot be undone. Only drafts can be deleted; content already published on platforms is not deleted. Pass the most recently read updatedAt; a mismatch returns 409. (Required scope: cd.posts.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": {
      "postId": "<postId>",
      "updatedAt": "<updatedAt>",
      "confirm": "<confirm>"
    },
    "name": "delete_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYes
confirmYestrue = the user has approved this specific action. Without it the request is rejected with 409 AGENT_USER_CONFIRMATION_REQUIRED.
updatedAtYesThe most recently read updatedAt
workspaceIdNoOptional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: irreversibility ('Deletion cannot be undone'), the optimistic-concurrency contract (stale updatedAt returns 409), and the required OAuth scope. Annotations already flag destructive/idempotent, but the 409 semantics and scope requirement are only available here. The confirmation gate is documented in the schema, and the description reinforces the no-published-content side effect.

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?

Four short sentences, front-loaded with the destructive outcome before the eligibility rule, the concurrency rule, and the scope requirement. Every clause carries operational information; nothing is redundant with the title or schema.

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 destructive mutation with no output schema, it covers the essentials an agent needs: irreversibility, precondition (fresh updatedAt), failure mode (409), scope, and the confirmation requirement. It does not state what a successful response returns or whether the draft is recoverable from a trash, which would complete the picture.

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 75%, with confirm and workspaceId already well described. The description adds the one thing the schema does not: why updatedAt matters and what happens on mismatch (409), turning a bare field label into a concurrency contract. postId itself gets no added explanation, which is the only small gap.

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 a draft') and immediately bounds the scope: 'Only drafts can be deleted; content already published on platforms is not deleted.' That boundary implicitly separates it from delete_published_target and cancel_post without naming them, so an agent can route correctly. It stops short of an explicit sibling callout, which keeps it from a 5.

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 clear conditions: use it only on drafts, never on published content, and supply the most recently read updatedAt. It also declares the required scope (cd.posts.draft), which is real eligibility guidance. It does not name an alternative tool for the published-content case, so the agent must infer where to go instead.

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.