Skip to main content
Glama

save_search_results

Search a codebase and save matching results to a JSON file for later reference.

Instructions

Search and save results to JSON.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_search_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
top_kNo
subdirNo
filenameNo
project_rootNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it says almost nothing. It implies a file write ("save results to JSON") without stating where files are written, whether existing files are overwritten, whether project_root/subdir are honored, or any permission/side-effect profile. For a mutating tool this is a severe gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single six-word sentence is front-loaded and free of padding, which is structurally good. However, the brevity comes from under-specification rather than economy, so it cannot score higher.

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?

An output schema exists, so return values need not be explained, but the tool still has five undocumented parameters, no annotations, and a write side effect. For that complexity, one sentence is far short of what an agent needs to invoke 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 description coverage is 0% across five parameters, so the description must compensate and does not. "Search" loosely maps to query and "to JSON" loosely maps to filename/subdir, but top_k, project_root, and the interaction between subdir and filename are entirely undefined in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Search and save results to JSON" names a verb pair and an output format, so the general action is inferable. But it never says what corpus is searched (codebase, saved context, session history) or where the JSON lands, and it does not distinguish this from siblings like search_codebase_tool or auto_search, which likely also search.

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 when-to-use guidance at all: no condition telling an agent to pick this over auto_search/search_context for searching, or over save_chat_context/save_model_handoff for persisting. The agent must guess from the name alone.

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