get_tasks
Retrieve farm management tasks, newest due date first by default (tasks without a due date last). Filters: status (Pending | In Progress | Completed, case-insensitive, string or array; omit for all), excludeCompleted, dueFrom/dueTo (inclusive YYYY-MM-DD in the farm timezone, default America/New_York), assignedTo, titleContains. Paginate by passing the returned nextCursor as cursor with the same filters. Requires farmId and apiKey authorization.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"farmId": "<farmId>"
},
"name": "get_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order by due date (default: dueDate_desc) | |
| dueTo | No | Filter tasks due on or before YYYY-MM-DD (farm timezone, default America/New_York) | |
| limit | No | Maximum tasks to return (1-100, default 25) | |
| cursor | No | Pagination cursor for next page (pass nextCursor) | |
| farmId | Yes | The unique farm ID | |
| status | No | Task status filter: Pending, In Progress, Completed (string or array). Case-insensitive. Omit for all statuses. | |
| dueFrom | No | Filter tasks due on or after YYYY-MM-DD (farm timezone, default America/New_York) | |
| assignedTo | No | Filter by assigned user ID, name, or email (case-insensitive exact match) | |
| titleContains | No | Filter tasks by title substring (case-insensitive) | |
| excludeCompleted | No | Exclude completed tasks |