delete_timeslip
Remove a specific timeslip record from your FreeAgent account by providing its ID to manage time tracking data.
Instructions
Delete a timeslip
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Timeslip ID |
Implementation Reference
- src/freeagent-client.ts:123-131 (handler)Core handler function that executes the DELETE request to the FreeAgent API to delete the timeslip by ID.async deleteTimeslip(id: string): Promise<void> { try { console.error('[API] Deleting timeslip:', id); await this.axiosInstance.delete(`/timeslips/${id}`); } catch (error) { console.error('[API] Failed to delete timeslip:', error); throw error; } }
- src/index.ts:231-237 (handler)MCP server handler that extracts the ID from tool arguments and delegates to FreeAgentClient.deleteTimeslip.case 'delete_timeslip': { const { id } = request.params.arguments as { id: string }; await this.client.deleteTimeslip(id); return { content: [{ type: 'text', text: 'Timeslip deleted successfully' }] }; }
- src/index.ts:150-160 (schema)Tool schema definition including input schema requiring 'id' string, provided in ListTools response.{ name: 'delete_timeslip', description: 'Delete a timeslip', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Timeslip ID' } }, required: ['id'] } },