Skip to main content
Glama

List Custom Posts

wp_list_custom_posts
Read-only

List items of any post type using its REST base (e.g. "portfolio", "testimonials", "products"). Use wp_list_post_types first to discover available post types and their rest_base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number
orderNo
searchNoSearch term
statusNoFilter by status (default: publish)
orderbyNo
site_idNoSite ID to target (optional if you have only one connected site)
per_pageNoNumber of items (default 20, max 100)
rest_baseYesREST base of the post type (e.g. "portfolio", "events"). Get this from wp_list_post_types.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered. The description adds no behavioral context beyond that (no pagination behavior, no auth/scope caveats, no note that results may be empty for an unknown rest_base), leaving it at the minimum-viable level.

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 tightly written sentences: the core action and its addressing mechanism come first, then the required discovery step. No filler, no redundancy.

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

Completeness3/5

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

With 8 parameters and no output schema, the definition never indicates what a listed custom post looks like or how pagination interacts with results beyond the schema's per_page note. The dependency on wp_list_post_types is a good addition, but the return surface remains undocumented for a tool with no output schema.

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 75%, so most parameters are already documented; the enum-constrained filters (status, order, orderby) are self-evident. The description's rest_base examples and provenance largely duplicate the schema's own rest_base description, adding little new meaning.

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 ('List') and resource ('items of any post type') and explains the addressing mechanism (REST base), which is distinctive versus wp_list_posts. It does not explicitly contrast with the standard-post sibling, so an agent must infer that this is the generic/custom-type variant.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite chain: call wp_list_post_types first to discover the rest_base value. It stops short of naming when to prefer this over wp_list_posts or woo_list_products, so no exclusion guidance, but the dependency is clear.

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