Skip to main content
Glama

mcp-easy-ai__wp_list_templates

Read-only

Lists block templates or template parts. Optional: type (template — default — or template_part; template parts are the header, footer and other reusable areas of a block theme), area (template parts only: header, footer or uncategorized, exact match applied locally), search (case-insensitive match on title, slug, or description, applied locally), per_page (default 10, max 100), page (pagination applied locally). Returns { templates: [{ id, slug, title, description, type, area, status, has_theme_file }], total, total_pages, page, per_page }. area is an empty string for templates. IDs are theme-slug//slug for both types and are accepted by wp_get_template / wp_update_template with the same type. Requires an active block theme (Full Site Editing). Through Royally: its server marks it read-only, so it runs straight away.

Input Schema

NameRequiredDescriptionDefault
areaNoTemplate parts only: keep parts whose area equals this value (`header`, `footer`, `uncategorized`). Applied locally.
pageNoPage number for pagination.
typeNoWhat to list: `template` (page templates such as index, single, archive) or `template_part` (header, footer and other reusable areas).template
searchNoSearch by keyword.
site_idNoSite to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com)
per_pageNoItems per page (1-100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the readOnlyHint annotation: it discloses that `area`, `search` and pagination are applied locally (i.e. not server-side filtering), that an active block theme with Full Site Editing is required, and what the response object contains. The only repetition is the read-only framing ('runs straight away'), which adds the useful 'no approval needed' nuance rather than merely restating the annotation.

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?

Single dense paragraph, front-loaded with the purpose, then parameters, then return shape, then prerequisites. Every clause carries information an agent would otherwise have to infer, and there is no filler.

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?

With no output schema, the description supplies the return shape (field list plus total/total_pages/page/per_page) and the ID convention, and it flags the block-theme prerequisite. Combined with annotations covering safety, nothing material is missing for a correct call.

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?

Schema coverage is already 100%, so the baseline is 3; the description still adds value by explaining that template parts are 'the header, footer and other reusable areas', that `area` is an empty string for templates, that defaults/max apply to `per_page`, and that pagination/filtering happen locally. It does omit the `site_id` parameter, which is only explained in 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?

Opens with a specific verb + resource: 'Lists block templates or template parts', and immediately distinguishes the two modes it can return. An agent can tell this apart from the single-object sibling wp_get_template without reading either schema.

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?

Usage is implied rather than stated: it notes that returned IDs 'are accepted by wp_get_template / wp_update_template with the same `type`', which hints at a list-then-fetch/update workflow. But it never says explicitly when to choose this over wp_get_template or the other template-related siblings, and gives no exclusions.

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