Tools Catalog / WordPress tools / wp_get_post_types

wp_get_post_types tool reference for StifLi Flex MCP

Read-only
Group DiagnosticsCapability edit_posts

lists registered post types with labels, capabilities, and visibility.

Description

lists registered post types with labels, capabilities, and visibility.

What it is for

  • Discovering custom post types.
  • Preparing automations for custom content types.

Example use case

custom content discovery.

Sample prompt

List all registered post types with their labels so I can see what custom content models exist on this site.

Sample response

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

What does wp_get_post_types do?

lists registered post types with labels, capabilities, and visibility.

Does wp_get_post_types 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_post_types be used safely?

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