Skip to main content
Glama

List block patterns

list_block_patterns
Read-only

List WordPress block patterns from core, theme, plugins, or pattern directory, filtered by category or search, to reuse existing layout markup instead of hand-writing it.

Instructions

List the block patterns registered on the site — from core, the active theme's patterns/ folder, plugins and the pattern directory — with their categories, filterable by category and search text. Use it to reuse an existing pattern's markup instead of hand-writing layout. Pattern content is omitted by default because it is large; set include_content for truncated markup.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum patterns to return.
searchNoCase-insensitive match against the pattern name, title, description and keywords.
sourceNoOnly patterns from this source, e.g. "theme", "core", "plugin", "pattern-directory/theme".
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.
categoryNoOnly patterns in this category slug, e.g. "header", "call-to-action", "banner".
include_contentNoInclude each pattern's block markup, truncated to content_max_chars.
content_max_charsNoTruncation length per pattern when include_content is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses a key behavioral detail beyond the annotations: pattern content is omitted by default because it is large, and include_content returns truncated markup. This complements the readOnlyHint and destructiveHint annotations with useful operational context.

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 focused sentences deliver the most decision-relevant information: scope, sources, filtering, and the content-size trade-off. There is no filler, and the key facts are front-loaded.

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 list tool with a fully documented schema, the description covers sources, filtering, and the important include_content behavior. It does not mention pagination or result shape, but those are less critical given the readOnlyHint annotation and the absence of an output schema.

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?

The input schema covers all 7 parameters with 100% description coverage, so the description does not need to re-explain them. It adds mild context around sources and the include_content default, but it does not significantly extend parameter meaning beyond what the schema already provides.

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 uses a specific verb and resource ('List the block patterns registered on the site'), enumerates the sources (core, theme, plugins, pattern directory), and mentions categories and filtering. This clearly distinguishes it from sibling tools like list_block_types and list_reusable_blocks.

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

Usage Guidelines4/5

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

It gives a concrete use case: reuse an existing pattern's markup instead of hand-writing layout. It does not explicitly name alternatives or state when not to use it, but the context is clear enough for an agent to select it appropriately.

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