Skip to main content
Glama

Discover taxonomies

discover_taxonomies
Read-only

List every WordPress taxonomy—categories, tags, custom—with REST base, post types, and hierarchy. Identify taxonomies missing from REST due to show_in_rest=false.

Instructions

List every taxonomy on the site — categories, tags, and any custom taxonomy — with its REST base, which post types it applies to, and whether it is hierarchical. A taxonomy missing here is registered with show_in_rest => false and is unreachable over REST.

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.
for_typeNoOnly taxonomies attached to this content type.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral detail by disclosing that taxonomies with show_in_rest=>false are omitted and unreachable, which is beyond the annotation hints. This transparency about limitations enhances the agent's understanding.

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?

The description is two sentences with zero fluff. The first sentence front-loads the core purpose and output, and the second adds a concise, high-value caveat. Every word earns its place, and the structure is immediately scannable.

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

Completeness4/5

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

For a read-only discovery tool with no required parameters and no output schema, the description covers the essential facts: what is returned, the REST base, post types, hierarchical flag, and the important exclusion. It does not mention pagination or limits, but for a tool with this simplicity and given the annotations (openWorldHint), the missing details are minor. The description is complete enough for an agent to invoke correctly.

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%, and both parameters (site_id and for_type) already have detailed descriptions in the schema. The description does not add any parameter-specific information, but it doesn't need to because the schema fully documents them. The baseline of 3 applies when the schema carries the load.

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 precise resource ('every taxonomy on the site'), and enumerates the exact information returned (REST base, post types, hierarchical flag). It also adds a critical caveat about taxonomies not exposed over REST, distinguishing the tool's scope from a general taxonomy listing.

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

Usage Guidelines3/5

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

The description makes clear what the tool returns and includes a practical note about unreachable taxonomies, but it does not explicitly mention when to choose this over related tools like discover_content_types or list_terms. The usage context is implied rather than stated, and no alternatives or exclusions are named.

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

Deploy Server

Other Tools