Skip to main content
Glama
okeefeco

PyEye Server

by okeefeco

get_call_hierarchy

Trace function callers and callees through the Python codebase to visualize call graph hierarchy.

Instructions

Python: Trace function callers and callees through the codebase.

Deprecated: Replaced by inspect(handle).edge_counts.callers for the count and future expand(handle, edge="callers") for the list in the redesigned API. See docs/superpowers/specs/2026-05-02-progressive-disclosure-api-design.md for the migration plan. This method will be removed once the legacy MCP tools are deprecated (Phase B of the migration).

For general use, prefer lookup() which accepts any identifier form. This tool provides full call graph traversal beyond the default limit.

Args: function_name: Name of the function file: Optional file to search in (searches whole project if not specified) project_path: Root path of the project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
function_nameYes
fileNo
project_pathNo.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description must disclose behavioral traits. It reveals the tool is legacy and will be removed, but it does not mention permissions, destructive potential, rate limits, or return format. While the tool appears read-only, this is not explicitly stated, leaving some transparency gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is somewhat lengthy due to the deprecation notice and file reference, which takes space away from the core purpose. It is structured with a brief intro followed by an Args list, but the migration details could be condensed or moved to a notes section.

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?

Given the complexity of call graph traversal and the lack of schema descriptions, the description explains what the tool does and its parameters, but it omits details about the output format, error handling, or any limitations beyond 'beyond default limit'. The presence of an output schema mitigates this slightly, but more context would help.

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 description coverage, the 'Args' section explains each parameter's role: function_name as the function to trace, file as an optional search scope, and project_path as the root path. This adds meaningful context beyond the raw schema, though the description could clarify that function_name is required.

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 clearly states that the tool traces function callers and callees through the codebase, and it distinguishes itself from siblings like `inspect` and `expand` by offering full call graph traversal beyond the default limit. However, the immediate deprecation notice and reference to replacements muddles the primary purpose slightly.

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

Usage Guidelines5/5

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

The description explicitly states that the tool is deprecated, replaced by `inspect(handle).edge_counts.callers` and `expand(handle, edge="callers")`, and advises preferring `lookup()` for general use. This provides clear when-to-use and when-not-to-use guidance, along with named alternatives.

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/okeefeco/pyeye-mcp'

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