Skip to main content
Glama

brain_search_lessons

Search indexed lessons and playbooks by keyword before risky tasks to reuse proven browser, mobile, and token-saving patterns.

Instructions

Search Brain v2 lessons + knowledge/ playbooks (browser, mobile ADB/Wi-Fi/iOS, token-optimal patterns) via FTS5 before starting a risky task.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 5, max 20)
queryYesKeywords to search (e.g. 'windows powershell git commit')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does add real value by revealing the backend is FTS5, which tells the agent this is keyword/token matching rather than semantic search, and it discloses the domain of content covered. It says nothing about result shape, ordering, or whether results are deduplicated or truncated, which are meaningful gaps for an unannotated tool.

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?

A single sentence that front-loads the verb and resource before adding the mechanism and the timing cue. Every clause carries information; the parenthetical platform list is the only slightly list-like element and it earns its place by scoping the searchable content.

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 read-style search with no output schema and no annotations, the description covers what is searched, how matching works, and when to invoke it. The main omission is any hint at what a result looks like (a lesson entry vs. a playbook), which would help an agent interpret output without a schema.

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 documented including default (5) and max (20), so the schema already does the heavy lifting. The description adds only the keyword-matching flavor via the FTS5 mention, which aligns with but does not extend beyond the schema's own example. Baseline 3 applies.

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?

Names a specific verb ('Search') and a specific resource ('Brain v2 lessons + knowledge/playbooks'), plus the retrieval mechanism (FTS5). The parenthetical topic scoping (browser, mobile ADB/Wi-Fi/iOS) further pins down the content, making it distinguishable from brain_search_components. It stops short of explicitly contrasting itself with that sibling by name.

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 starting a risky task' gives a concrete trigger condition for when to reach for this tool, which is more than most search tools offer. There are no exclusions or named alternatives, so an agent must infer that non-risky lookups or component lookups belong elsewhere.

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