Skip to main content
Glama

where_used

Find all definitions and usages of a symbol to reveal the blast radius before modifying a function, struct, or variable.

Instructions

Code lane: answers who defines and who uses one symbol name - the question to ask before changing a function, struct or variable, since the reference list IS the blast radius. Use outline instead to see everything one file declares. Read-only. Resolution is by bare name only, so two unrelated things sharing a name come back together - open the files rather than treating the list as a conclusion. Replies with every definition and use site as file:line, the indexed commit, and whether the checkout has since moved on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe bare symbol name: a function, class, struct or variable.
limitNoMost sites to return per side. Defaults to 30.

Schema Changelog

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

  1. First observedv0.1.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. It discloses that resolution is by bare name only, that unrelated same-name symbols are grouped together, and that results include the indexed commit and whether checkout has moved on. It lacks explicit statements about permissions or rate limits, but given this is a read-only query tool, the behavioral disclosure is strong.

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 compact but information-dense. Every sentence earns its place: purpose, usage timing, alternative, read-only nature, important caveat, and expected reply format. It is front-loaded with the primary question and blast-radius framing, making it easy to scan.

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 tells the agent what it will get (every definition and use site as file:line, indexed commit, checkout state) and what caveats apply. It doesn't explicitly document the 'limit' parameter's effect on output, but the schema already describes that. Without an output schema, mentioning the reply shape is valuable. Minor gap: no statement about performance or large result handling beyond the limit default.

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 baseline is 3. The description adds useful semantic context about 'bare symbol name' and matching behavior, but does not add much beyond the schema's parameter descriptions. It clarifies the meaning of 'name' well enough, so a 3 is fair.

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 names a specific operation (finding definitions and uses of a symbol name) and clearly distinguishes this from the sibling 'outline', which is about file-level declarations. The verb 'answers who defines and who uses' and the explicit 'code lane' qualifier make the purpose unmistakable.

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 gives explicit guidance on when to use this tool: 'the question to ask before changing a function, struct or variable'. It also names the alternative, 'Use outline instead to see everything one file declares', and warns about the blast radius interpretation. It even advises opening files rather than treating the result list as a conclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/nworks3d/THOR-memory-bible-for-AI'

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