Skip to main content
Glama

search_site

Search across all WordPress content types—posts, pages, categories, tags, and media—in a single query; returns matching titles, types, and URLs.

Instructions

Search across all WordPress content types (posts, pages, categories, tags, media) in a single query. Returns matching results with their type, title, and URL.

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": {
      "search": "<search>"
    },
    "name": "search_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (default: 1)
typeNoLimit search to a specific content type (default: all types)
searchYesSearch term to find across all content
subtypeNoLimit search to a specific subtype (default: any)
per_pageNoNumber of results per page (default: 10, max: 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 behavioral burden alone. It usefully discloses the return shape (type, title, URL), which is genuinely helpful for a search tool, but says nothing about result limits, ordering, or permission requirements for the different content types.

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 sentences, both load-bearing: the first establishes scope and verb, the second establishes the return shape. Nothing is padded and the key information 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 five-parameter, single-required-field search tool with full schema coverage and no output schema, the description covers purpose and return values adequately. The remaining gap is the lack of guidance on ordering/pagination behavior and on how the type/subtype filters interact with the prose list of content types.

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% and every parameter has an inline description including defaults and the max of 100, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond what the schema states. Note a mild mismatch: the prose lists categories, tags and media while the type enum values are post/term/post-format, which the description does not reconcile.

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 gives a specific verb ("Search") and names the exact resource scope (posts, pages, categories, tags, media) plus the return fields (type, title, URL). That distinguishes it from the sibling list/get tools like get_posts or get_pages, which retrieve rather than search. It stops short of naming a sibling explicitly, so it is not a clean 5.

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 only implied by "in a single query," which suggests this is the cross-type search path rather than per-type retrieval. There is no explicit statement of when to prefer this over get_posts/get_pages or of any exclusion, so an agent must infer the routing.

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