Skip to main content
Glama
Connectry-io

Connectry Architect Cert

Official
by Connectry-io

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
NameRequiredDescriptionDefault
confirmedYesMust be true to confirm the reset

Implementation Reference

  • 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.' }] };
        }
      );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Connectry-io/connectrylab-architect-cert-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server