Skip to main content
Glama

Find references to a symbol (textual)

find_references

Find all references to a symbol in the codebase, returning file, line, column, and enclosing function/class. Counts hits even if repeated on a line; supports path prefix and pagination.

Instructions

Whole-word textual search for a symbol, returned as path:line:col with the enclosing function/class. Counts every occurrence, including repeats on one line. Not scope-aware, so may include unrelated same-named identifiers. Supports pathPrefix, limit and offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
limitNo
offsetNo
pathPrefixNo
Behavior5/5

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

With no annotations, the description carries full burden and does so thoroughly: it discloses whole-word matching, output format, handling of repeated occurrences, scope limitations, and pagination support. This gives the agent a clear picture of expected behavior.

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 three sentences long, front-loaded with the core purpose, and every sentence adds value. It avoids redundancy and is appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of output schema and annotations, the description covers the essential aspects: purpose, output format, limitations, and parameters. It is complete enough for an agent to invoke the tool correctly and interpret results without additional information.

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 0%, so the description must compensate. It mentions the symbol being searched and lists pathPrefix, limit, and offset, but does not elaborate on their exact semantics. Limit/offset are standard, but pathPrefix is named without detail, leaving some ambiguity.

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 a specific action: 'Whole-word textual search for a symbol' with a specific output format (path:line:col with enclosing function/class). It distinguishes itself from siblings by emphasizing the textual, not scope-aware nature, which sets it apart from find_definition or 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 Guidelines3/5

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

The description provides an implied usage context: it highlights that the search is not scope-aware and may include unrelated identifiers, suggesting it is not for precise reference resolution. However, it does not explicitly name alternatives or state when to use this tool over others.

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/Siddhukaushik/slimdex-mcp'

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