greet
Generate personalized greetings by name to welcome users in applications built with the MCP Boilerplate Server template.
Instructions
Greet a person by name
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "greet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mcp_server_boilerplate/server.py:7-10 (handler)The 'greet' tool handler function, decorated with @mcp.tool. It takes a string 'name' parameter and returns a personalized greeting message.
@mcp.tool def greet(name: str) -> str: """Greet a person by name""" return f"Hello, {name}!"