Skip to main content
Glama

find_references

Locates all references to a symbol in a Dart project based on its position. Helps developers navigate code by finding usages of functions, variables, or classes.

Instructions

Find all references to a symbol at a specific position.

Args: project_path: Absolute path to the Dart project root. file_path: Absolute path to the Dart file. line: 0-indexed line number. column: 0-indexed column number.

Returns: Formatted list of reference locations or error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYes
columnYes
file_pathYes
project_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries the burden. It mentions return format but does not disclose that it is read-only or potential side effects. Basic transparency is present.

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?

Concise, well-structured with Args and Returns sections, no extraneous information, fits the tool's complexity.

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 no annotations, description covers purpose, parameters, and return but lacks completeness about prerequisites (e.g., project analysis), behavior on not found, or limitations. Output schema exists but minimal.

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

Parameters5/5

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

Description explains each parameter in detail (project_path, file_path, line as 0-indexed, column), adding significant value beyond the schema which only has titles and 0% description coverage.

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 'Find all references to a symbol at a specific position', which is a specific verb and resource, and differentiates from siblings like go_to_definition and search_symbols.

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?

No guidance on when to use this tool versus alternatives like go_to_definition or search_symbols. The description merely lists parameters without usage context.

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/BenjaminKobjolke/dart-lsp-mcp'

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