Skip to main content
Glama

get_example

Retrieve working code examples for Minecraft modding tasks with explanations and metadata. Use this tool to get concrete implementations for features like registering items, creating block entities, or handling networking.

Instructions

Get code examples for Minecraft modding topics. Returns complete, working code snippets with full context including explanations, source documentation, and metadata. Use this when you need concrete code examples for implementing features.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYesTopic or pattern to get examples for (e.g., 'register item', 'block entity', 'mixin', 'networking', 'custom armor'). Can be free-form text.
languageNoProgramming language (e.g., 'java', 'json', 'groovy')java
loaderNoMod loader to filter by
minecraft_versionNoTarget Minecraft version (e.g., '1.21.4', '1.21.10'). Latest: use 'latest'
categoryNoDocumentation category to filter by
limitNoMaximum number of examples to return (1-10)
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the output format ('complete, working code snippets with full context including explanations, source documentation, and metadata'), which is helpful. However, it lacks details on error handling, rate limits, or authentication needs, leaving gaps for a tool with 6 parameters.

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 concise and well-structured with two sentences: the first defines the tool's purpose and output, the second provides usage guidelines. Every sentence adds value without redundancy, making it easy to scan and understand.

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 the tool's moderate complexity (6 parameters, no output schema, no annotations), the description is reasonably complete. It covers purpose, output format, and usage context. However, it lacks details on behavioral aspects like error handling or performance, which would be beneficial for a tool returning code examples.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all 6 parameters. The description adds no parameter-specific information beyond what's in the schema, such as examples for 'topic' or details on 'limit' behavior. Baseline 3 is appropriate when the schema does all the work.

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's purpose with specific verbs ('Get code examples') and resources ('Minecraft modding topics'), distinguishing it from siblings like 'explain_fabric_concept' (conceptual explanations) and 'search_fabric_docs' (documentation search). It explicitly mentions the output format ('complete, working code snippets with full context').

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance with 'Use this when you need concrete code examples for implementing features,' clearly indicating when to choose this tool over alternatives. It differentiates from siblings by focusing on practical code rather than conceptual explanations or general documentation.

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/OGMatrix/mcmodding-mcp'

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