Skip to main content
Glama

get_comments

Retrieve WordPress comments filtered by post, status, or search to support moderation and content review.

Instructions

Retrieve WordPress comments with optional filtering by post, status, and search

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default: 1)
postNoFilter comments by post ID
orderNoSort order
searchNoSearch comments by content
statusNoComment status filter
orderbyNoOrder comments by field
per_pageNoNumber of comments per page (default: 10, max: 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 behavioral burden, yet it discloses almost nothing beyond the one-line purpose. It does not say which statuses are returned when 'status' is omitted (e.g., whether spam/trash are included by default), nor whether moderation capabilities are required to see held comments — material for a comments tool.

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, front-loaded sentence with no filler or redundancy; the resource is stated first and the filters follow. It is slightly under-specified rather than verbose, so it loses a point for leaving no room for any usage or behavioral note.

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

Completeness4/5

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

No annotations exist, but the tool is a low-risk read operation with 7 fully described flat parameters, three enums, and no output schema to explain. Purpose and filters are covered; the main residual gap is default status scope, which an agent would need in order to trust the result set — a real but modest omission for a simple listing tool.

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 every one of the 7 parameters is already documented with defaults and enums, making 3 the baseline. The description repeats the post/status/search filters already named in the schema and adds no new meaning, such as default status behavior or how search interacts with status.

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?

"Retrieve WordPress comments" gives a specific verb and resource, and the qualifier "with optional filtering by post, status, and search" scopes it. The verb "Retrieve" implicitly separates it from create_comment/delete_comment/update_comment siblings, though no sibling is named explicitly.

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?

Usage is only implied: an agent can infer this is the read path for comments while the create_/update_/delete_comment siblings mutate. There is no explicit statement of when to prefer this over a site-wide search (search_site) or how to page through results, and no exclusions.

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