Skip to main content
Glama

Mixin pattern lookup

mc_mixin

Provides code examples for Mixin patterns: @Inject, @ModifyArg, @ModifyVariable, @Redirect, @WrapOperation, @Accessor, @Invoker, and Fabric/NeoForge config skeletons.

Instructions

Returns code examples for Mixin (Sponge/Fabric Mixin) patterns: @Inject HEAD/TAIL, @ModifyArg, @ModifyVariable, @Redirect, @WrapOperation, @Accessor, @Invoker, plus mixin config JSON skeletons for Fabric and NeoForge. Use when the user is wiring up a mixin and you need to remember the exact annotation shape.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoPattern to look up (e.g. 'inject head', 'modify variable', 'accessor', 'config fabric'). Omit to list all.
Behavior4/5

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

No annotations are provided, so the description carries full responsibility. It accurately describes that the tool returns code examples and lists all patterns if query is omitted. For a read-only lookup, this is transparent and sufficient.

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 long, front-loading the key output and then providing usage context. Every sentence is informative and necessary.

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?

Given the tool's simplicity (one optional parameter, no output schema), the description covers all necessary aspects: what it returns, how to use it, and when to use it. No gaps are evident.

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?

The schema description already covers the parameter with examples and default behavior. The main description adds value by specifying that the output includes code examples and config skeletons, providing concrete expectations beyond 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?

The description clearly states it returns code examples for specific Mixin patterns, listing common annotations and config skeletons. It distinguishes from sibling tools like mc_docs or mc_event by focusing exclusively on mixin pattern syntax.

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 says 'Use when the user is wiring up a mixin and you need to remember the exact annotation shape.' This provides clear context for when to invoke the tool. It does not mention when not to use or list alternatives, but the guidance is sufficient for typical use cases.

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/ratph6/mc-mod-mcp'

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