Skip to main content
Glama

get_call_hierarchy_outgoing

Analyze Java methods to identify all outgoing method calls and dependencies by providing file path and cursor position coordinates.

Instructions

Find all methods called by a method (outgoing calls).

USAGE: Position cursor on a method name OUTPUT: List of methods that this method calls

IMPORTANT: Uses ZERO-BASED coordinates.

Useful for understanding what a method depends on.

Requires load_project to be called first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to source file
lineYesZero-based line number
columnYesZero-based column number
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that it 'Uses ZERO-BASED coordinates' (important behavioral detail) and mentions the prerequisite 'load_project'. However, it doesn't describe error conditions, performance characteristics, or what happens with invalid inputs. The behavioral disclosure is adequate but not comprehensive.

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

Conciseness4/5

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

The description is well-structured with clear sections (purpose, usage, output, important note, context, prerequisite). Every sentence earns its place, though the 'IMPORTANT' section could be integrated more smoothly. It's appropriately sized for a tool with three parameters and clear functionality.

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 3 parameters with 100% schema coverage but no annotations and no output schema, the description does well: it explains purpose, usage, output format ('List of methods'), coordinate system, context, and prerequisite. The main gap is lack of output format details (structure of the returned list), but overall it's quite complete for this complexity level.

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 (filePath, line, column) with their types and descriptions. The description adds value by emphasizing 'ZERO-BASED coordinates' which clarifies the parameter semantics, but doesn't provide additional syntax or format details beyond what the schema provides. Baseline 3 is appropriate when schema does most of the work.

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's purpose: 'Find all methods called by a method (outgoing calls)' - a specific verb ('find') and resource ('methods called by a method'). It distinguishes from its sibling 'get_call_hierarchy_incoming' by specifying 'outgoing calls' and provides a clear differentiation from other analysis tools in the sibling list.

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 provides explicit usage guidance: 'Position cursor on a method name' tells exactly when to use it, 'Requires load_project to be called first' states a prerequisite, and 'Useful for understanding what a method depends on' gives context. It also implicitly distinguishes from incoming call analysis via its name and description focus.

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/pzalutski-pixel/javalens-mcp'

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