Skip to main content
Glama

FastMCP Demo

by gogouravr

hello

Generate personalized greetings by providing a name. This tool creates custom hello messages for use in applications and demonstrations.

Instructions

A simple greeting tool that says hello

Input Schema

NameRequiredDescriptionDefault
nameYesThe name to greet

Input Schema (JSON Schema)

{ "properties": { "name": { "description": "The name to greet", "type": "string" } }, "required": [ "name" ], "type": "object" }

Implementation Reference

  • Handler for the 'hello' tool in the main fast-mcp-demo server. Responds with a greeting message.
    if (name === "hello") { const userName = (args?.name as string) || "World"; return { content: [ { type: "text", text: `Hello, ${userName}! Welcome to MCP!`, }, ], }; }
  • Schema and registration for the 'hello' tool returned in ListToolsRequestHandler.
    { name: "hello", description: "A simple greeting tool that says hello", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name to greet", }, }, required: ["name"], }, },
  • Handler for the 'hello' tool in the basic-mcp server implementation.
    if (name === "hello") { const userName = (args?.name as string) || "World"; return { content: [ { type: "text", text: `Hello, ${userName}! Welcome to MCP!`, }, ], }; }
  • Full registration, schema (using Zod), and inline handler for the 'hello' tool using FastMCP framework.
    server.addTool({ name: "hello", description: "A simple greeting tool that says hello", parameters: z.object({ name: z.string().describe("The name to greet"), }), execute: async (args) => { return `Hello, ${args.name}! Welcome to MCP!`; }, });

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/gogouravr/fast-mcp'

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