Skip to main content
Glama
yesheng-oss

Context-MCP

by yesheng-oss

codegraph_affected

Find all nodes affected by changing a given node—callers, importers, inheritors—via BFS. Use before refactoring to understand blast radius, returning affected nodes with file paths and relation types.

Instructions

BFS traversal: given a node name, find every node that would be affected if you change it — callers, importers, inheritors, etc. Use before refactoring to understand blast radius. Returns affected nodes with file paths, relation types, and traversal depth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeYesNode name, ID, or file path to start from
pathYesProject root
depthNoBFS depth (default 2, max 5)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses the traversal algorithm (BFS), the result contents (file paths, relation types, traversal depth), and the notion of affected nodes. It doesn't discuss performance or side effects, but the read-oriented traversal description is reasonably transparent.

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?

Three short sentences with no filler: the first defines the algorithm and scope, the second gives the use case, and the third describes the return shape. Every sentence contributes.

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?

Given the fully described schema, no output schema, and no annotations, the description covers purpose, timing, algorithm, and return contents. It doesn't address edge cases like empty results or cycle behavior, but those are not necessary for an agent to invoke it correctly.

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 the schema already documents all three parameters. The description adds only slight reinforcement by mentioning 'node name' and traversal depth, but it doesn't provide meaning beyond the schema.

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?

The description states a specific verb and resource: perform a BFS traversal to 'find every node that would be affected if you change it.' The blast-radius framing clearly distinguishes this from siblings like codegraph_query or codegraph_nodes, even though those alternatives are not explicitly named.

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

Usage Guidelines4/5

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

It gives an explicit use case: 'Use before refactoring to understand blast radius.' This tells an agent when to invoke the tool, though it does not mention when not to use it or which sibling would be preferred for other scenarios.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yesheng-oss/context-mcp-subgraph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server