Skip to main content
Glama

find_usages

Read-onlyIdempotent

Locate every reference to a code symbol, including calls, subtypes, and word-based textual mentions, while excluding its definition. Use it to answer who uses X at one hop.

Instructions

Every use of a symbol: calls and subtypes (from the graph when on) plus textual references that contain the name as a word, with their lines; definition excluded. Answers 'who uses X' at one hop; impact walks the chain further and adds the tests.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "find_usages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results.
sourceNoSource name. Omit when only one source applies.
symbolYesIdentifier to find the uses of.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.12.0
    • removedInput schema / properties / source / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / source / default
      Removed value: -null
    • addedInput schema / properties / source / type
      Added value: +"string"
  2. Addedv1.9.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, and the description still adds real context: results merge graph-derived edges (when the graph is on) with word-boundary textual matches, lines are returned, and the definition itself is omitted. It stops short of describing result ordering, deduplication between the two sources, or how `limit` truncates, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the scope and followed by the sibling routing, with no filler. The parenthetical '(from the graph when on)' is slightly compressed to the point of ambiguity, which costs a point.

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?

For a three-parameter read tool with no output schema, the definition covers what is matched, what is returned (uses with lines), what is excluded, and the hop boundary. Only result ordering and the interaction between the graph and textual sources remain unstated.

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 documents all three parameters; the baseline is 3. The description adds only indirect meaning — word-boundary matching for `symbol` and a graph-vs-textual distinction that loosely maps to `source` — without clarifying 'when on' or how the two sources interact.

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?

States a specific verb and resource ('every use of a symbol: calls and subtypes ... plus textual references') and immediately scopes what is excluded ('definition excluded'). It also explicitly differentiates itself from the `impact` sibling, so an agent can choose between them without opening either schema.

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?

Gives an explicit selection rule: this tool answers 'who uses X' at one hop, while `impact` walks the chain further and adds the tests. That names the alternative and the condition that selects it, leaving nothing to inference.

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