Skip to main content
Glama

List taxonomies

get_taxonomies
Read-only

Lists a WordPress site's taxonomies, including categories, tags, and custom types, with their post types and rest_base values for mapping terms when creating or updating posts.

Instructions

List the site's taxonomies (categories, tags, and custom ones such as product categories) with the post types they belong to and the rest_base to use as the key in the terms argument of create_advanced_post and update_post. Use get_terms next to get the term IDs of one taxonomy.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_taxonomies"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_typeNoOnly the taxonomies of this post type

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.30.0

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that rest_base is the key expected in the terms argument, which is useful behavioral context. It does not describe return shape, ordering, or whether empty results occur, but with annotations present the bar is lower.

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, front-loaded with the resource and payload, second sentence covering the alternative tool and the downstream usage. No filler or repetition of the title.

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?

A one-parameter read-only discovery tool with full schema coverage and no output schema. The description covers what is returned, why (rest_base for terms arguments), and which sibling to use next. That is complete for this level of complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single post_type parameter is already 100% documented in the schema, so the baseline is 3. The description adds meaning by framing the output around post types and rest_base, making clear why the filter exists and how results are consumed. It stops short of adding format details beyond the schema.

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?

States a specific verb (List) and resource (site's taxonomies), names concrete examples (categories, tags, product categories), and specifies the payload fields returned (post types, rest_base). An agent can distinguish it from get_categories/get_tags and from get_terms without opening the schema.

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

Usage Guidelines5/5

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

Explicitly routes between tools: use this to discover taxonomies and the rest_base key, then use get_terms to get term IDs of one taxonomy. It also names the downstream consumers (create_advanced_post and update_post) that need rest_base. This is exactly the when-to-use/alternative guidance an agent needs.

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