Skip to main content
Glama

Moderate or edit a comment

update_comment
DestructiveIdempotent

Change a comment's moderation status—approve, hold, mark as spam, or move to trash—or update its text to publish, unpublish, or edit site comments.

Instructions

Change a comment's status (approve, hold for moderation, mark as spam, move to trash) or its text. Approving a comment publishes it on the site; marking it as spam or moving it to the trash takes it off the site. Use delete_comment to delete it permanently. Returns the comment's ID, post, parent and new status.

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": {
      "comment_id": "<comment_id>"
    },
    "name": "update_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNo'approve' (published), 'hold' (back to awaiting moderation), 'spam', or 'trash'
contentNoNew comment text
comment_idYesComment ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.30.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description still adds the important consequence the annotations cannot convey: approving publishes the comment publicly, while spam/trash removes it from the site. It also discloses the return shape, though it does not mention permission requirements or how the parent/post fields are affected.

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 the action and the status options, then effects, then the alternative. Four sentences with no filler, though the status semantics restated in the description overlap with the enum descriptions in the schema.

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 three-parameter mutation tool with no output schema, the description covers what changes, the side effects of each status, the deletion alternative, and the returned fields (ID, post, parent, new status). Nothing an agent needs to invoke it correctly is missing.

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 coverage is 100% and the status enum already documents each value ('approve' (published), 'hold' (back to awaiting moderation)), so the description's parenthetical status explanations largely duplicate the schema. It adds only the framing that content is a replacement of the comment text, which is the expected baseline when the schema does the work.

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 ('Change a comment's status ... or its text') and enumerates the four allowed status transitions inline. The sibling it is not (delete_comment) is named, so an agent can separate editing from deletion without opening either schema.

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

Usage Guidelines4/5

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

Explicitly routes permanent removal to delete_comment and explains the site-visible consequence of each status choice, which drives selection among the enum values. It lacks a direct 'when not to use' beyond deletion (e.g., replying to a comment belongs to create_comment), so it stops just short of full routing guidance.

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