Skip to main content
Glama

delete_post

Destructive

Removes a post, page, or product by ID; sends it to trash by default and permanently deletes it when force=true.

Instructions

Delete a post/page/product by ID. Trashes by default; pass force=true to permanently delete.

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": "delete_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
forceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true; the description goes further by disclosing that the default path is a soft delete (trash) and that force=true is irreversible. It stops short of noting whether a trashed item is restorable, what happens when the ID does not exist, or any permission requirement, which keeps it off a 5.

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 tight sentences, the core action and scope first, then the safety-relevant default behavior. No filler, no restatement of the tool name.

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 two-parameter destructive tool with no output schema and only destructiveHint annotation, the description covers the essential risk decision (soft vs permanent delete) and the target entity types. The remaining gap is error/not-found behavior and recoverability of trashed items, which is a minor omission rather than a blocker.

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 description coverage is 0%, so the description has to carry parameter meaning. It does well for force (false/default = trash, true = permanent) and hints that id spans post/page/product, but adds no format, lookup, or validation detail for the required id parameter beyond the type already in the schema.

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 ('Delete a post/page/product') plus the keying method ('by ID'), which also implicitly separates it from the file/memory/skill delete siblings that act on other resources. An agent can identify the target entity type 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 Guidelines3/5

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

The description establishes the default (trash) and the opt-in for permanent deletion, which is genuine decision guidance, but it frames it as a parameter choice rather than telling the agent when to reach for this tool instead of update_post or a file-deletion sibling. Usage is implied rather than contrasted with alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.