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

project-context-map-mcp

read_files_sparse

Reads only a small set of indexed, repository-relative files while rejecting paths outside the project root or missing from project topology.

Instructions

Read only a small set of indexed files. Rejects paths that are outside the project root or missing from the project topology.

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": {
      "paths": "<paths>"
    },
    "name": "read_files_sparse"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesRepository-relative file paths.
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.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses that paths outside the project root or missing from the project topology are rejected, but says nothing about what is returned (file contents? metadata?), whether there is a cap on the number of paths, or what error shape a rejection takes.

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 short sentences, scope first and validation constraint second, with no filler or redundancy.

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 two-parameter read tool with full schema coverage and no output schema, the definition covers eligibility of paths but leaves gaps a caller would want: return contents, batch-size limits, and rejection error behavior.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; however, the description adds real constraint semantics beyond the schema's 'Repository-relative file paths' by stating that paths must lie inside the project root and exist in the project topology, which meaningfully narrows valid inputs.

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?

States a specific verb and resource ('Read ... indexed files') and narrows scope with 'only a small set.' It is distinguishable from broad siblings like read_project_context, but it never names an alternative, so differentiation depends on the reader inferring it.

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 phrase 'only a small set of indexed files' implies the tool suits fetching a few known paths rather than discovery or bulk reading, but there is no explicit when-to-use, when-not-to-use, or pointer to find_relevant_files for the discovery case.

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