Skip to main content
Glama

explain_minestom_pattern

Get documentation-backed explanations of Minestom design patterns for bootstrap, instances, events, commands, schedulers, or threading to implement features correctly.

Instructions

Use this when you want a docs-backed explanation of how Minestom typically models bootstrap, instances, events, commands, schedulers, or thread ownership.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNoOptional goal or problem statement to tailor the pattern explanation.
topicYesThe Minestom subsystem or design topic to explain.

Implementation Reference

  • The `explain_minestom_pattern` tool handler logic and definition.
    export const explainMinestomPatternTool: TanStackServerTool = toolDefinition({
    	description:
    		"Use this when you want a docs-backed explanation of how Minestom typically models bootstrap, instances, events, commands, schedulers, or thread ownership.",
    	inputSchema: explainMinestomPatternInputSchema,
    	name: "explain_minestom_pattern",
    	outputSchema: explainMinestomPatternOutputSchema,
    }).server(async (args) => {
    	const { goal, topic } = explainMinestomPatternInputSchema.parse(args);
    	const topicEntry = getTopicEntry(topic);
    	const keyApis = getApisForTopic(topic)
    		.slice(0, 5)
    		.map((api) => ({
    			javadocUrl: api.javadocUrl,
    			packageName: api.packageName,
    			symbol: api.symbol,
    		}));
    
    	const goalAdjustment = goal
    		? `For goal "${goal}", start with ${topicEntry.keyApiSymbols.slice(0, 2).join(" and ")} and keep the ${topic} ownership model explicit.`
    		: undefined;
    
    	return explainMinestomPatternOutputSchema.parse({
    		commonPitfalls: topicEntry.commonPitfalls,
    		explanation: topicEntry.explanation,
    		goalAdjustment,
    		keyApis,
    		lifecycleNotes: topicEntry.lifecycleNotes,
    		officialLinks: topicEntry.officialLinks,
    		summary: topicEntry.summary,
    		title: topicEntry.title,
    		topic,
    	});
    });
  • Input schema for the `explain_minestom_pattern` tool.
    const explainMinestomPatternInputSchema = z.object({
    	goal: z
    		.string()
    		.optional()
    		.describe(
    			"Optional goal or problem statement to tailor the pattern explanation.",
    		),
    	topic: minestomTopicSchema.describe(
    		"The Minestom subsystem or design topic to explain.",
    	),
    });
  • Output schema for the `explain_minestom_pattern` tool.
    const explainMinestomPatternOutputSchema = z.object({
    	commonPitfalls: z.array(z.string()),
    	explanation: z.string(),
    	goalAdjustment: z.string().optional(),
    	keyApis: z.array(
    		z.object({
    			javadocUrl: z.string().url(),
    			packageName: z.string(),
    			symbol: z.string(),
    		}),
    	),
    	lifecycleNotes: z.array(z.string()),
    	officialLinks: z.array(officialLinkSchema),
    	summary: z.string(),
    	title: z.string(),
    	topic: minestomTopicSchema,
    });

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/Azoraqua/minestom-mcp-server'

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