Skip to main content
Glama
project-context-map-mcp

project-context-map-mcp

find_relevant_files

Ranks relevant files for a natural-language task, helping coding agents open only the small subset needed to make a change.

Instructions

Rank the most relevant files for a natural-language task so the coding agent can open only a small subset.

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": {
      "task": "<task>"
    },
    "name": "find_relevant_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesNatural-language change request, bug description, or feature request.
limitNoMaximum number of files to return.
projectRootNoOptional project root. Defaults to PROJECT_ROOT or current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.8

TDQS

B3.1/5.0
Behavior2/5

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

No annotations and no output schema, so the description carries the full disclosure burden, yet it says nothing about what is returned (file paths, scores, ordering), whether it scans the whole project, whether a project map must be fresh (refresh_project_map exists as a sibling), or how costly it is. Only the read-only nature is indirectly signalled by "rank ... so the agent can open".

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?

A single front-loaded sentence with no filler or redundancy; every clause contributes. It is slightly too terse to structure expectations for a tool with three parameters and no output schema, but nothing in the text is wasted.

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?

For a tool with no annotations and no output schema, the description should say at least what comes back and whether an index/freshness precondition exists. An agent cannot tell from this text what the ranking output looks like or whether results may be stale, which matters given the sibling refresh_project_map.

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%: task, limit, and projectRoot each carry their own documentation, including the default of 8 and the PROJECT_ROOT fallback. The description adds nothing beyond the schema, so the baseline 3 applies; 'small subset' loosely gestures at limit without adding format guidance.

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 gives a specific verb+resource ("Rank the most relevant files") and adds the purpose (so the agent can open a small subset). It is clear what the tool does, but it never contrasts itself with siblings such as read_project_context, query_topology, or explain_file_role, so an agent must infer which retrieval tool to pick.

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?

Usage is implied by the rationale phrase "so the coding agent can open only a small subset" — i.e. call this before bulk reads. There is no explicit when-to-use, no when-not, and no named alternative among the many sibling context tools, leaving routing decisions to inference.

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