Skip to main content
Glama

Search rules

search_rules
Read-onlyIdempotent

Keyword search over full rules (deterministic BM25 scoring, no embeddings). Returns up to 5 rules (at most 50 rules a day on Pro, 80 on Team, shared with fetch_rules) with confidence, causality, evaluation_mode (deterministic, agent, or hybrid) and each rule's 2 strongest sources (evidence_total counts them all; fetch_rules with ids returns more). Use when: You need current AEO/GEO guidance for a research question, a semantic page audit (even when checks pass), or when a fix hint is ambiguous and you can name the question in a few words. Avoid when: You already know the category or the rule ids (fetch_rules), or you only want a mechanical page grade. Do not claim: Search rank is not importance, and a match is not a citation. Verify: Edit, then re-run the lint or scan that failed, and apply host-agent semantic review for agent/hybrid rules.

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": "search_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesNatural-language or keyword query describing the rule you need.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only establish it is a safe, idempotent, closed-world read. The description adds real context beyond that: a hard return cap of 5 rules, a daily quota (50 Pro / 80 Team) that is shared with fetch_rules, and a warning that search rank is not importance and a match is not a citation. The quota-sharing detail in particular is behavior an agent could not infer elsewhere.

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?

The core capability and cap are front-loaded, and the labeled blocks (Use when / Avoid when / Do not claim / Verify) make it skimmable. The middle sentence is overloaded, packing return fields, quotas, and a cross-tool comparison into one parenthetical chain, which costs a point.

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?

With a single parameter and no output schema, the description carries the return-value burden well, enumerating confidence, causality, evaluation_mode and source counts. It also supplies quota limits and a verification workflow, so nothing an agent needs to call or interpret results is missing.

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?

There is one required parameter and schema coverage is 100%, so the schema already documents 'query' as natural-language or keyword. The description's framing of it as keyword search corroborates but does not materially extend the schema, so baseline 3 applies.

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 ('Keyword search over full rules') plus the retrieval mechanism (deterministic BM25, no embeddings) and the result cap. This clearly separates it from fetch_rules (id/category lookup) and from the lint/scan tools that produce mechanical grades.

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?

Explicit 'Use when' list covers three concrete situations (research question needing AEO/GEO guidance, semantic audit even when checks pass, ambiguous fix hint). 'Avoid when' names fetch_rules for known categories/ids and excludes purely mechanical grading, giving the agent a clean routing decision.

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.