Update comment
wp_update_commentUpdate a comment by ID: its content or its approval status (approve, hold or mark as spam).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| comment_ID | Yes |
wp_update_commentUpdate a comment by ID: its content or its approval status (approve, hold or mark as spam).
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| comment_ID | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already declare destructiveHint=true and openWorldHint=true, so the description does not need to restate safety. It adds useful behavioral context by naming the approval values and the fields being changed, but it does not mention permissions, reversibility, or the effect of marking a comment as spam.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single front-loaded sentence with no wasted words. The core action and affected fields are stated immediately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the destructive, open-world mutation and the nested fields object with no schema descriptions, the description is adequate but not complete. It states what can be updated, but leaves nested parameter structure and mutation side effects largely to the annotations and schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It clarifies that comment_ID identifies the comment and that content or approval status can be updated, including the values approve, hold, and spam. It does not explain the nested 'fields' wrapper or the fact that comment_approved is a string despite acting like an enum.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific verb and resource ('Update a comment by ID') and states the two editable aspects: content and approval status. It is clear what the tool does, though it does not explicitly contrast itself with siblings such as wp_create_comment or wp_get_comments.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied by the update-by-ID phrasing, and the allowed approval statuses are listed. However, it gives no explicit when-to-use guidance, prerequisites, or alternatives, so the agent must infer the appropriate context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.