# list_tasks

Read next steps, overdue first and undated last. Defaults to your open tasks. Supply an IANA timezone for local calendar day boundaries.

| | |
| --- | --- |
| Group | Activity and tasks |
| Scope | `crm:read` |
| Who can call it | Agents and people with this scope. |
| Kind | Read-only (MCP annotation `readOnlyHint: true`). |
| Retries | Safe to repeat. |
| Widget | In hosts that support MCP Apps, the result shows the task list. |

## Parameters

| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `status` | `open` \\| `done` \\| `cancelled` | no | default "open" |
| `assignee` | string | no | default "me" |
| `due` | `overdue` \\| `today` \\| `next_7_days` \\| `no_date` \\| `any` | no | default "any" |
| `timezone` | string | no | default "UTC" |
| `record` | object { type, id } | no |  |
| `record.type` | `company` \\| `person` \\| `deal` | yes |  |
| `record.id` | id (uuid) | yes |  |
| `limit` | integer | no | default 50, 1–200 |
| `cursor` | string | no |  |

## Call it over MCP

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_tasks",
    "arguments": {}
  }
}
```

Send it to `https://api.tandemcrm.app/mcp` (streamable HTTP). Most people never write this by hand: their agent picks the tool from its description.

## Call it over REST

```bash
curl -X POST https://api.tandemcrm.app/v1/ops/list_tasks \
  -H "Authorization: Bearer $TANDEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Input schema

The JSON Schema the MCP server advertises for this tool:

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "default": "open",
      "type": "string",
      "enum": [
        "open",
        "done",
        "cancelled"
      ]
    },
    "assignee": {
      "default": "me",
      "type": "string"
    },
    "due": {
      "default": "any",
      "type": "string",
      "enum": [
        "overdue",
        "today",
        "next_7_days",
        "no_date",
        "any"
      ]
    },
    "timezone": {
      "default": "UTC",
      "type": "string"
    },
    "record": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "company",
            "person",
            "deal"
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "cursor": {
      "type": "string"
    }
  }
}
```
