Skip to main content
Glama
ilil1

Simple MCP Server

by ilil1

hello_world

Generate greeting messages by specifying a name and optional delay. Returns personalized responses for testing or demonstration purposes.

Instructions

A simple hello world tool that returns a greeting.

Args: name: Name to greet delay: Optional delay in seconds Returns: A greeting message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoWorld
delayNo

Implementation Reference

  • run_server.py:61-61 (registration)
    Registration of the 'hello_world' tool using the @mcp.tool() decorator on the FastMCP instance.
    @mcp.tool()
  • The implementation of the 'hello_world' tool handler. It logs the call, sleeps if delay specified, and returns a greeting message.
    async def hello_world(name: str = "World", delay: int = 0) -> dict: """A simple hello world tool that returns a greeting. Args: name: Name to greet delay: Optional delay in seconds Returns: A greeting message """ logger.info(f"hello_world called with name={name}, delay={delay}") if delay > 0: await asyncio.sleep(delay) return {"message": f"Hello, {name}!"}

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

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