Skip to main content
Glama

search_patterns

Read-only

Field-weighted keyword search across the framework. Terms match at word starts on lowercased text and are IDF-weighted, so rare terms outrank ubiquitous ones; field weights: title 10x, summary 4x, SFR text 3x (all of a subgoal's SFRs scored as one field), description 2x, pattern body 1x. matched_in reports the highest-weighted field that matched. Common practitioner phrases are expanded to the framework's own terms at half weight (reported in expanded_terms), and requirement ids such as d2.1, D2-1 or G1.2 are pinned to the top (matched_in: identifier). No semantic / embedding search — known limitation, see /mcp.html. Use verbosity='compact' to drop snippets and confidence flags (~70% smaller payload) when triaging.

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_patterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
verbosityNofull

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare a safe read operation; the description adds substantial behavior beyond that: the ranking model, field weights, phrase expansion at half weight, identifier pinning with matched_in='identifier', and an explicit disclosure of the semantic-search limitation. It even quantifies the payload tradeoff of compact verbosity (~70% smaller), which is exactly the kind of operational detail annotations cannot express.

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?

It is front-loaded with the core definition and packs a lot of value into a single dense paragraph with no filler sentences; every clause conveys a distinct behavior. The tradeoff is readability — semicolon-chained clauses and the mid-sentence 'field weights' list make it harder to scan than a short bulleted structure would.

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 three-parameter read tool with no output schema, this is close to complete: it describes return-field semantics (matched_in, expanded_terms) and the verbosity tradeoff. The remaining gaps are the limit parameter's truncation behavior and any explicit routing to sibling tools, which matter for an agent choosing among ten search/lookup tools.

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 0%, so the description must carry the load. It does well on query (word-start matching, lowercase, IDF, requirement-id formats like d2.1/D2-1/G1.2) and on verbosity (compact drops snippets and confidence flags), but limit is never mentioned — no explanation of truncation behavior, no offset or pagination note despite the max of 50.

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 ('Field-weighted keyword search across the framework') and spells out the matching semantics (word-start matching, IDF weighting, field weights) so the agent knows exactly what kind of search this is. It never names a sibling, though, and 'search_patterns' sits next to 'find_patterns_for_task', which an agent could plausibly confuse without an explicit disambiguation line.

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?

There is one concrete usage cue — use verbosity='compact' when triaging — plus an implicit scoping statement that this is keyword search with 'no semantic / embedding search', which tells the agent what queries will fail. But there is no guidance on when to prefer find_patterns_for_task or resolve_id over this tool, and no statement of when not to use it.

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.