Skip to main content
Glama

wp_list_pages

Retrieve WordPress pages with filters for status, author, parent, slug, date, and search so you can find and manage specific site content.

Instructions

List WordPress pages

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
siteYesSite id (see list_sites)
slugNoLimit to these slugs
afterNoPublished after this ISO8601 date
orderNoSort directionasc
authorNoLimit to these author user IDs
beforeNoPublished before this ISO8601 date
offsetNoSkip this many items (overrides page)
parentNoLimit to children of these page IDs ([0] = top level)
searchNoSearch term
statusNoLimit to one or more statuses (default publish; 'any' = all except trash/auto-draft)
excludeNoExclude these IDs
includeNoLimit to these IDs
orderbyNoSort fieldmenu_order
per_pageNoPages per request (max 100)
menu_orderNoLimit to pages with this menu_order
author_excludeNoExclude these author user IDs
modified_afterNoModified after this ISO8601 date
parent_excludeNoExclude children of these page IDs
search_columnsNoColumns to search (default title, excerpt and content)
modified_beforeNoModified before this ISO8601 date
search_semanticsNo'exact' matches the search term as a whole phrase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changedv3.14.0
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "Published after this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / author
      Added value: +{
      +  "description": "Limit to these author user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / author_exclude
      Added value: +{
      +  "description": "Exclude these author user IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / before
      Added value: +{
      +  "description": "Published before this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclude
      Added value: +{
      +  "description": "Exclude these IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "Limit to these IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / menu_order
      Added value: +{
      +  "description": "Limit to pages with this menu_order",
      +  "type": "integer"
      +}
    • addedInput schema / properties / modified_after
      Added value: +{
      +  "description": "Modified after this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / modified_before
      Added value: +{
      +  "description": "Modified before this ISO8601 date",
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many items (overrides page)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / order / description
      Added value: +"Sort direction"
    • addedInput schema / properties / orderby / description
      Added value: +"Sort field"
    • changedInput schema / properties / orderby / enum
      Previous value: -[
      -  "date",
      -  "title",
      -  "modified",
      -  "menu_order"
      -]New value: +[
      +  "author",
      +  "date",
      +  "id",
      +  "include",
      +  "modified",
      +  "parent",
      +  "relevance",
      +  "slug",
      +  "include_slugs",
      +  "title",
      +  "menu_order"
      +]
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / parent / description
      Previous value: -"Parent page ID (0 for top-level)"New value: +"Limit to children of these page IDs ([0] = top level)"
    • addedInput schema / properties / parent / items
      Added value: +{
      +  "type": "integer"
      +}
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"array"
    • addedInput schema / properties / parent_exclude
      Added value: +{
      +  "description": "Exclude children of these page IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / per_page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Search term",
      +  "type": "string"
      +}
    • addedInput schema / properties / search_columns
      Added value: +{
      +  "description": "Columns to search (default title, excerpt and content)",
      +  "items": {
      +    "enum": [
      +      "post_title",
      +      "post_content",
      +      "post_excerpt"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / search_semantics
      Added value: +{
      +  "description": "'exact' matches the search term as a whole phrase",
      +  "enum": [
      +    "exact"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Limit to these slugs",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / status / description
      Previous value: -"Page status filter"New value: +"Limit to one or more statuses (default publish; 'any' = all except trash/auto-draft)"
    • removedInput schema / properties / status / enum
      Removed value: -[
      -  "publish",
      -  "future",
      -  "draft",
      -  "pending",
      -  "private",
      -  "trash"
      -]
    • addedInput schema / properties / status / items
      Added value: +{
      +  "enum": [
      +    "publish",
      +    "future",
      +    "draft",
      +    "pending",
      +    "private",
      +    "trash",
      +    "auto-draft",
      +    "inherit",
      +    "any"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / status / type
      Previous value: -"string"New value: +"array"
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "site"
      +]
  3. First observedv2.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing beyond the bare operation. It omits important behaviors embedded in the schema, such as the default status filter (publish only, with 'any' excluding trash/auto-draft) and the pagination default of 20 with a 100 max, both of which materially affect results.

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

Conciseness3/5

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

Four words with no filler, but the brevity is under-specification rather than efficiency given a 22-parameter filtering tool. There is no structure to front-load because there is essentially no content.

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

Completeness1/5

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

For a tool with 22 filter parameters, three enums, a required site id, no output schema and no annotations, a single four-word sentence is far from complete. It gives the agent no help with pagination, default filtering, or the site parameter's dependency on list_sites.

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 100%, so all 22 parameters including enums and defaults are already documented in the schema. The description adds no interpretation of its own, which meets the baseline for fully documented schemas but earns no credit above it.

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?

"List WordPress pages" states a specific verb (list) and a specific resource (WordPress pages), so an agent knows the operation and target object. It does not differentiate itself from siblings such as wp_list_posts or mcp_list_cpt_posts, leaving the agent to infer that this tool covers the built-in 'page' post type specifically.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no mention of alternative tools for listing other post types. The agent must guess whether this is the right lister for a given site query.

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