Skip to main content
Glama

save_token_search

Query persistent SQLite indexes of large outputs and sources across current and previous sessions with BM25 and trigram matching, filters, and output caps to retrieve relevant chunks.

Instructions

Query large outputs and indexed sources stored in persistent SQLite (Porter BM25 + Trigram) across current and previous sessions.

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": {
      "queries": "<queries>"
    },
    "name": "save_token_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax chunks per query (1..20).
sourceNoOptional source label filter (e.g. 'exec:1', 'handoff:...').
queriesYesSearch queries.
maxOutputCharsNoOutput character cap (500..32000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/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 burden. It usefully discloses persistence across current and previous sessions and the search algorithms (BM25 + Trigram), but it omits read-only safety, permissions, rate limits, and result behavior.

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?

It is a single front-loaded sentence with no wasted words. The technical parenthetical is dense but informative.

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 four-parameter search tool with no output schema and no annotations, the description is adequate but missing usage guidance and any sense of return behavior or safety profile.

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 description coverage is 100%, so the schema already documents all four parameters. The description adds no additional meaning about how queries, limit, source, or maxOutputChars interact.

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 uses the specific verb 'Query' and identifies the resource: 'large outputs and indexed sources stored in persistent SQLite' with technical detail ('Porter BM25 + Trigram') and scope ('across current and previous sessions'). It does not explicitly differentiate from siblings like save_token_stats or save_token_exec, but the purpose is still clear.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no exclusions, and no mention of alternatives. The purpose implies it is for querying stored outputs, but the agent must infer that from the verb and resource.

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