Skip to main content
Glama

search_by_file

Search stored memories by file path using case-insensitive substring matching to retrieve relevant context, decisions, and knowledge from the shared semantic memory layer.

Instructions

Find all memories related to a specific file path.

Args: file_path: File path to search for (substring match, case-insensitive) limit: Maximum number of results (default 20)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It does disclose useful search semantics: substring match, case-insensitive matching, and a default result limit. However, it leaves 'related to a file path' somewhat ambiguous and does not describe sorting, pagination, or no-match behavior.

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?

The description is compact, front-loaded with the purpose, and then gives only relevant parameter details. No filler or redundant prose appears.

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

Completeness4/5

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

For a simple two-parameter search tool with an output schema, the core behavior and parameters are sufficiently covered. The main missing piece is guidance on selecting this tool among sibling search tools, but that is largely a usage-guidance concern.

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

Parameters5/5

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

Schema description coverage is 0%, but the description thoroughly documents both parameters. It explains that file_path is a case-insensitive substring search and that limit caps the number of results, adding meaning well beyond the raw schema types and default.

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

Purpose5/5

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

The description uses a specific verb and resource: it finds all memories matching a file path. This clearly distinguishes it from sibling search tools like search_memories and find_similar, whose names suggest broader or similarity-based search.

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 intended use is implied: call this when you need memories related to a file path. However, it does not explicitly say when to prefer this over search_memories or find_similar, and it gives no exclusions or prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/infinitylabs-io/SyncContext'

If you have feedback or need assistance with the MCP directory API, please join our Discord server