mcp-easy-ai__wp_get_cpt_item
Gets a single custom post type (CPT) item by REST base + item ID. Required: rest_base (the CPT's rest_base, or its post_type slug — wp_get_post_types lists both) and item_id. Returns a fixed set of fields: { id, title, content, excerpt, status, date, modified, slug, link }. It does NOT include custom register_rest_field extensions (e.g. ACF fields) — those are silently discarded. For built-in post types use wp_get_post / wp_get_page instead — those have richer schemas. This tool is listed as read for all callers regardless of the target CPT, but WordPress enforces edit-level access on the underlying REST request (some CPTs require edit_posts, others a custom capability like WooCommerce's edit_products) — a low-privilege caller may still see a permission error on specific CPTs even though the tool itself is visible. Through Royally: its server marks it read-only, so it runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | The ID of the item to retrieve. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| rest_base | Yes | The post type's REST base (e.g. "product", "books"); its post type slug (e.g. "book") is also accepted. |