Skip to main content
Glama

AI Engine for WordPress

Count terms

wp_count_terms
Read-only

Count the terms in a taxonomy.

Input Schema

NameRequiredDescriptionDefault
taxonomyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. Beyond that the description adds nothing: it does not say whether counts include empty/hidden terms, whether the result is a single integer or per-status breakdown, or how it behaves for an unknown taxonomy.

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?

A single front-loaded sentence with no filler, which is the right shape for a simple counting tool. The brevity is appropriate to the operation, though it leaves little room for the missing value details.

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

Completeness2/5

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

For a one-parameter tool with no output schema and solid annotations, the safety story is complete but the input story is not: the agent still does not know what taxonomy identifiers are accepted or what the returned count represents. A short example or list of valid taxonomy values would close the gap.

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

Parameters2/5

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

Schema description coverage is 0% and the single required parameter 'taxonomy' has no type detail, enum, or example. The phrase 'in a taxonomy' only restates the parameter name and does not tell the agent what values are valid (e.g., 'category', 'post_tag', custom taxonomy slugs).

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

Purpose4/5

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

The description states a specific verb (count) and resource (terms in a taxonomy), which cleanly separates it from siblings like wp_get_terms (listing) and wp_count_posts/wp_count_media (other counting targets). It does not explicitly name those alternatives, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to call this instead of wp_get_terms or wp_get_post_terms, nor any mention of preconditions such as the taxonomy being registered. The agent must infer the use case entirely from the verb 'count'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources