Skip to main content
Glama

Memoreal — Deterministic AI Memory & Code Intelligence MCP

Find Indexed Files

find_file
Read-onlyIdempotent

Find indexed repository files matching a path pattern or keyword in a workspace namespace. Use when locating files by glob or substring before reading; use search_code instead for symbol keywords.

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": {
      "namespace": "<namespace>"
    },
    "name": "find_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoOptional keyword filter matching file paths.
patternNoGlob or substring path pattern to match (e.g. src/auth or *.test.js).
namespaceYesLogical workspace namespace to search.

Output Schema

NameRequiredDescriptionDefault
countYes
filesYes
namespaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and scope are covered structurally. The description adds the meaningful context that results come from an index rather than a live filesystem walk, but it says nothing about result limits, ranking, or what happens when the index is stale. Useful but modest value on top of the annotations.

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?

Two sentences, zero filler, with the purpose stated first and the sibling disambiguation second. Every clause carries information an agent needs.

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?

Output schema exists so return values need no explanation, and annotations cover safety. The description covers purpose, scope, and alternative selection adequately. The only gap is interaction between the optional query and pattern parameters, which is left ambiguous for a tool that accepts both.

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 all three parameters are already documented in the schema, including the glob/substring example. The description only restates the two matching modes and does not clarify how query and pattern combine or whether they are mutually exclusive. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Find indexed repository files') plus the two matching modes (path pattern or keyword) and the scope ('workspace namespace'). It also explicitly contrasts itself with the search_code sibling, so an agent can choose without opening either schema.

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

Usage Guidelines5/5

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

Gives a clear when-to-use condition ('locating files by glob or substring before reading') and names the alternative tool with the condition that selects it ('use search_code instead for symbol keywords'). This is explicit routing guidance, not an implied hint.

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.