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

project-context-map-mcp

query_topology

Matches a natural-language query to indexed file paths and returns import/dependency topology context, helping AI agents locate relevant code and understand project structure.

Instructions

Takes a natural language query and returns matched file paths from the query index, along with import/dependency topology context.

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": {
      "query": "<query>"
    },
    "name": "query_topology"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of file paths to return.
queryYesNatural-language query.
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.2/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 reveals only the return composition (matched paths plus dependency topology) and the existence of a 'query index'; it says nothing about whether the search is read-only, what happens if the index is stale or missing, whether results are ranked, or how limit interacts with ranking.

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 sentence, front-loaded with the input and then the output, with no filler. It is tight, though it could have used one more clause for usage routing without becoming verbose.

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 three-parameter read tool with no output schema, stating the return composition is the essential piece and it is present. However, the index dependency (likely tied to refresh_project_map) and freshness/staleness behavior are missing, leaving meaningful gaps for correct invocation.

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 query, limit, and projectRoot are all documented in the schema itself, which sets the baseline at 3. The description adds no extra semantics such as how matching works or whether limit truncates before or after ranking.

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 and resource: it queries the 'query index' with a natural-language query and returns matched file paths plus import/dependency topology context. That is clear enough to distinguish it from a plain file reader, but it never contrasts itself with close siblings like find_relevant_files or get_module_context.

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 only implied by 'takes a natural language query' – an agent can infer this is the search-by-description entry point. There is no explicit when-to-use versus find_relevant_files, no prerequisite such as needing the project map built, and no exclusions.

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