Skip to main content
Glama

List pages and posts

wp_list_content
Read-only

Lists WordPress pages, posts, and custom post type items with IDs, titles, statuses, URLs, and last-modified dates; search by text to locate content.

Instructions

Lists pages, posts or custom post type items with ID, title, status, URL and last modified date. Use search to find items by text.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wp_list_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
orderNodesc
searchNoSearch text
statusNoDefault "any"any
orderbyNomodified
per_pageNo
post_typeNoPost type slug or REST base: "page", "post" or a custom post type. Default "page".page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds the returned field list, which is helpful since there is no output schema, but says nothing about pagination behavior, total counts, empty results, or authentication needs.

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 sentences, no filler, with the resource and return fields front-loaded. It is efficient, though the trailing search hint is thin and could have been folded into a more informative usage clause.

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?

For a 7-parameter listing tool with no output schema, disclosing the returned fields is the right move and covers the main gap. Missing are notes on pagination metadata, default ordering semantics, or what happens with an empty/invalid post_type, which would materially help an agent calling it correctly.

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 only 43%, so the description should carry more weight; it only clarifies the `search` parameter. The remaining parameters (page, per_page, order, orderby) are self-evident from names and enums, but defaults and limits like per_page max 100 are left entirely to the schema.

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 ("Lists") and precision on the resource ("pages, posts or custom post type items"), plus the fields returned. It does not differentiate itself from siblings like wp_get_content (single item) or wp_list_media, so it stops short of a 5.

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 only guidance is "Use search to find items by text," which is a parameter hint rather than a when-to-use rule. There is no explicit statement about when to prefer this over wp_get_content or when not to use it, so usage is only implied by the tool name.

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