list_tasks
Retrieve active or inactive tasks from Harvest time tracking API using optional filters. Simplify task management and enhance workflow efficiency with this feature.
Instructions
List all tasks with optional filtering.
Args:
is_active: Pass true to only return active tasks and false to return inactive tasks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_active | No |
Implementation Reference
- harvest-mcp-server.py:230-242 (handler)The handler function for the 'list_tasks' tool. It is decorated with @mcp.tool() for registration and fetches the list of tasks from the Harvest API, optionally filtering by active status using the shared harvest_request helper.@mcp.tool() async def list_tasks(is_active: bool = None): """List all tasks with optional filtering. Args: is_active: Pass true to only return active tasks and false to return inactive tasks """ params = {} if is_active is not None: params["is_active"] = "true" if is_active else "false" response = await harvest_request("tasks", params) return json.dumps(response, indent=2)