Skip to main content
Glama

List content

list_content
Read-only

List WordPress posts, pages, or custom post types with filters, search, sorting, and pagination. Returns compact summaries to keep responses concise, with optional full content.

Instructions

List items of any content type — posts, pages, or a custom post type — with filtering, search, ordering and pagination. Returns compact summaries by default so a listing never floods the context; pass full_content: true only when you genuinely need bodies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoWhich page of results to return.
slugNoFilter by exact slug.
tagsNoTag IDs to include.
typeNoContent type slug (post, page, or a CPT such as "product"). Run discover_content_types if unsure.post
afterNoOnly items published after this ISO 8601 date.
orderNoSort direction.desc
authorNoFilter to one author's user ID.
beforeNoOnly items published before this ISO 8601 date.
fieldsNoReturn only these top-level fields, overriding the default summary shape.
parentNoFilter to children of this parent ID.
searchNoFree-text search across title and content.
statusNoFilter by status: publish, draft, pending, private, future, trash, or "any". Anything other than publish requires authentication.
orderbyNoWhich field to sort by.date
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
per_pageNoHow many results per page.
categoriesNoCategory IDs to include.
full_contentNoInclude the full content body of each item. Off by default — listings are for finding things.
modified_afterNoOnly items modified after this ISO 8601 date.
taxonomy_filtersNoFilter by any custom taxonomy, keyed by REST base, e.g. {"product_cat": [12]}.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context: it returns compact summaries by default to avoid flooding context, and that full_content is opt-in. This goes beyond what annotations alone provide.

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?

Two sentences with no redundancy. The primary purpose is front-loaded, followed by a practical behavioral note. Every word earns its place.

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 19-parameter listing tool, the description covers the key behavioral choice (summary vs full content) and relies on the schema for the rest. It doesn't explicitly distinguish from sibling listing tools, but given the schema richness and the openWorldHint annotation, this is adequate.

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 coverage is 100%, with every parameter already described. The description adds value by explaining the trade-off between summary and full_content, providing usage nuance beyond the schema's simple 'Include the full content body of each item.' This is a helpful additional semantic.

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?

The description clearly states it lists items of any content type (posts, pages, or CPTs) with filtering, search, ordering, and pagination. This distinguishes it from single-item tools like get_content or get_content_by_slug that retrieve one specific item.

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 gives explicit guidance on when to use full_content ('only when you genuinely need bodies') and implies it's the standard listing tool. However, it does not explicitly name alternatives like get_content_summary or get_content, leaving the agent to infer which sibling to use for a single item.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alokemajumder/wpxmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server