From 3f1a2fb176e0b53448f0df1ab8501c39564f6148 Mon Sep 17 00:00:00 2001 From: Kamran Ayub Date: Thu, 25 Sep 2025 23:09:05 -0500 Subject: [PATCH 1/3] fix(advanced-tools): problem 2 comments Closes #10 The current comments could confuse learners when viewing the solution/diff. ## Changes - Update add_tag_to_entry schema comment - Update video schema comment --- .../01.advanced-tools/02.problem.structured/src/tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/01.advanced-tools/02.problem.structured/src/tools.ts b/exercises/01.advanced-tools/02.problem.structured/src/tools.ts index 19fb022..54b701c 100644 --- a/exercises/01.advanced-tools/02.problem.structured/src/tools.ts +++ b/exercises/01.advanced-tools/02.problem.structured/src/tools.ts @@ -330,7 +330,7 @@ export async function initializeTools(agent: EpicMeMCP) { openWorldHint: false, } satisfies ToolAnnotations, inputSchema: entryTagIdSchema, - // 🐨 add an outputSchema here with a tag that is a tagSchema and an entry that is an entrySchema + // 🐨 add an outputSchema here with a success boolean and a tagEntry that is an entryTagSchema }, async ({ entryId, tagId }) => { const tag = await agent.db.getTag(tagId) @@ -382,7 +382,7 @@ export async function initializeTools(agent: EpicMeMCP) { 'If set to > 0, use mock mode and this is the mock wait time in milliseconds', ), }, - // 🐨 add an outputSchema here with a video that is a videoSchema + // 🐨 add an outputSchema here with a video that includes videoUri (you're on your own here!) }, async ({ year = new Date().getFullYear(), mockTime }) => { const entries = await agent.db.getEntries() From ab45df87842cf82b84074f0eeed75c3d9ca7d6fb Mon Sep 17 00:00:00 2001 From: Kamran Ayub Date: Thu, 25 Sep 2025 23:12:04 -0500 Subject: [PATCH 2/3] Add comments for entry retrieval and structured content Added comments for future implementation of entry retrieval and structured content creation. --- exercises/01.advanced-tools/02.problem.structured/src/tools.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exercises/01.advanced-tools/02.problem.structured/src/tools.ts b/exercises/01.advanced-tools/02.problem.structured/src/tools.ts index 54b701c..071bf01 100644 --- a/exercises/01.advanced-tools/02.problem.structured/src/tools.ts +++ b/exercises/01.advanced-tools/02.problem.structured/src/tools.ts @@ -41,6 +41,9 @@ export async function initializeTools(agent: EpicMeMCP) { } } + // 🐨 you'll need to get the entry with the tags added + // 💰 const entryWithTags = await agent.db.getEntry(createdEntry.id) + // 🐨 create a structuredContent here that matches the outputSchema return { // 🐨 add structuredContent here From b44513a6a0335f3acf45b1787d878aeb89aa42ec Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Fri, 26 Sep 2025 13:32:25 -0600 Subject: [PATCH 3/3] Update exercises/01.advanced-tools/02.problem.structured/src/tools.ts --- exercises/01.advanced-tools/02.problem.structured/src/tools.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/exercises/01.advanced-tools/02.problem.structured/src/tools.ts b/exercises/01.advanced-tools/02.problem.structured/src/tools.ts index 071bf01..54b701c 100644 --- a/exercises/01.advanced-tools/02.problem.structured/src/tools.ts +++ b/exercises/01.advanced-tools/02.problem.structured/src/tools.ts @@ -41,9 +41,6 @@ export async function initializeTools(agent: EpicMeMCP) { } } - // 🐨 you'll need to get the entry with the tags added - // 💰 const entryWithTags = await agent.db.getEntry(createdEntry.id) - // 🐨 create a structuredContent here that matches the outputSchema return { // 🐨 add structuredContent here