Skip to main content
Glama

wp_update_comment

Updates a WordPress comment by ID—approve, edit, move, or change author/meta—while only modifying the fields you specify.

Instructions

Update a comment (approve, edit content, move, ...); only the given fields change

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

Input Schema

NameRequiredDescriptionDefault
idYesComment ID
dateNoDate in the site timezone (ISO8601)
metaNoRegistered comment meta fields (show_in_rest) as key/value
postNoMove the comment to this post ID
siteYesSite id (see list_sites)
authorNoUser ID of the author (instead of author_name/author_email)
parentNoParent comment ID (for replies; 0 = top level)
statusNoNew status
contentNoComment content
date_gmtNoDate in GMT (ISO8601)
author_ipNoAuthor IP address (requires moderate_comments)
author_urlNoAuthor website URL
author_nameNoAuthor display name
author_emailNoAuthor email
author_user_agentNoAuthor user agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv3.14.0
    • addedInput schema / properties / author
      Added value: +{
      +  "description": "User ID of the author (instead of author_name/author_email)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / author_email
      Added value: +{
      +  "description": "Author email",
      +  "type": "string"
      +}
    • addedInput schema / properties / author_ip
      Added value: +{
      +  "description": "Author IP address (requires moderate_comments)",
      +  "type": "string"
      +}
    • addedInput schema / properties / author_name
      Added value: +{
      +  "description": "Author display name",
      +  "type": "string"
      +}
    • addedInput schema / properties / author_url
      Added value: +{
      +  "description": "Author website URL",
      +  "type": "string"
      +}
    • addedInput schema / properties / author_user_agent
      Added value: +{
      +  "description": "Author user agent",
      +  "type": "string"
      +}
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Date in the site timezone (ISO8601)",
      +  "type": "string"
      +}
    • addedInput schema / properties / date_gmt
      Added value: +{
      +  "description": "Date in GMT (ISO8601)",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Registered comment meta fields (show_in_rest) as key/value",
      +  "type": "object"
      +}
    • addedInput schema / properties / parent
      Added value: +{
      +  "description": "Parent comment ID (for replies; 0 = top level)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / post
      Added value: +{
      +  "description": "Move the comment to this post ID",
      +  "type": "integer"
      +}
    • changedInput schema / properties / status / description
      Previous value: -"Comment status"New value: +"New status"
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "approve",
      -  "hold",
      -  "spam",
      -  "trash"
      -]New value: +[
      +  "approve",
      +  "hold",
      +  "spam",
      +  "unspam",
      +  "trash",
      +  "untrash"
      +]
  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.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important trait: fields not supplied are left untouched (partial update, not replace). It says nothing about required capabilities, whether status changes like trash are reversible, or what the response contains for a mutation with 15 parameters.

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 short sentence, front-loaded with the action and followed by the key semantic constraint. The trailing "..." is slightly sloppy but does convey that the listed operations are not exhaustive.

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

Completeness2/5

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

For a 15-parameter mutation tool with a nested meta object, no annotations, and no output schema, the description is very thin. The schema covers parameters well, but nothing explains return behavior, permission requirements, or the semantics of moving a comment between posts.

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 baseline is 3. The parenthetical groups operations by intent (approve→status, edit content→content, move→post), adding a little navigational meaning, but no format, default, or interaction details beyond the schema.

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 and resource ("Update a comment") and enumerates representative operations (approve, edit content, move), which maps onto the status/content/post parameters. The verb cleanly separates it from the create/delete/get comment siblings, though none are named.

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?

"Update" implies use on an existing comment rather than wp_create_comment, and "only the given fields change" signals a partial update. There is no explicit when-not guidance, no prerequisite (e.g. capabilities) stated, and no alternative tool named.

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