Skip to main content
Glama

wp_list_posts

Filter and retrieve WordPress posts by status, date, author, category, tag, format, search term, or ID to locate specific content for review or management.

Instructions

List WordPress posts with optional filters

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_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
siteYesSite id (see list_sites)
slugNoLimit to these slugs
tagsNoLimit to posts with any of these tag IDs
afterNoPublished after this ISO8601 date
orderNoSort directiondesc
authorNoLimit to these author user IDs
beforeNoPublished before this ISO8601 date
formatNoLimit to these post formats
offsetNoSkip this many items (overrides page)
searchNoSearch term
statusNoLimit to one or more statuses (default publish; 'any' = all except trash/auto-draft)
stickyNotrue = only sticky posts, false = only non-sticky
excludeNoExclude these IDs
includeNoLimit to these IDs
orderbyNoSort fielddate
per_pageNoPosts per page (max 100)
categoriesNoLimit to posts in any of these category IDs
tags_excludeNoExclude posts with these tag IDs
tax_relationNoHow categories and tags filters combine (default AND)
ignore_stickyNoDo not move sticky posts to the top (WP default true)
author_excludeNoExclude these author user IDs
modified_afterNoModified after this ISO8601 date
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
categories_excludeNoExclude posts in these category IDs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed35 schema fields changedv3.14.0
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "Published after this ISO8601 date",
      +  "type": "string"
      +}
    • changedInput schema / properties / author / description
      Previous value: -"Author ID"New value: +"Limit to these author user IDs"
    • addedInput schema / properties / author / items
      Added value: +{
      +  "type": "integer"
      +}
    • changedInput schema / properties / author / type
      Previous value: -"number"New value: +"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"
      +}
    • changedInput schema / properties / categories / description
      Previous value: -"Category ID(s), comma-separated"New value: +"Limit to posts in any of these category IDs"
    • addedInput schema / properties / categories / items
      Added value: +{
      +  "type": "integer"
      +}
    • changedInput schema / properties / categories / type
      Previous value: -"string"New value: +"array"
    • addedInput schema / properties / categories_exclude
      Added value: +{
      +  "description": "Exclude posts in these category IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / exclude
      Added value: +{
      +  "description": "Exclude these IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Limit to these post formats",
      +  "items": {
      +    "enum": [
      +      "standard",
      +      "aside",
      +      "chat",
      +      "gallery",
      +      "link",
      +      "image",
      +      "quote",
      +      "status",
      +      "video",
      +      "audio"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / ignore_sticky
      Added value: +{
      +  "description": "Do not move sticky posts to the top (WP default true)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "Limit to these IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • 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",
      -  "id"
      -]New value: +[
      +  "author",
      +  "date",
      +  "id",
      +  "include",
      +  "modified",
      +  "parent",
      +  "relevance",
      +  "slug",
      +  "include_slugs",
      +  "title"
      +]
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / per_page / type
      Previous value: -"number"New value: +"integer"
    • 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: -"Post 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"
    • addedInput schema / properties / sticky
      Added value: +{
      +  "description": "true = only sticky posts, false = only non-sticky",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / tags / description
      Previous value: -"Tag ID(s), comma-separated"New value: +"Limit to posts with any of these tag IDs"
    • addedInput schema / properties / tags / items
      Added value: +{
      +  "type": "integer"
      +}
    • changedInput schema / properties / tags / type
      Previous value: -"string"New value: +"array"
    • addedInput schema / properties / tags_exclude
      Added value: +{
      +  "description": "Exclude posts with these tag IDs",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / tax_relation
      Added value: +{
      +  "description": "How categories and tags filters combine (default AND)",
      +  "enum": [
      +    "AND",
      +    "OR"
      +  ],
      +  "type": "string"
      +}
  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.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it only restates the tool name. It doesn't disclose read-only safety, authentication requirements, pagination defaults, or what a response includes.

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?

One short sentence with no filler, front-loaded with the verb and resource. It is cleanly structured, though its brevity is also the source of its gaps.

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 27-parameter listing tool with no annotations and no output schema, the description is far too thin. It should at minimum cover read-only behavior, pagination, default status filtering, and how to combine filters, none of which are addressed.

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 the schema already documents all 27 parameters in detail. The description's 'optional filters' adds no format or constraint detail beyond what the schema provides.

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?

The description states a specific verb 'List' and resource 'WordPress posts', making the core action unambiguous. However, it offers no differentiation from siblings such as wp_search_posts or mcp_list_cpt_posts, 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 Guidelines2/5

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

There is no explicit when-to-use, when-not-to-use, or alternative routing. The phrase 'with optional filters' implies filtering is supported but doesn't tell an agent when to choose this tool over wp_search_posts or how to handle pagination.

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