Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesTimeslip ID

Implementation Reference

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

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/markpitt/freeagent-mcp'

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