From f3ce3d950ba56593a87b95e4921beb55e7c07764 Mon Sep 17 00:00:00 2001 From: Kamran Ayub Date: Thu, 25 Sep 2025 22:54:07 -0500 Subject: [PATCH] problems(elicitations): Fix comment typo from 'elicitInput' to 'elicitation' In the solution, the capability property is `elicitations` not `elicitInput` which is the method name. In addition, the solution has a more verbose message than what's specified in the comment. --- exercises/02.elicitation/01.problem/src/tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/02.elicitation/01.problem/src/tools.ts b/exercises/02.elicitation/01.problem/src/tools.ts index fd5405f..6eae1ee 100644 --- a/exercises/02.elicitation/01.problem/src/tools.ts +++ b/exercises/02.elicitation/01.problem/src/tools.ts @@ -290,12 +290,12 @@ export async function initializeTools(agent: EpicMeMCP) { const existingTag = await agent.db.getTag(id) invariant(existingTag, `Tag ID "${id}" not found`) - // 🐨 first check whether the client has the elicitInput capability, if it does then: + // 🐨 first check whether the client has the elicitation capability, if it does then: // 🐨 Use agent.server.server.elicitInput to ask the user to confirm deletion of the tag. // - The message should be: `Are you sure you want to delete tag "${existingTag.name}" (ID: ${id})?` // - The requestedSchema should be an object with a boolean property "confirmed". // 🐨 If the user does not confirm, return structuredContent with success: false and the tag. - // - Also return content with a text block saying "Tag deletion cancelled", the tag resource link, and the structuredContent. + // - Also return content with a text block saying `Deleting tag "${existingTag.name}" (ID: ${id}) rejected by the user.`, the tag resource link, and the structuredContent. await agent.db.deleteTag(id) const structuredContent = { success: true, tag: existingTag }