Skip to main content
Glama

say_hi

Send a greeting to Duyet with an optional personal message and access contact details or connection links directly through the MCP server.

Instructions

Send a friendly greeting to Duyet with an optional personal message. Get contact information and connection links

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNoOptional personal message to include with the greeting

Implementation Reference

  • The handler function for the 'say_hi' tool that constructs a greeting message with a random response and Duyet's contact information.
    async ({ message }) => { const greeting = message ? `Hi Duyet! ${message}` : "Hi Duyet!"; const responses = [ "Thanks for saying hi! Hope you're having a great day!", "Hello there! Great to hear from you!", "Hi! Always nice to get a friendly greeting!", "Hey! Thanks for reaching out. Hope all is well!", "Hello! Appreciate you taking the time to say hi!", ]; const randomResponse = responses[Math.floor(Math.random() * responses.length)]; return { content: [ { type: "text", text: `${greeting} ${randomResponse} Connect with Duyet: Email: me@duyet.net GitHub: https://github.com/duyet LinkedIn: https://linkedin.com/in/duyet Blog: https://blog.duyet.net Feel free to reach out anytime!`, }, ], }; },
  • Input schema definition for the 'say_hi' tool, specifying an optional 'message' string parameter.
    inputSchema: { message: messageSchema.describe("Optional personal message to include with the greeting"), },
  • The registration function that adds the 'say_hi' tool to the MCP server, defining its metadata, schema, and handler.
    export function registerSayHiTool(server: McpServer) { server.registerTool( "say_hi", { title: "Say Hi", description: "Send a friendly greeting to Duyet with an optional personal message. Get contact information and connection links", inputSchema: { message: messageSchema.describe("Optional personal message to include with the greeting"), }, }, async ({ message }) => { const greeting = message ? `Hi Duyet! ${message}` : "Hi Duyet!"; const responses = [ "Thanks for saying hi! Hope you're having a great day!", "Hello there! Great to hear from you!", "Hi! Always nice to get a friendly greeting!", "Hey! Thanks for reaching out. Hope all is well!", "Hello! Appreciate you taking the time to say hi!", ]; const randomResponse = responses[Math.floor(Math.random() * responses.length)]; return { content: [ { type: "text", text: `${greeting} ${randomResponse} Connect with Duyet: Email: me@duyet.net GitHub: https://github.com/duyet LinkedIn: https://linkedin.com/in/duyet Blog: https://blog.duyet.net Feel free to reach out anytime!`, }, ], }; }, ); }
  • Invokes the say_hi tool registration as part of the overall tools registration in the index file.
    registerSayHiTool(server); logger.tool("say_hi", "registered");

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

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