Skip to main content
Glama
devashish234073

my-mcp-server

greet

Generate a personalized greeting message by providing a name. Use this tool to create custom welcome notes or acknowledgments quickly.

Instructions

Greet someone with a personalized message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the person to greet

Implementation Reference

  • The switch case handler for the 'greet' tool, which constructs and returns a personalized greeting message based on the input 'name' parameter.
    case "greet":
      return {
        content: [
          {
            type: "text",
            text: `Hello, ${args.name}! Nice to meet you! 👋`,
          },
        ],
      };
  • server1.js:26-39 (registration)
    Tool registration in the ListToolsRequestHandler, defining the tool name, description, and input schema (including the 'name' parameter).
    {
      name: "greet",
      description: "Greet someone with a personalized message",
      inputSchema: {
        type: "object",
        properties: {
          name: {
            type: "string",
            description: "The name of the person to greet",
          },
        },
        required: ["name"],
      },
    },
Install Server

Other Tools

Related 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/devashish234073/my-mcps'

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