mcp-easy-ai__wp_count_posts
Returns post counts grouped by status (publish, draft, pending, future, private, trash, auto-draft, inherit) for a given post type. Optional: post_type (default 'post'). Returns { post_type (the post_type echoed back), counts } where counts is keyed by status with INTEGER values (WP returns numeric strings; this tool casts them). Useful for dashboard-style summaries — wp_list_posts only returns one filtered total per call. Every status is counted only for a user who can edit that post type (its own capability, e.g. edit_pages for pages); anyone else gets only the published count of a public type, with a note saying so, and is refused a type that is not public. Through Royally: its server marks it read-only, so it runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| post_type | No | Post type slug. Defaults to "post". |