Skip to main content
Glama

MCP Server Boilerplate

by ricleedo

hello-world

Generate a personalized greeting message by providing your name. This tool creates custom hello messages for users interacting with the MCP server boilerplate.

Instructions

Say hello to the user

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the user

Input Schema (JSON Schema)

{ "properties": { "name": { "description": "The name of the user", "type": "string" } }, "required": [ "name" ], "type": "object" }

Implementation Reference

  • The asynchronous handler function that executes the 'hello-world' tool logic, greeting the user by name and returning a text content block.
    async ({ name }) => { const response = `Hello ${name}`; return { content: [ { type: "text", text: response, }, ], }; }
  • Zod schema defining the input parameter 'name' as a string for the 'hello-world' tool.
    { name: z.string().describe("The name of the user"), },
  • src/index.ts:13-31 (registration)
    Registration of the 'hello-world' tool using server.tool(), including name, description, input schema, and handler function.
    server.tool( "hello-world", "Say hello to the user", { name: z.string().describe("The name of the user"), }, async ({ name }) => { const response = `Hello ${name}`; return { content: [ { type: "text", text: response, }, ], }; } );

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/ricleedo/media-boilerplate-mcp'

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