Skip to main content
Glama

Search the WordPress developer docs

wp_docs
Read-onlyIdempotent

Finds the official documentation for a WordPress task or topic: developer handbooks (blocks, themes, plugins, REST API, nonces, cron, roles, caching), step-by-step guides, and the own docs of page builders and major plugins (WooCommerce, ACF, Yoast, Elementor, Bricks and more). Use when you need to know how something is done, or where a product documents it. Returns links with a one-line summary, never the page content. For an exact function, hook or class name, use wp_code.

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": {
      "query": "<query>"
    },
    "name": "wp_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesThe task or topic in a few words: "register a custom block", "Elementor custom widget", "speed up WooCommerce"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"A function, hook or class name, or a question"New value: +"The task or topic in a few words: \"register a custom block\", \"Elementor custom widget\", \"speed up WooCommerce\""
    • addedInput schema / properties / query / maxLength
      Added value: +300
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description still adds real value by stating the return shape ('links with a one-line summary, never the page content') in the absence of an output schema. It stops short of describing result ranking or what happens on a no-match query.

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?

Three sentences, each load-bearing: what it covers, when to use it with the product-docs case, and the return format plus sibling routing. No filler and the scope list is 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 two-parameter read-only search with no output schema, the description covers purpose, scope, when to use, the return format, and the alternative. The only gap is that the limit parameter's effect on result counts is never mentioned in prose, though the schema bounds it.

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 50%: the query parameter is already documented in the schema with examples, while limit is not described anywhere but carries obvious defaults and bounds. The description's 'task or topic' framing and the exact-name exclusion add a little meaning but largely restate what the schema examples show.

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 and resource ('Finds the official documentation') and enumerates the coverage: developer handbooks (blocks, themes, plugins, REST API, nonces, cron, roles, caching), guides, and third-party product docs. It explicitly distinguishes itself from wp_code for exact identifiers, so an agent can pick between the two 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?

'Use when you need to know how something is done, or where a product documents it' gives a positive trigger, and 'For an exact function, hook or class name, use wp_code' names the alternative and the condition that selects it. Both the when and the when-not are stated.

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