Skip to main content
Glama

AI Engine for WordPress

List comments

wp_get_comments
Read-only

List comments with their post, author, content, date and approval status. Filter by post_id, status, search text, user_id or author_email. Returns 10 unless limit is set. With type set to "note", it lists the editor notes on posts, where an approval status of 1 means the note thread is resolved.

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by comment type, e.g. "comment", "pingback", or "note" (WP 6.9 editor Notes). Omit to return all types.
limitNo
pagedNo
offsetNo
searchNo
statusNo
post_idNo
user_idNoFilter by the registered user ID of the commenter.
author_emailNoFilter by the commenter email address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety needs no restating. The description still adds non-obvious behavior: a silent default page size of 10 when limit is omitted, and that approval status 1 means a note thread is resolved — a semantic quirk an agent could not guess. It stops short of describing ordering or what happens when offset/paged combine.

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

Conciseness5/5

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

Three sentences, no filler, each adding distinct information: returned shape, filter set with the default limit, then the note-specific edge case. The most surprising fact (note/approval semantics) is placed last where it reads naturally after the filter list.

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?

For a 9-parameter read tool with no output schema and thin schema coverage, the description is largely sufficient: it covers result shape, filtering, default paging and the note mode. The gaps are pagination semantics for paged/offset and valid status values, which the schema also leaves as a bare string.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description must carry the load, and it names six of the nine filters (post_id, status, search, user_id, author_email, type) plus the limit default. It leaves paged and offset unexplained, so an agent must guess their interaction with limit.

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?

Names a specific verb and resource ('List comments') and immediately enumerates the returned fields (post, author, content, date, approval status), so an agent knows exactly what it gets. The explicit note-type branch ('type set to "note" lists editor notes on posts') separates it from the sibling write tools wp_create_note/wp_update_note and from wp_get_posts.

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?

The description enumerates the filter dimensions, which implies when the tool is useful, and the note-type sentence gives one concrete usage scenario. However, it never states when NOT to use it or names an alternative (e.g. wp_get_posts for posts, wp_update_comment for changing a comment), so routing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources