Skip to main content
Glama

mc_find_refs

Find callers or callees of a method in Minecraft mod development to understand code dependencies. Query by class and method name with optional result limit.

Instructions

Find callers (who calls this method) or callees (what this method calls) using the callgraph database. Useful for understanding code dependencies.

Results are capped (default 100, max 5000). Pass limit to widen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional: max results to return (default 100, ceiling 5000). Non-positive or non-finite values fall back to the default.
versionNoOptional: Minecraft version to use (e.g., "1.21.1"). If not provided, uses the active version set by mc_version.
classNameYesFully qualified class name (e.g., "net.minecraft.client.MinecraftClient")
directionYescallers = who calls this method, callees = what this method calls
methodNameYesMethod name to find references for
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses result capping (default 100, max 5000) and the effect of the limit parameter, but does not mention whether the operation is read-only, or any required permissions or side effects.

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 two sentences, front-loaded with the core purpose, and contains no extraneous information. Every sentence contributes meaning.

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 5 parameters and no output schema, the description covers core purpose and capping behavior. It could mention return format or error cases, but overall is adequate for a relatively simple tool.

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 baseline is 3. The description adds value by clarifying the default and maximum for the limit parameter, and implies the direction parameter's enum values. However, other parameters are adequately described in the schema.

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 the tool finds callers or callees using the callgraph database, with a specific verb and resource. It distinguishes between two reference directions, making purpose unambiguous.

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?

The description implies usage for understanding code dependencies but does not explicitly state when to use this tool over sibling tools like mc_find_hierarchy or mc_get_method. No direct comparison or exclusion criteria.

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/use-ai-for-mc/mcdev-mcp'

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