Skip to content
Documentation

Reference

ctx_graph

Input contract and parameters for ctx_graph.

Status by featureReviewed September 2026

MCP tool · Search & code intelligence

Call this tool through your MCP client. Its availability depends on your active configuration and profile.

This registry contract is separate from the SDK. For terminal commands, use the CLI reference.

Parameters

Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.

actionstringRequired

build|related|symbol|impact|status|enrich|context|diagram|neighbors|path|explain|diff

depthinteger
formatstring

text|json

kindstring

diagram: deps|calls

pathstring

Path; file::symbol for symbol action

project_rootstring
sincestring

Git ref (default HEAD~1)

tostring

Target file (action=path)

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "action": {
      "description": "build|related|symbol|impact|status|enrich|context|diagram|neighbors|path|explain|diff",
      "type": "string"
    },
    "depth": {
      "type": "integer"
    },
    "format": {
      "description": "text|json",
      "type": "string"
    },
    "kind": {
      "description": "diagram: deps|calls",
      "type": "string"
    },
    "path": {
      "description": "Path; file::symbol for symbol action",
      "type": "string"
    },
    "project_root": {
      "type": "string"
    },
    "since": {
      "description": "Git ref (default HEAD~1)",
      "type": "string"
    },
    "to": {
      "description": "Target file (action=path)",
      "type": "string"
    }
  },
  "required": [
    "action"
  ],
  "type": "object"
}

Runtime description

The following is the tool's own agent-facing description, reproduced from the reviewed registry. It can contain implementation terminology; it does not expand the public stability commitment.

Read the agent-facing description
File-level dependency graph queries.
action=symbol path="file.rs::fnName" returns the DEFINITION (not usages — use ctx_search for references). neighbors=imports±direction, impact=reverse-dep blast radius, path from→to=dependency chain, diff since=HEAD~1=git change impact, diagram kind=deps|calls (Mermaid).
For understanding code use ctx_compose FIRST.
Sources & versions3 references Reviewed
  • mcp_manifest.rsrust/src/core/mcp_manifest.rsReviewed checkout
  • registry.rsrust/src/server/registry.rsReviewed checkout
  • dynamic_tools.rsrust/src/server/dynamic_tools.rsReviewed checkout
Core checkout
50fbff09c9
Installed runtime
3.10.2
SDK release
1.1.0

Separate baselines for source, CLI/configuration and SDK contracts. Review does not certify every platform or integration.

Versions & compatibility