Skip to main content
Glama

wp_moderate_comments

Batch-update WordPress comment statuses by ID to approve, hold, mark as spam, or trash multiple comments at once.

Instructions

Batch moderate comments by 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": {
      "site": "<site>",
      "ids": "<ids>",
      "status": "<status>"
    },
    "name": "wp_moderate_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesComment IDs
siteYesSite id (see list_sites)
statusYesNew status

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.14.0
    • changedInput schema / properties / ids / items / type
      Previous value: -"number"New value: +"integer"
    • 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: -[
      -  "ids",
      -  "status"
      -]New value: +[
      +  "site",
      +  "ids",
      +  "status"
      +]
  3. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and discloses almost nothing. 'Moderate' implies a state mutation, but the description does not say whether changes are reversible (trash/untrash exist, so they are), what permissions are required, how partial failures across a batch are handled, or whether invalid IDs abort the whole call.

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 five-word sentence with zero filler, and the operative scope ('batch') and action ('moderate ... by status') are front-loaded. It is efficient, though its brevity borders on under-specification rather than tight writing.

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?

This is a mutation tool with three required parameters, no annotations, and no output schema, yet the definition is five words long. An agent gets no information about permission requirements, reversibility, batch failure semantics, or what a successful response looks like, leaving it under-prepared for a destructive-capable operation.

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%, with per-parameter descriptions and an explicit enum for status, so the schema already does the semantic work. The description adds only the notion that ids are supplied as a batch and that status is the value being applied, matching the baseline 3 for a fully documented 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 ('moderate'), a resource ('comments'), and a scope qualifier ('batch', 'by status'), so an agent immediately knows this performs bulk status changes on comments. It does not differentiate from neighbors like wp_delete_comment or mcp_clean_comments, which overlap in effect for the 'trash' status.

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?

There is no explicit when-to-use or when-not-to-use guidance. The word 'batch' weakly implies this is for multiple comment IDs rather than a single comment, but no alternative tool (e.g., a single-comment update or deletion path) is named or contrasted.

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