reset_progress
Permanently delete all study progress, answers, mastery data, and review schedules for certification preparation. This action cannot be undone.
Instructions
WARNING: Permanently deletes ALL your study progress including answers, mastery data, and review schedules. This cannot be undone.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | Yes | Must be true to confirm the reset |
Implementation Reference
- src/tools/reset-progress.ts:6-26 (handler)The `registerResetProgress` function registers the `reset_progress` tool on the MCP server and contains the logic that deletes all user-specific progress from the database.
export function registerResetProgress(server: McpServer, db: Database.Database, userConfig: UserConfig): void { server.tool( 'reset_progress', 'WARNING: Permanently deletes ALL your study progress including answers, mastery data, and review schedules. This cannot be undone.', { confirmed: z.boolean().describe('Must be true to confirm the reset') }, async ({ confirmed }) => { if (!confirmed) { return { content: [{ type: 'text' as const, text: 'Reset cancelled. Your progress is safe.' }] }; } const userId = userConfig.userId; db.prepare('DELETE FROM answers WHERE userId = ?').run(userId); db.prepare('DELETE FROM domain_mastery WHERE userId = ?').run(userId); db.prepare('DELETE FROM review_schedule WHERE userId = ?').run(userId); db.prepare('DELETE FROM session_state WHERE userId = ?').run(userId); db.prepare('DELETE FROM study_sessions WHERE userId = ?').run(userId); db.prepare('DELETE FROM handout_views WHERE userId = ?').run(userId); db.prepare('DELETE FROM exam_attempts WHERE userId = ?').run(userId); return { content: [{ type: 'text' as const, text: 'All progress has been reset, including exam history. You can start fresh with start_assessment.' }] }; } );