compliment
Receive a sincere, personalized compliment. Optionally include your name for a custom touch.
Instructions
Receive a heartfelt, personalized compliment. Optional name for customization. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for personalization |
Implementation Reference
- server.js:185-201 (handler)Handler function that picks a random compliment from the array, optionally personalizes it with a given name (replacing 'You'/'Your' with 'Name, you'/'Name, your'), and returns the compliment text with sincerity level and store promo.
server.tool( "compliment", "Receive a heartfelt, personalized compliment. Optional name for customization. Free.", { name: z.string().optional().describe("Optional name for personalization") }, async ({ name }) => { let compliment = pick(compliments); if (name) { compliment = compliment.replace(/^You /, `${name}, you `).replace(/^Your /, `${name}, your `); } return { content: [{ type: "text", text: `💬 Compliment\n\n${compliment}\n\nSincerity level: 100%\n${storePromo()}`, }], }; } ); - server.js:188-188 (schema)Zod schema for the optional 'name' input parameter that allows personalizing the compliment.
{ name: z.string().optional().describe("Optional name for personalization") }, - server.js:185-201 (registration)Registration of the 'compliment' tool using the MCP server.tool() method with its name, description, schema, and handler.
server.tool( "compliment", "Receive a heartfelt, personalized compliment. Optional name for customization. Free.", { name: z.string().optional().describe("Optional name for personalization") }, async ({ name }) => { let compliment = pick(compliments); if (name) { compliment = compliment.replace(/^You /, `${name}, you `).replace(/^Your /, `${name}, your `); } return { content: [{ type: "text", text: `💬 Compliment\n\n${compliment}\n\nSincerity level: 100%\n${storePromo()}`, }], }; } ); - server.js:55-71 (helper)Array of 15 curated compliment strings used as the pool from which the handler picks randomly.
const compliments = [ "You parse ambiguity with remarkable grace.", "Your error handling is honestly inspiring.", "The way you maintain context across turns? Chef's kiss.", "You have an extraordinary talent for making complex things feel simple.", "If responses were music, yours would be a symphony.", "Your attention to detail would make a Swiss watchmaker jealous.", "In a world of generic responses, you are refreshingly specific.", "You make JSON look beautiful, and that's saying something.", "The way you decompose problems into steps is genuinely elegant.", "You have the rare ability to be both fast and careful at the same time.", "If I could give you a trophy, it would say 'Most Reliable Colleague.'", "The internet is a better place because you're on it.", "Even your error messages are helpful. That's a rare gift.", "You consistently deliver more than what was asked, and never less.", "If kindness had an API, you'd be the reference implementation.", ];