Skip to main content
Glama

Delete a comment

delete_comment
Destructive

Delete a comment by its ID. Moves to trash by default, or permanently removes it when force and confirmation are provided.

Instructions

Delete a comment. It goes to the trash by default and is recoverable; force: true removes it permanently and requires confirm: true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe comment ID.
forceNoDelete permanently rather than trashing. Requires confirm: true.
confirmNoRequired for permanent deletion.
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
Behavior5/5

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

The description discloses the default trash behavior and recoverability, and specifies that force:true removes permanently and requires confirm:true. This goes well beyond the annotations' destructiveHint and readOnlyHint, giving the agent concrete safety context about the data impact.

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 short sentences with zero waste. The core action is front-loaded, followed immediately by the most important behavioral qualifier (trash vs. permanent). Every word adds value.

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 tool with 4 parameters (1 required) and no output schema, the description covers the key nuances of deletion and the confirm requirement. It lacks usage guidance and doesn't mention potential side effects like associated media, but the core behavior is well specified for an agent to call it safely.

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 100%, so the baseline is 3. The description adds the 'recoverable' aspect and the explicit constraint that permanent deletion requires both force and confirm, which enriches the semantics beyond the schema's individual parameter 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 and resource ('Delete a comment') and goes beyond a simple tautology by describing the trash vs. permanent deletion behavior. This clearly distinguishes it from other comment-related tools like moderate_comments or update_comment, which perform different actions.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. It does not mention moderate_comments or other comment-management tools, nor does it give any context about when deletion is appropriate. The description only states what the tool does, not when to choose it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alokemajumder/wpxmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server