Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

call_graph

Read-onlyIdempotent

Analyze a source file to map function call relationships, showing callers, callees, or both, with optional filtering to a specific function.

Instructions

Extract function call relationships. Shows which functions call which others. Uses tree-sitter AST when available, falls back to regex.

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": {
      "file": "<file>"
    },
    "name": "call_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFile to analyze
directionNoDirection: who calls it (callers), what it calls (callees), or both (default: both)
function_nameNoFilter to calls from/to this function

Output Schema

NameRequiredDescriptionDefault
fileYes
functionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context by disclosing the dual engine (tree-sitter AST with regex fallback), which tells an agent results may be heuristic and less reliable in some cases. It stops short of saying which languages trigger the fallback.

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, front-loaded with the core purpose and with zero filler. Every sentence conveys distinct information: purpose, clarification, and implementation caveat.

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?

With an output schema and full annotations, the description only needs to cover scope, and it partially does. It omits supported languages and confirms only implicitly that analysis is scoped to a single file, which matters for a call-graph tool whose accuracy depends on parser support.

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 all three parameters, including the direction enum, are already documented in the schema. The description adds no extra semantics such as default behavior of function_name or interaction between direction and function_name; baseline 3 applies.

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 ('Extract function call relationships') and clarifies with 'Shows which functions call which others'. It does not, however, differentiate itself from plausible siblings like dependency_graph or find_references, which an agent could easily confuse with it.

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 or when-not-to-use guidance and no mention of alternatives. The agent must infer from the name and from sibling names alone whether this or dependency_graph/find_references is the right choice.

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