Skip to main content
Glama

mc_list_classes

List all classes under a specified package path. Returns class names and source locations to explore package hierarchies.

Instructions

List all classes under a specific package path. Returns class names and their source locations. Use this to discover classes in a package hierarchy.

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.
packagePathYesPackage path to list classes from (e.g., "net.minecraft.client", "net.minecraft.world.entity"). Matches exact package and all subpackages.
Behavior4/5

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

Describes result cap (default 200, max 5000), the effect of limit parameter, and that it matches exact packages and subpackages. No annotations provided, so description carries full burden; it does a good job disclosing relevant behaviors without contradictions.

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?

Three sentences: first defines purpose, second adds return details, third explains limit behavior. No fluff, every sentence adds value. Front-loaded with the core action.

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 no output schema, it explains return format (class names and source locations) adequately. Could mention potential errors or more detail on the result structure, but for a list tool this is sufficient. The cap and version context help completeness.

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% with descriptions; description adds context like default/max for limit, version fallback, and subpackage matching. These details go beyond the schema fields, providing meaningful additional guidance.

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?

Clearly states 'List all classes under a specific package path' and differentiates from siblings like mc_list_packages (packages) and mc_get_class (single class). The description specifies the verb (list), resource (classes), and scope (under a package).

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?

Explicitly says 'Use this to discover classes in a package hierarchy,' giving clear context. However, it does not explicitly mention when not to use or alternatives, though the sibling set implies them. Could be improved with a direct comparison to mc_get_class or mc_list_packages.

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