Skip to main content
Glama
standardbeagle

Harvest MCP Server

harvest_delete_time_entry

Remove a time entry from Harvest time tracking by specifying its ID to correct records or delete logged work.

Instructions

Delete a time entry. Use about {"tool": "harvest_delete_time_entry"} for detailed usage and warnings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTime entry ID to delete

Implementation Reference

  • Core handler function that performs the DELETE request to the Harvest API to delete the specified time entry.
    async deleteTimeEntry(id: string) { return this.makeRequest(`/time_entries/${id}`, { method: 'DELETE', }); }
  • MCP server tool execution handler case that invokes the HarvestClient deleteTimeEntry method and formats the success response.
    case 'harvest_delete_time_entry': await harvestClient.deleteTimeEntry(typedArgs.id as string); return { content: [ { type: 'text', text: `Time entry ${typedArgs.id} deleted successfully`, }, ], };
  • Tool schema definition including name, description, and input validation schema requiring 'id' parameter.
    name: 'harvest_delete_time_entry', description: 'Delete a time entry. Use about {"tool": "harvest_delete_time_entry"} for detailed usage and warnings.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Time entry ID to delete' } }, required: ['id'] } },
  • src/index.ts:69-73 (registration)
    Registration of all tools list endpoint, which includes the harvest_delete_time_entry tool schema from tools.ts.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: tools, }; });

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/standardbeagle/harvest-mcp'

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