Skip to main content
Glama

mc_find_hierarchy

Find subclasses or implementors of a class or interface to analyze inheritance hierarchies in Minecraft mod development.

Instructions

Find classes that extend (subclasses) or implement (implementors) a given class or interface. Useful for understanding class inheritance relationships.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional: max results to return (default 200, 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 or interface name (e.g., "net.minecraft.world.entity.Entity", "net.minecraft.world.item.Item")
directionYessubclasses = classes that extend this class, implementors = classes that implement this interface
Behavior4/5

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

With no annotations, the description provides transparency about result limits (default 200, max 5000) and the limit parameter. It does not mention side effects, but as a query tool, this is adequate. No contradiction with annotations (none provided).

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 with no wasted words. The purpose is front-loaded, and important constraints are in the second sentence. Every sentence serves a purpose.

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 that there is no output schema, the description does not specify the return format (e.g., list of class names). However, the tool's simplicity and the fact that it's a search tool make this acceptable. It covers purpose, parameters, and limits well.

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%, but the description adds context beyond the schema: it explains the default and max for limit, and gives examples for className. The direction parameter is clarified with examples. This adds meaningful value to the schema descriptions.

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 verb 'find' and the resource 'classes that extend or implement a given class/interface'. It distinguishes between 'subclasses' and 'implementors', which differentiates it from sibling tools like mc_find_refs and mc_list_classes.

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 says 'Useful for understanding class inheritance relationships', which implies when to use the tool, but does not explicitly state when not to use it or provide alternatives. Sibling tools are not mentioned, so guidance is only implied.

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