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

project-context-map-mcp

refresh_project_map

Regenerate the repository's .project-map.json and .project-map.md files to update structured project memory and topology for AI coding agents.

Instructions

Regenerate .project-map.json and .project-map.md for the current repository.

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": "refresh_project_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

C2.9/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 burden, and 'Regenerate' implies overwriting existing .project-map files without saying so explicitly, nor whether the operation is incremental, how expensive it is on large repos, or what the result reports. For a file-mutating tool with zero annotation coverage, the behavioral picture is materially incomplete.

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?

One front-loaded sentence that identifies the action and the two output files with no filler. It is efficient, though its terseness leaves the behavioral and usage gaps noted elsewhere.

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?

The tool is mechanically simple (one optional param), but it writes two files in the repository and has neither annotations nor an output schema, so the description should say that existing maps are overwritten and what the caller gets back. Neither is covered.

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 coverage is 100% and the single optional projectRoot parameter is fully documented in the schema, including its PROJECT_ROOT/cwd default. The description adds only that the target is the 'current repository', which is consistent with the schema default but adds no further meaning.

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 ('Regenerate') and names the exact artifacts produced (.project-map.json and .project-map.md), which is far more concrete than a generic 'refresh'. It does not differentiate itself from the sibling read-oriented tools (get_project_summary, read_project_context) that presumably consume the map it writes, so it stops short of a 5.

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 — nothing says to call this after structural changes, before querying the project map, or how it relates to the sibling context tools. The reader must infer that the map must be regenerated before the read tools return fresh data.

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