Skip to main content
Glama

Discover content types

discover_content_types
Read-only

List all content types on a WordPress site, including custom post types, with REST base, hierarchy, taxonomies, and supported fields to determine what's accessible via REST.

Instructions

List every content type registered on the site — post, page, and any custom post type — with its REST base, whether it is hierarchical, which taxonomies apply, and which fields it supports. Call this before working with an unfamiliar site: a type absent here is registered with show_in_rest => false and cannot be reached over REST at all.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
include_countsNoAlso report how many items exist per type. Costs one extra request per type.
Behavior4/5

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

Annotations already mark this as read-only and non-destructive. The description adds meaningful behavioral context: the show_in_rest => false implication for absent types, which informs the agent about the tool's scope and limitations. It does not contradict the annotations (idempotentHint false is plausible for a listing that may reflect changing data, but the description doesn't claim idempotency). No conflicts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero waste. The primary action is front-loaded, followed by precise usage guidance. Every clause earns its place—no redundant phrases or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a listing tool with no output schema, the description fully explains what is returned and why this tool is essential for unfamiliar sites. It also covers the show_in_rest behavior and the optional include_counts parameter is already in the schema. An agent can call this correctly without additional information.

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 both parameters (site_id, include_counts) are fully documented in the schema. The description does not add any parameter-specific details beyond the schema; it only mentions the include_counts cost indirectly via the parameter description. Per the rubric, a baseline of 3 applies when the schema carries the semantic weight.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('List'), a clear resource ('every content type registered on the site'), and enumerates the exact attributes returned (REST base, hierarchical status, taxonomies, supported fields). This distinguishes it from sibling tools like discover_taxonomies, which target a different resource. The purpose is unambiguous and detailed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description gives explicit context for when to use it: 'Call this before working with an unfamiliar site.' It also explains the consequence of a type being absent (show_in_rest false and unreachable via REST), which is valuable guidance. However, it does not explicitly name alternatives like discover_taxonomies or state when *not* to use it, so it lacks formal exclusions/alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alokemajumder/wpxmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server