Skip to main content
Glama

List the terms of a taxonomy

get_terms
Read-only

List terms in a WordPress taxonomy with IDs, names, slugs, parents, and post counts so you can pass valid term IDs to create_advanced_post and update_post.

Instructions

List the terms of one taxonomy (for example the product categories of a shop): ID, name, slug, parent and number of posts. Use the IDs in the terms argument of create_advanced_post and update_post. For the built-in categories and tags, get_categories and get_tags return the same with descriptions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "taxonomy": "<taxonomy>"
    },
    "name": "get_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxonomyYesTaxonomy name or rest_base, from get_taxonomies. If it is the name of one taxonomy and the rest_base of another, the one with that rest_base is read

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.30.0

TDQS

A4.3/5.0
Behavior4/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 real value beyond that by disclosing the return fields (ID, name, slug, parent, post count) in the absence of an output schema. It does not mention pagination or behavior on an unknown taxonomy, which is why it is not a 5.

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

Conciseness4/5

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

Three sentences, front-loaded with the purpose and return shape, then usage, then sibling routing—no filler. The final sentence about get_categories/get_tags is slightly clunky ("return the same with descriptions") but still earns its place by preventing a wrong tool choice.

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 single-parameter read tool with no output schema, the definition covers purpose, return shape, and downstream consumption. The only gaps are handling of large/empty result sets and error behavior for an unrecognized taxonomy, both minor for this complexity level.

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 coverage is 100% and the schema itself already explains the name-or-rest_base ambiguity resolution. The description only reinforces that exactly one taxonomy is read ("the terms of one taxonomy"), adding little beyond the structured field. Baseline 3 is appropriate.

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?

Names a specific verb ("List") and resource ("the terms of one taxonomy") and immediately grounds it with a concrete example ("the product categories of a shop"). It also enumerates the returned fields and explicitly distinguishes itself from get_categories/get_tags, so an agent can route without opening a 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?

States the downstream use directly: "Use the IDs in the terms argument of create_advanced_post and update_post," which tells the agent why and when to call this. It also names the alternatives for built-in categories and tags (get_categories, get_tags), giving an explicit routing rule rather than leaving it to inference.

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