greet
Generate a personalized greeting message by providing a name. Use this tool to create custom welcome notes or acknowledgments quickly.
Instructions
Greet someone with a personalized message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the person to greet |
Implementation Reference
- server1.js:77-85 (handler)The switch case handler for the 'greet' tool, which constructs and returns a personalized greeting message based on the input 'name' parameter.case "greet": return { content: [ { type: "text", text: `Hello, ${args.name}! Nice to meet you! 👋`, }, ], };
- server1.js:26-39 (registration)Tool registration in the ListToolsRequestHandler, defining the tool name, description, and input schema (including the 'name' parameter).{ name: "greet", description: "Greet someone with a personalized message", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the person to greet", }, }, required: ["name"], }, },