Skip to main content
Glama

Reply to a comment

wp_reply_comment
Destructive

Add a comment to a post as the connected user: a reply to a comment (parent) or a new top-level comment. Each call adds one, so a repeated call posts it twice. It is saved approved and shows at once wherever the post's comments are public, under the user's display name, with the user's email address stored; WordPress sends none of its new-comment emails. HTML is filtered as in post content. Not checked: whether comments are open, and whether parent exists on that post. Returns {created: true, comment_id}. Needs moderate_comments and the right to edit the post (edit_post), as a reply from the comments screen in wp-admin. Existing comments are approved, held or deleted with wp_moderate_comment and wp_delete_comment. Forwarded by AlphaBridge Connect to the one site this connection reaches.

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": {
      "post_id": "<post_id>",
      "content": "<content>"
    },
    "name": "wp_reply_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
parentNoId of the comment this replies to; not checked to exist or to belong to post_id. Default 0: a top-level comment.
contentYesComment text; HTML is filtered to what post content allows.
post_idYesId of the post the comment belongs to; for a reply, the post of the parent comment. A post that does not exist is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / content / description
      Added value: +"Comment text; HTML is filtered to what post content allows."
    • addedInput schema / properties / parent / default
      Added value: +0
    • changedInput schema / properties / parent / description
      Previous value: -"Parent comment id."New value: +"Id of the comment this replies to; not checked to exist or to belong to post_id. Default 0: a top-level comment."
    • addedInput schema / properties / post_id / description
      Added value: +"Id of the post the comment belongs to; for a reply, the post of the parent comment. A post that does not exist is refused."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: idempotency is spelled out concretely ('a repeated call posts it twice'), matching idempotentHint=false; it discloses that the comment is saved approved and visible immediately, that the user's email is stored, that WordPress sends none of its new-comment emails, that HTML is filtered, and exactly which capabilities are required. It even returns {created: true, comment_id} inline, which no output schema provides.

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?

Front-loaded with purpose and mode selection, then caveats, then permissions and alternatives — a logical order. It is dense and slightly run-on (several clauses packed into single sentences), but essentially every clause carries information an agent would otherwise have to guess.

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

Completeness5/5

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

For a 3-parameter mutation with no output schema, the description covers return value, permission requirements, side effects (email storage, suppression of notifications), filtering behavior, duplication risk, and explicit non-validations. There is no material gap an agent would need filled before calling it correctly.

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 the schema already documents all three parameters including parent defaulting to 0 and being unchecked. The description restates the reply-vs-top-level distinction and HTML filtering but adds no syntax, format, or edge-case detail the schema lacks — baseline 3 is appropriate.

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?

Opens with a concrete verb+resource ('Add a comment to a post as the connected user') and immediately disambiguates the two modes it supports: reply (with parent) versus new top-level comment. An agent can distinguish it from wp_moderate_comment, wp_delete_comment and wp_list_comments without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent elsewhere for adjacent jobs ('Existing comments are approved, held or deleted with wp_moderate_comment and wp_delete_comment'), which is the key sibling boundary. It also states a negative scope ('Not checked: whether comments are open, and whether parent exists on that post') so the agent knows preconditions must be handled by the caller, not the tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources