delete_okr_progress_record
Delete an OKR progress record by providing its progress ID, enabling removal of outdated or incorrect progress entries from OKR tracking.
Instructions
[Official API + UAT, v1.3.7] Delete an OKR progress record by its progress_id (from list_okr_progress_records).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| progress_id | Yes | Progress record ID |
Implementation Reference
- src/tools/okr.js:153-156 (handler)Handler function for delete_okr_progress_record. Calls the official client's deleteOkrProgressRecord with the progress_id from args, then returns a text response indicating success (and whether it was done as user or app).
async delete_okr_progress_record(args, ctx) { const r = await ctx.getOfficialClient().deleteOkrProgressRecord(args.progress_id); return text(`Progress record ${args.progress_id} deleted${r.viaUser ? '' : ' (as app)'}`); }, - src/tools/okr.js:98-108 (schema)Input schema definition for delete_okr_progress_record tool. Declares a single required 'progress_id' (string) parameter and provides the tool description.
{ name: 'delete_okr_progress_record', description: '[Official API + UAT, v1.3.7] Delete an OKR progress record by its progress_id (from list_okr_progress_records).', inputSchema: { type: 'object', properties: { progress_id: { type: 'string', description: 'Progress record ID' }, }, required: ['progress_id'], }, }, - src/server.js:49-57 (registration)Registration of the okr tool module (src/tools/okr.js) in the server, which exports schemas and handlers merged into the MCP tool list.
require('./tools/okr'), require('./tools/profile'), require('./tools/tasks'), require('./tools/uploads'), require('./tools/wiki'), ]; const TOOLS = TOOL_MODULES.flatMap((m) => m.schemas); const HANDLERS = Object.fromEntries(TOOL_MODULES.flatMap((m) => Object.entries(m.handlers))); - src/clients/official/okr.js:117-126 (helper)Official API client method deleteOkrProgressRecord. Sends a DELETE request to /open-apis/okr/v1/progress_records/{progressId} via the UAT-first path or SDK fallback, returning { deleted: true, viaUser }.
async deleteOkrProgressRecord(progressId) { if (!progressId) throw new Error('deleteOkrProgressRecord: progress_id is required'); const res = await this._asUserOrApp({ uatPath: `/open-apis/okr/v1/progress_records/${encodeURIComponent(progressId)}`, method: 'DELETE', sdkFn: () => this.client.okr.progressRecord.delete({ path: { progress_id: progressId } }), label: 'deleteOkrProgressRecord', }); return { deleted: true, viaUser: !!res._viaUser }; },