Skip to main content
Glama

delete_comment

Delete a WordPress comment by ID, moving it to trash by default or permanently removing it when force is enabled. Use it to clean up spam or unwanted comments on your site.

Instructions

Delete a WordPress comment (moves to trash by default)

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_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesComment ID to delete
forceNoPermanently delete instead of trash

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it usefully discloses the default soft-delete behavior ('moves to trash by default'). It does not mention required permissions, whether a missing comment errors, or the irreversible nature of force deletion, leaving meaningful gaps for a mutation.

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?

One short, front-loaded sentence with no redundant wording; the parenthetical adds the key default behavior without padding.

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 simple two-parameter delete tool with complete schema coverage and no output schema, the definition gives the operation and default trash behavior. It is nearly complete, though it omits permission/error context that would help with an unannotated mutation.

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%, so baseline is 3. The description reinforces that deletion is soft by default, but adds no syntax, format, or constraints beyond the schema's id and force descriptions.

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 ('Delete') and resource ('a WordPress comment'), and the resource distinguishes it from sibling deletes such as delete_post and delete_page. An agent can identify the operation 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?

Usage is implied by the destructive verb and comment resource, but there is no explicit when-to-use/when-not-to-use guidance or mention of alternatives. The 'moves to trash by default' note helps decide whether to use force, but that detail lives mostly in the schema.

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