Skip to main content
Glama

WordPress: List custom posts

wordpress_list_custom_posts
Read-only

List posts from a specific WordPress custom post type by specifying the site and post type; supports pagination, status filters, and per-page limits.

Instructions

[UNIFIED] List posts of a specific custom post type. Use list_post_types first to discover available post types.

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

Input Schema

NameRequiredDescriptionDefault
pageNo
siteYes
statusNoany
per_pageNo
post_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.13.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv3.4.0

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe, non-mutating read, so the description needn't restate safety. It adds nothing further — no note on pagination defaults (page=1, per_page=10), whether status=any includes drafts/private, or result ordering. With annotations doing the safety work, a 3 is the right ceiling.

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?

Two short sentences, both front-loaded and purposeful, with the prerequisite placed immediately after the purpose. The "[UNIFIED]" tag is noise that adds no meaning for the agent, a minor deduction.

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 5-parameter, fully undocumented-schema, no-output-schema tool, this is thin: the description explains neither the pagination contract nor the status filter, and there is no output schema to fill the gap on return shape. The one thing it does cover well is how to obtain a valid post_type.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, so the description must compensate and largely does not. It never mentions page, per_page, status, or site; the only parameter concept implied is post_type via the prerequisite. An agent must open the schema and guess at semantics like what status="any" actually returns.

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 and resource ("List posts of a specific custom post type"), which distinguishes it from the generic wordpress_list_posts sibling by scoping to custom post types. It does not explicitly name the sibling it differs from, but the qualifier "custom" carries the distinction.

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 sequencing prerequisite: run list_post_types first to discover valid post_type values. That is real, actionable guidance that prevents a failed call. It stops short of naming when to prefer the plain posts listing or how to handle non-custom types.

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