hello
Generate personalized greeting messages by providing a name parameter. This MCP-BOS tool returns customized welcome text for AI applications.
Instructions
返回问候消息
Args: name: 要问候的名称
Returns: str: 问候消息
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | World |
Implementation Reference
- modules/hello_world/hello.py:42-55 (handler)The handler function for the 'hello' tool. Decorated with @server.tool(), it takes a name parameter (default 'World') and returns a formatted greeting message from the module config.
@server.tool() def hello(name: str = "World") -> str: """ 返回问候消息 Args: name: 要问候的名称 Returns: str: 问候消息 """ message = self.config.get('message', 'Hello, {}!') return message.format(name)