Skip to main content
Glama

find_references

Locate all usages of a symbol in a Java project. Provide file path, line, and column (zero-based) to receive a list of reference locations with surrounding context.

Instructions

Find all references to a symbol across the project.

USAGE: Position on symbol, find all usages OUTPUT: List of reference locations with context

IMPORTANT: Uses ZERO-BASED coordinates.

Requires load_project to be called first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYesZero-based line number
maxResultsNoMax references to return (default 100)
filePathYesPath to source file
columnYesZero-based column number
Behavior3/5

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

Given no annotations, the description carries the full burden. It discloses zero-based coordinates and a prerequisite, but does not explicitly state whether the operation is read-only or if there are side effects. The tool is likely read-only, but this is not confirmed.

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?

The description is very concise, using short lines and headings (USAGE, OUTPUT, IMPORTANT). Every sentence serves a purpose, and the most critical information is front-loaded.

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?

The description covers the main purpose, usage, prerequisites, and coordinate system. However, without an output schema, more details on the output format (e.g., what 'context' includes) would improve completeness. Overall, it is fairly thorough for a find tool.

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 coverage is 100%, so the schema already describes each parameter adequately. The description reinforces zero-based coordinates, which are already in the schema, and mentions maxResults default, which is also in the schema. It does not add new semantic value beyond the schema.

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 'Find all references to a symbol across the project,' specifying the verb and resource. It differentiates from siblings like 'find_method_references' generically, but does not explicitly state that it covers all types of references, leaving slight ambiguity.

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

Usage Guidelines3/5

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

Provides usage guidance ('Position on symbol') and a prerequisite ('Requires load_project to be called first'). However, it does not discuss when to use this tool over alternatives such as 'find_method_references' or 'find_implementations', which are available as siblings.

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