Skip to main content
Glama
nykznykz
by nykznykz

greet

Generate personalized greeting messages by providing a name. This tool creates friendly welcome messages for users in applications.

Instructions

Generate a friendly greeting message.

Args: name: The name of the person to greet

Returns: A personalized greeting message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Implementation Reference

  • The main handler for the 'greet' MCP tool, registered via @mcp.tool() decorator. It receives the name parameter and delegates to the _greet helper function.
    @mcp.tool() def greet(name: str) -> str: """ Generate a friendly greeting message. Args: name: The name of the person to greet Returns: A personalized greeting message """ return _greet(name)
  • Pydantic BaseModel defining the input schema for the 'greet' tool request.
    class GreetRequest(BaseModel): """Request model for greet tool.""" name: str
  • Internal helper function containing the core logic for generating the greeting message.
    def _greet(name: str) -> str: """ Generate a friendly greeting message. Args: name: The name of the person to greet Returns: A personalized greeting message """ return f"Hello, {name}! Welcome to the MCP server."
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/nykznykz/mcp_example'

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