Skip to main content
Glama
devladinci
by devladinci

Get symbol references

get_references

Find where a symbol is used in a TypeScript codebase, including JSX component usages, call sites with line numbers, and importing files. Narrow results to one file using the optional file field.

Instructions

Where a symbol is used: JSX component usages, call sites (with line numbers) and which files import it by name. Use instead of grep-ing for usages. Heuristic — for a common name, narrow with file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoRestrict to one file (repo-relative).
nameYesSymbol name (function/class/method/component as written at usage sites).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It discloses the heuristic nature of the tool ('Heuristic'), what kinds of usages are found, and that line numbers are included. It does not discuss error behavior or potential omissions, but the key behavioral traits are stated.

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?

Three sentences, all informative and non-redundant. The main purpose is front-loaded, followed by a crisp alternative and a useful tip. No filler or repetition of parameter details from the schema.

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 no output schema and no annotations, the description does enough: it states what is returned semantically and how to use the tool. It could specify the exact return format, but for a simple two-parameter lookup the coverage is adequate.

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?

Input schema already describes both parameters fully (100% coverage), so baseline is 3. The description adds extra meaning by advising to use the file parameter for narrowing common names, which is practical guidance beyond the schema. This lifts it one point above baseline.

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?

Description clearly states what the tool does: finds where a symbol is used, enumerating JSX component usages, call sites with line numbers, and named imports. It explicitly contrasts with grep, and the concrete output list implicitly differentiates it from siblings like get_deps or find_symbol, so an agent will not mistake its purpose.

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

Usage Guidelines4/5

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

Gives an explicit alternative (grep) and says to use this tool instead, plus a practical tip to narrow with file for common names. However, it does not mention when to prefer or avoid sibling tools like find_symbol or get_deps, so the usage guidance is clear but not fully exclusionary.

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/devladinci/hebros-mcp'

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