hello_world
Generate a friendly greeting message with customizable names. This example tool demonstrates how to create MCP tools for the iMessage server that enables AI assistants to manage messages on macOS.
Instructions
Return a friendly greeting.
This is an example tool that demonstrates the basic pattern for creating MCP tools with FastMCP. The docstring here becomes the tool's description in the MCP protocol.
Args: name: The name to greet. Defaults to "World".
Returns: A greeting message.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hello_world"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | World |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |