Skip to main content
Glama
anirbanbasu

FrankfurterMCP

greet

Generate personalized greetings to demonstrate middleware functionality in the FrankfurterMCP server for currency exchange operations.

Instructions

A simple greeting tool to demonstrate middleware functionality.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo

Implementation Reference

  • The handler function that executes the 'greet' tool logic, taking an optional name parameter and returning a greeting message.
    async def greet( self, ctx: Context, name: str | None = None, ): """A simple greeting tool to demonstrate middleware functionality.""" greeting_name = name if name else "World" greeting_message = f"Hello, {greeting_name} from Frankfurter MCP!" await ctx.info(f"Greeting generated: {greeting_message}") return self.get_response_content(response=greeting_message)
  • Registration of the 'greet' tool in the class's tools list, linking the 'fn' to the greet method.
    { "fn": "greet", "tags": ["greet", "hello-world"], "annotations": { "readOnlyHint": True, "openWorldHint": True, }, },

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/anirbanbasu/frankfurtermcp'

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