Skip to main content
Glama

wp_list_comments

Retrieve and filter WordPress comments by post, author, status, date, or search term to manage discussions and moderation.

Instructions

List comments

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>"
    },
    "name": "wp_list_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
postNoLimit to comments on these post IDs
siteYesSite id (see list_sites)
typeNoComment type: comment (default), pingback, trackback, note, ...
afterNoPublished after this ISO8601 date
orderNoSort direction (default desc)
authorNoLimit to comments by these user IDs
beforeNoPublished before this ISO8601 date
offsetNoSkip this many comments (overrides page)
parentNoLimit to replies to these comment IDs ([0] = top level)
searchNoSearch term
statusNoComment status (default approve; 'all' = approved and pending)
excludeNoExclude these comment IDs
includeNoLimit to these comment IDs
orderbyNoSort field (default date_gmt)
passwordNoPassword of the post, if it is password protected (write-only, never returned)
per_pageNoComments per page (max 100)
author_emailNoLimit to comments by this author email
author_excludeNoExclude comments by these user IDs
parent_excludeNoExclude replies to these comment IDs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changedv3.14.0
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "Published after this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / author
      Added value: +{
      +  "description": "Limit to comments by these user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / author_email
      Added value: +{
      +  "description": "Limit to comments by this author email",
      +  "type": "string"
      +}
    • addedInput schema / properties / author_exclude
      Added value: +{
      +  "description": "Exclude comments by these user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / before
      Added value: +{
      +  "description": "Published before this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclude
      Added value: +{
      +  "description": "Exclude these comment IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "Limit to these comment IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many comments (overrides page)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / order
      Added value: +{
      +  "description": "Sort direction (default desc)",
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / orderby
      Added value: +{
      +  "description": "Sort field (default date_gmt)",
      +  "enum": [
      +    "date",
      +    "date_gmt",
      +    "id",
      +    "include",
      +    "post",
      +    "parent",
      +    "type"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / parent
      Added value: +{
      +  "description": "Limit to replies to these comment IDs ([0] = top level)",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / parent_exclude
      Added value: +{
      +  "description": "Exclude replies to these comment IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / password
      Added value: +{
      +  "description": "Password of the post, if it is password protected (write-only, never returned)",
      +  "type": "string"
      +}
    • changedInput schema / properties / per_page / description
      Previous value: -"Comments per page"New value: +"Comments per page (max 100)"
    • changedInput schema / properties / per_page / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / post / description
      Previous value: -"Filter by post ID"New value: +"Limit to comments on these post IDs"
    • addedInput schema / properties / post / items
      Added value: +{
      +  "type": "integer"
      +}
    • changedInput schema / properties / post / type
      Previous value: -"number"New value: +"array"
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Search term",
      +  "type": "string"
      +}
    • changedInput schema / properties / status / description
      Previous value: -"Comment status"New value: +"Comment status (default approve; 'all' = approved and pending)"
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "approve",
      -  "hold",
      -  "spam",
      -  "trash"
      -]New value: +[
      +  "approve",
      +  "hold",
      +  "spam",
      +  "trash",
      +  "all"
      +]
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "Comment type: comment (default), pingback, trackback, note, ...",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "site"
      +]
  3. First observedv2.0.0

TDQS

C2.2/5.0
Behavior2/5

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

With zero annotations, the description carries the full disclosure burden and discloses nothing: no statement that the call is read-only, no mention that default status filters to 'approve' (so unmoderated comments are silently excluded), and no note about pagination defaults or the write-only password parameter. The schema covers much of this, but the description itself adds no behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two words are technically concise but represent under-specification rather than efficiency; there is no front-loaded statement of scope, filters, or defaults that an agent needs before invoking a 20-parameter tool.

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 tool with 20 parameters, a required site id, three enums, and no annotations or output schema, the description should at minimum convey that it is a read-only, paginated, filterable comment listing with a default approved-only status. None of that appears.

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% across all 20 parameters, so the schema already explains page/offset interplay, status enums, and date filters. The description contributes no additional parameter meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List comments" restates the tool name (wp_list_comments) without adding scope, filtering capability, or differentiation from siblings like wp_moderate_comments or mcp_clean_comments. There is no hint that this is a read-only, richly filterable listing endpoint.

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?

No when-to-use guidance, no mention of when a sibling such as wp_moderate_comments is more appropriate, and no note that this is a read-only retrieval path. The agent must infer usage entirely from the name.

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