Skip to main content
Glama

kb_search

Search the knowledge base across annotations, functions, and variables; use optional label, comment, address, or type filters to return up to 50 relevance-ranked results.

Instructions

Search the knowledge base.

    Searches across annotations, functions, and variables.
    Optional filter: label, comment, address, type.
    Returns max 50 results sorted by relevance.
    

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

Input Schema

NameRequiredDescriptionDefault
queryYes
filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden and does contribute two concrete facts: results are capped at 50 and ordered by relevance. It omits matching semantics (substring, regex, fuzzy), whether the operation is read-only, and what each result contains, so the behavioral picture is partial.

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?

Four short lines, front-loaded with the core action, then scope, then filter hint, then result constraints. Aside from the mild restatement in the opening line, every sentence carries distinct information.

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

Completeness3/5

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

For a two-parameter tool with no annotations and no output schema, the description does cover the result cap and ordering, which is the key completeness requirement here. It still lacks any description of the returned record shape and the meaning of the 'filter' values, which the agent needs to call it correctly.

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 coverage is 0%, so the description must define both parameters. It offers a fragmentary hint for 'filter' ('label, comment, address, type') without clarifying whether that string is one of these categorical values or something else, and 'query' — the only required parameter — gets no explanation of syntax or match behavior at all.

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 ('Search') and resource ('the knowledge base') and narrows the scope to annotations, functions, and variables. It never contrasts itself with sibling retrieval tools such as find_strings or kb_get_function_info, but the purpose itself is unambiguous.

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 implied by the scope statement: use this to locate symbols across the knowledge base domains. There is no explicit when-to-use/when-not-to-use guidance and no pointer to any alternative for narrower lookups, leaving routing to the agent's inference.

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