Tools Catalog / WordPress tools / wp_get_posts

wp_get_posts tool reference for StifLi Flex MCP

Read-only
Group PostsCapability edit_posts

lists posts with filters and optional enrichments such as author, featured media, taxonomies, and pagination.

Description

lists posts with filters and optional enrichments such as author, featured media, taxonomies, and pagination.

What it is for

  • Reviewing recent entries.
  • Finding content by status, category, tag, or date.
  • Giving an AI agent context before editing or summarizing.

Example use case

editorial content discovery.

Sample prompt

List the latest 10 published blog posts, include the author and featured image, and show pagination metadata.

Sample response

{
  "tool": "wp_get_posts",
  "status": "ok",
  "items": []
}

What does wp_get_posts do?

lists posts with filters and optional enrichments such as author, featured media, taxonomies, and pagination.

Does wp_get_posts modify site data?

No. It is a read-only operation and does not modify content or settings.

Which capability is commonly required?

It usually runs under controls compatible with edit_posts and the active MCP profile.

How should wp_get_posts be used safely?

Limit scope with filters and pagination to reduce overexposure of data.