Skip to main content
Glama

api_brain_knowledge_search

Read-onlyIdempotent

Run ranked keyword retrieval on user-provided second-brain document snippets with transparent scores. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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>",
      "documents": "<documents>"
    },
    "name": "api_brain_knowledge_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesquery; see operation description for units and format
documentsYesdocuments; see operation description for units and format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely non-derivable behavior: a per-call cost of 0.01 USDC on Base x402 and the X-Provider-Key header for customer-owned credentials. It still omits result-count limits, document-size limits, and what "transparent scores" look like.

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?

Two tight sentences, with the core operation front-loaded before the payment/credential details. The trailing clause "where needed" is vague but does not bloat the text.

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?

With no output schema, the description carries the burden of explaining return shape, and "transparent scores" is only a hint (no score range, ordering, or tie behavior). Combined with the unexplained `documents` string format and absent size/limit guidance, it is adequate but leaves real gaps for a 2-param retrieval tool.

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?

The schema's own descriptions are placeholders that defer to "the operation description for units and format," but the description never supplies that format. Notably `documents` is typed as a plain string despite presumably being a list of snippets, and the description gives no clarification on encoding, delimiters, or max count — a dangling self-reference rather than added meaning.

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+resource: "ranked keyword retrieval" over "second-brain document snippets," which cleanly separates it from siblings like api_brain_dedupe_hash and api_brain_text_chunker. It does not name any sibling explicitly, so an agent must infer the boundary from the resource wording alone.

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?

The phrase "user-provided second-brain document snippets" implicitly scopes when the tool applies, but there is no explicit when-to-use/when-not guidance and no routing to an alternative for non-brain or non-keyword retrieval (e.g., semantic search or general web research siblings). Usage is only implied.

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.

Resources