Skip to main content
Glama
matracey

my-mcp-server

by matracey

hello

Generate personalized greeting messages by providing a name. This tool creates hello messages for use in AI assistant integrations and development workflows.

Instructions

A simple greeting tool that returns a hello message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName to greet

Implementation Reference

  • The handler function that executes the 'hello' tool logic. Takes a 'name' parameter and returns a greeting message in MCP content format.
    async ({ name }) => {
      return {
        content: [{ type: 'text' as const, text: `Hello, ${name}!` }],
      }
    }
  • Zod schema definition for the 'hello' tool input. Defines a 'name' parameter as a string with a description.
    {
      name: z.string().describe('Name to greet'),
    },
  • src/server.ts:14-25 (registration)
    Tool registration with the MCP server using server.tool(). Registers 'hello' tool with its name, description, schema, and handler function.
    server.tool(
      'hello',
      'A simple greeting tool that returns a hello message.',
      {
        name: z.string().describe('Name to greet'),
      },
      async ({ name }) => {
        return {
          content: [{ type: 'text' as const, text: `Hello, ${name}!` }],
        }
      }
    )
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/matracey/mcp-server-template'

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