Skip to main content
Glama

search_lessons

Find prevention rules and known fixes for a task or error message, returning a few high-confidence matches to help avoid recurring issues.

Instructions

Find prevention rules / known fixes relevant to a task or error message. Returns few, high-confidence matches.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
frameworkNo
project_dirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load, and it does disclose one real behavioral trait: results are few and high-confidence, which sets expectations about recall. It remains silent on whether the search is keyword, semantic or fuzzy, whether project_dir scoping changes results, and what happens on zero matches — meaningful gaps for a retrieval tool with no annotations.

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?

Two short sentences, front-loaded with the purpose and followed by the result characteristic. Every sentence adds information and there is no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with no annotations and no output schema, the description is too thin: three optional parameters are entirely unexplained and the shape of a match is not characterised beyond "high-confidence". An agent can form a query but cannot confidently decide how to use limit, framework or project_dir.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, so the description must compensate and largely does not. The "task or error message" phrasing loosely maps to the required query, but limit, framework and project_dir — including the default of 4 and the meaning of a null framework/project_dir — are never explained anywhere.

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 gives a specific verb and resource: "Find prevention rules / known fixes", scoped to "a task or error message". That is more concrete than the sibling names alone and tells an agent what kind of object comes back (rules/fixes). It stops short of explicitly contrasting with near-neighbours like find_knowledge or get_rules, so it is clear but not sibling-differentiating.

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?

Usage is only implied: the phrase "relevant to a task or error message" suggests the calling context, and "few, high-confidence matches" hints this is a precision-oriented lookup rather than a broad listing. There is no explicit when-to-use/when-not statement and no named alternative for broader or code-focused searches, leaving the agent to infer routing.

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