Skip to main content
Glama

find_calls

Find all locations in the codebase where a specific function or method is called, with details on file, line, and resolved call targets.

Instructions

Find every place in the codebase that calls a specific function or method.

Use this when you need to answer:

  • "Who calls getUserById?" → name="getUserById"

  • "Where is redis.get used?" → name="get", className="redis"

  • "Is this function dead code?" → if 0 calls found, likely unused

Returns file, line, and whether the call target is resolved (linked to its definition in the graph).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFunction or method name to find calls for
classNameNoOptional: class name for method calls
limitNoMax results (default: 10, max: 500)
offsetNoSkip first N results (default: 0)
Behavior4/5

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

Without annotations, the description carries the burden. It discloses the return format (file, line, resolved status) and implies a read operation with no side effects. It does not mention permissions or limits, but the tool's nature is simple search.

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 a single focused paragraph with no redundancy. Examples are embedded naturally, and the structure is easy to parse. Every sentence adds value.

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?

For a simple search tool with 4 params and no output schema, the description covers the purpose, use cases, and output sufficiently. It does not need additional context.

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?

Schema coverage is 100%, so the baseline is 3. The description adds value by showing parameter usage in context (e.g., name='getUserById', className='redis') and giving default/max values, which help an agent understand parameter interplay.

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 the tool finds all places that call a specific function or method, with concrete examples (e.g., 'Who calls getUserById?'). It distinguishes itself from sibling tools like trace_calls by focusing on direct call sites.

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?

The description explicitly lists use cases with example questions, guiding when to use the tool. It does not directly mention when not to use it or compare to siblings, but the context is clear enough for an agent to decide.

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/Disentinel/grafema'

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