Skip to main content
Glama

Search content

wp_search
Read-onlyIdempotent

Full-text search of title and body over the posts the account may read, in any post type or one (the type revision is refused). Returns query, total (WordPress's match count) and results: one page of up to per_page post summaries (id, type, status, title, slug, link, date, modified, author, parent, excerpt, menu_order) in WordPress's search order; there is no page parameter. search_meta=true also scans postmeta values, which finds text that meta-driven themes and builders such as Elementor, ACF or WooCommerce keep there: meta_hits lists per post its id, title, type and up to 10 matching meta keys, without values, among the newest 3000 posts and for at most 50 posts. Meta hits cover only readable posts and keys the account may read anyway; protected "_" keys are reported only to an account with manage_options and only when allow-listed (filter ab_mcp_pro_protected_meta_allowlist). Read-only; needs edit_posts. Listing without a search term is wp_list_posts; a meta value is read with wp_get_post_meta. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault
typeNoPost type or "any". Default any.
queryYesText to search for, matched as WordPress's own search matches it; for search_meta also as a substring of meta values.
per_pageNoHow many results to return, 1-100 (clamped). Default 20.
search_metaNotrue also scans postmeta values and adds meta_hits (post id, title, matched meta keys). Values are not returned. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / per_page / description
      Added value: +"How many results to return, 1-100 (clamped). Default 20."
    • addedInput schema / properties / query / description
      Added value: +"Text to search for, matched as WordPress's own search matches it; for search_meta also as a substring of meta values."
    • changedInput schema / properties / search_meta / description
      Previous value: -"Also scan postmeta values; adds meta_hits (post id, title, matched meta keys). Values are not returned. Default false."New value: +"true also scans postmeta values and adds meta_hits (post id, title, matched meta keys). Values are not returned. Default false."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses substantial behavior: search_meta scans only the newest 3000 posts and caps meta_hits at 50 posts, protected "_" keys require manage_options plus an allowlist filter, and results come in WordPress's search order with no pagination. The edit_posts capability requirement is also stated, which the annotations do not cover.

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

Conciseness4/5

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

Purpose and routing constraints are front-loaded and every clause carries information (limits, permissions, return shape). It is, however, a single long run-on with nested parentheticals that is harder to parse than a split into purpose / return / constraints sentences.

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?

No output schema exists, yet the description fully enumerates the return shape (query, total, results fields, meta_hits structure) and the ordering. Combined with permission requirements and the sibling routing hints, an agent has everything needed to call it correctly.

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 100%, so the baseline is 3; the description still adds value by noting per_page bounds the single returned page, that type=revision is refused, and that search_meta matches meta values as substrings while omitting values. It stops short of explaining query matching syntax beyond deferring to WordPress's own semantics.

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 ("Full-text search of title and body over the posts the account may read") plus the scope constraint (any post type, revision refused). It explicitly distinguishes itself from siblings by naming wp_list_posts for browsing and wp_get_post_meta for meta values, so an agent can route without opening another 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?

Gives explicit when/when-not: use this with a search term, use wp_list_posts without one, use wp_get_post_meta to read a meta value. It also flags a refusal case (type revision) and the absence of a page parameter, leaving nothing to inference.

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