Skip to main content
Glama

ping

Verify connectivity to the Minestom MCP server by sending a test request and receiving an optional echo response.

Instructions

Use this when you want to verify that the Minestom MCP server is reachable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNoOptional text to echo back in the response.

Implementation Reference

  • The handler function for the "ping" tool.
    }).server(async (args) => {
    	const { message } = pingInputSchema.parse(args);
    
    	return pingOutputSchema.parse({
    		echoedMessage: message ?? "pong",
    		ok: true,
    		timestamp: new Date().toISOString(),
    	});
    });
  • Input and output schemas for the "ping" tool defined using zod.
    const pingInputSchema = z.object({
    	message: z
    		.string()
    		.optional()
    		.describe("Optional text to echo back in the response."),
    });
    
    const pingOutputSchema = z.object({
    	echoedMessage: z.string(),
    	ok: z.boolean(),
    	timestamp: z.string(),
    });
  • Registration of the "ping" tool definition.
    export const pingTool: TanStackServerTool = toolDefinition({
    	description:
    		"Use this when you want to verify that the Minestom MCP server is reachable.",
    	inputSchema: pingInputSchema,
    	name: "ping",
    	outputSchema: pingOutputSchema,

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