Skip to main content
Glama

search_docs

Search WordPress developer documentation by query and category to retrieve relevant references, titles, URLs, and content summaries for coding tasks.

Instructions

Search WordPress developer documentation (developer.wordpress.org). Returns relevant documentation chunks with titles, URLs, and content summaries. Use specific search terms for best results. Categories: reference, handbook, code-reference, plugins, themes, rest-api, block-editor, all.

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>",
      "conversationId": "<conversationId>"
    },
    "name": "search_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-20). Defaults to 5.
queryYesSearch query for WordPress documentation. Be specific, e.g. 'register custom post type', 'enqueue scripts', 'block.json attributes'.
categoryNoCategory to filter documentation search. Defaults to 'all'.all
conversationIdYesThe conversation ID obtained from learn_wordpress_api.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does usefully disclose the return shape (documentation chunks with titles, URLs, and content summaries) and enumeration of categories, but it says nothing about the dependency on conversationId, result ranking/truncation behavior, or that results are excerpts rather than full pages.

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

Conciseness3/5

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

The opening sentence is front-loaded and effective, but the category enumeration repeats the schema's enum verbatim and 'Use specific search terms for best results' restates the query parameter description. Two of the four sentences do not earn their place against the structured data.

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 four-parameter, fully documented search tool with no output schema, describing the returned fields is the right compensating detail. The missing piece is the prerequisite relationship with learn_wordpress_api for conversationId and any hint about when to escalate to fetch_full_docs; otherwise it is sufficient to call the tool correctly.

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 description coverage is 100%, so the schema already documents query, limit, category, and conversationId, including the default of 5 and the 1-20 range. The description's category list and 'be specific' advice duplicate rather than extend the schema, so the baseline 3 is correct.

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 names a specific verb and resource ('Search WordPress developer documentation') and scopes it to developer.wordpress.org, and it states what comes back (titles, URLs, content summaries). It is clearly a search/retrieval tool, but it never contrasts itself with the sibling fetch_full_docs, so the boundary between searching and fetching full documents is left to inference.

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?

The only usage guidance is 'Use specific search terms for best results', which is query-formulation advice rather than when-to-use guidance. There is no statement of when to prefer this over fetch_full_docs (e.g., search first to find the doc, then fetch in full) and no exclusions, so usage is only implied by the tool's name and category list.

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