stop_timer
Stop an active timer within the Harvest time tracking system by specifying the time entry ID, ensuring accurate tracking and task management.
Instructions
Stop a running timer.
Args:
time_entry_id: The ID of the running time entry to stop
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time_entry_id | Yes |
Implementation Reference
- harvest-mcp-server.py:141-151 (handler)The main handler function for the 'stop_timer' tool. It stops a running time entry timer by making a PATCH request to the Harvest API endpoint `/time_entries/{time_entry_id}/stop`. The @mcp.tool() decorator registers this function as an MCP tool.@mcp.tool() async def stop_timer(time_entry_id: int): """Stop a running timer. Args: time_entry_id: The ID of the running time entry to stop """ response = await harvest_request( f"time_entries/{time_entry_id}/stop", method="PATCH" ) return json.dumps(response, indent=2)