Skip to main content
Glama

brain_search_components

Search a local FTS5 catalog of shared components by capability or stack keywords before designing a new reusable module, so you can reuse existing code instead of duplicating it.

Instructions

Search shared-components/CATALOG.md (FTS5) before designing a new reusable module.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 5, max 20)
queryYesCapability or stack keywords

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. 'Search' and 'FTS5' imply a read-only, full-text matching operation, which is useful, but nothing is said about ranking, whether partial/keyword matches are returned, or what the result entries contain.

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?

One sentence, front-loaded with the action and resource, with the timing hint appended. Nothing extraneous.

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 two-parameter search tool with a fully described schema and no output schema, the definition covers what is searched, how, and when. Only the shape of returned results and match behavior remain unspecified, which is a minor gap for a lookup tool.

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 coverage is 100%, with both 'query' and 'limit' fully documented in the schema, including defaults and max. The description adds no syntax guidance for the query (e.g., FTS5 operators or phrase handling) beyond the schema baseline.

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?

States a specific verb (Search) against a specific resource (shared-components/CATALOG.md) and identifies the retrieval mechanism (FTS5), so the agent knows this is a full-text lookup over a component catalog rather than a lessons or ops-state lookup. It stops short of explicitly contrasting itself with sibling tools like brain_search_lessons.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'before designing a new reusable module' gives a clear triggering condition that tells the agent when this tool is appropriate. No exclusions or named alternatives are given, so the agent must infer that non-component topics belong elsewhere.

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