Skip to main content
Glama

get_call_graph

Map out function dependencies in a codebase by generating a call graph showing callers and callees up to a specified depth, returned as a Mermaid diagram.

Instructions

Fonksiyon çağrı grafını döndürür.

Args: path: Proje kök dizini function_name: Hedef fonksiyon adı direction: "callers" (çağıranlar), "callees" (çağrılanlar) veya "both" depth: Maksimum derinlik

Returns: Çağrı grafı — Mermaid diyagramı ve detaylar

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
function_nameYes
directionNoboth
depthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided. The description is straightforward and transparent about returning a call graph with Mermaid diagram and details. However, it does not disclose any potential side effects, permissions needed, or limitations beyond parameters.

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?

Very concise; uses a clear Args/Returns structure. Every sentence is necessary and front-loaded with the purpose.

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 4 parameters and an output schema, the description covers the essential behavior. Could be improved by noting any dependencies (e.g., project must be scanned). Overall adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema coverage, the description adds meaning to parameters: explains direction options and the return format. Provides more context than the raw 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 clearly states the tool returns a function call graph, with a specific verb and resource. It is distinct from sibling tools like get_dependency_graph or get_class_hierarchy.

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?

The description lacks any guidance on when to use this tool versus alternatives. No mention of prerequisites, when-not-to-use, or comparison with similar tools.

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

Install Server

Other Tools

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/iamseyhmus7/mcp-codebase-oracle'

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