Skip to main content
Glama

wp_delete_comment

Deletes a WordPress comment by moving it to trash, or permanently removes it with force=true.

Instructions

Delete a comment (moves to trash, or permanently if force=true)

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": {
      "site": "<site>",
      "id": "<id>"
    },
    "name": "wp_delete_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesComment ID
siteYesSite id (see list_sites)
forceNoBypass trash and delete permanently
passwordNoPassword of the post, if it is password protected (write-only, never returned)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.14.0
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / password
      Added value: +{
      +  "description": "Password of the post, if it is password protected (write-only, never returned)",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the important behavioral trait that deletion is soft by default and only permanent when force=true, but omits permission requirements, whether trashed comments are restorable, and what the call returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence with the destructive default front-loaded ahead of the conditional. Nothing extraneous, though it is terse to the point of omitting useful warnings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter destructive tool with no annotations and no output schema, the definition covers the core trash-vs-permanent behavior but leaves an agent without any information on required permissions, irreversibility, or the response.

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 100%, so all four parameters are already documented. The description restates force as 'moves to trash, or permanently if force=true', which adds framing but no detail beyond the schema's own 'Bypass trash and delete permanently'.

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 (delete) and resource (comment), and adds the key distinction between trashing and permanent deletion. It does not name any sibling, but the operation is unambiguous against wp_update_comment or wp_delete_post.

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 the force flag semantics, but there is no explicit guidance on when to prefer trashing vs permanent deletion, nor any mention of prerequisites such as the site parameter referencing list_sites.

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

Deploy Server

Other Tools