hello
Generate personalized greetings by specifying a name. Use this tool to send customizable messages within the HelloWorld MCP Server environment.
Instructions
Say hello to someone
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The name of the person to greet | World |
Implementation Reference
- src/index.ts:69-79 (handler)Handler implementation for the 'hello' tool. It takes an optional 'name' argument (defaults to 'World') and returns a text content block with a greeting message.case 'hello': { const targetName = (args as { name?: string }).name || 'World'; return { content: [ { type: 'text', text: `Hello, ${targetName}! 👋 Welcome to the HelloWorld MCP server!`, }, ], }; }
- src/index.ts:29-41 (registration)Registration of the 'hello' tool in the ListTools response, including name, description, and input schema definition.name: 'hello', description: 'Say hello to someone', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'The name of the person to greet', default: 'World', }, }, }, },
- src/index.ts:32-41 (schema)Input schema definition for the 'hello' tool, specifying an optional 'name' string parameter.type: 'object', properties: { name: { type: 'string', description: 'The name of the person to greet', default: 'World', }, }, }, },