Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

find_references

Read-onlyIdempotent

Locate every file and line where a function, class, or variable is used across your codebase, with optional file filtering and context lines.

Instructions

Find all references to a symbol (function, class, variable) across the codebase. Shows every file and line where the symbol is used.

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_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesSymbol name to find references for
file_globNoFilter by file pattern, e.g. "*.py"
whole_wordNoMatch whole word only (default: true)
context_linesNoLines of context around each reference (default: 1)

Output Schema

NameRequiredDescriptionDefault
totalYes
symbolYes
referencesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds minimal behavior beyond that — 'shows every file and line' hints at the result shape, but it doesn't say whether the declaration itself is included, whether results are ordered or capped, or whether large codebases are truncated.

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 short sentences with the core action front-loaded and no filler. The second sentence mostly restates the output, which the output schema already defines, so it is not fully earning its place.

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?

All four parameters are documented in the schema and an output schema exists, so the description needn't explain return values. What remains thin is edge-case behavior — whether the definition site counts as a reference and whether results are paginated or limited.

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% with descriptions for all four parameters, so the schema carries the burden. The description only adds that the symbol can be a function, class, or variable, which is a marginal enrichment over the schema's 'Symbol name to find references for'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Find all references to a symbol') and clarifies the symbol kinds and codebase-wide scope. It is clearly distinct from siblings like find_dead_code or call_graph, though it never names an alternative to sharpen that contrast.

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?

Usage is only implied by the phrase 'across the codebase' and the symbol-type examples. There is no explicit when-to-use / when-not-to-use guidance and no pointer to a sibling such as call_graph for transitive call analysis.

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