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: 问候消息
Input Schema
TableJSON 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)