# List schedules

Tool: `veryfront__list_schedules`

List the schedules stored for a project, newest first, to find a schedule or check its state and last runs; returns one page of schedules. Requires project.runs.read.

## Arguments

| Name                | Type                                    | Required | Description                                                                                                                 |
| ------------------- | --------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string                                  |          | Project ID or slug.                                                                                                         |
| `status`            | string                                  |          | Only schedules with this status. One of `active`, `paused`, `deleting`.                                                     |
| `source_trigger_id` | string · min length 1 · max length 255  |          | Only the schedule activated from this source schedule.                                                                      |
| `sort_by`           | string                                  |          | Sort key: created\_at (the default) or name. One of `created_at`, `name`.                                                   |
| `sort_order`        | string                                  |          | Sort direction: desc (the default) or asc. One of `asc`, `desc`.                                                            |
| `limit`             | integer · min 1 · max 200 · default 100 |          | Maximum schedules per page, 1 to 200; defaults to 100.                                                                      |
| `cursor`            | string · uuid                           |          | The page\_info.next of the previous page: the id of its last schedule. Keep the filters and the sort the same across pages. |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_schedules",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\",\"status\":\"active\",\"paused_reason\":\"string\",\"paused_at\":\"string\",\"last_failure_at\":\"string\",\"last_failure_code\":\"string\",\"last_failure_message\":\"string\",\"last_failure_run_id\":\"00000000-0000-0000-0000-000000000000\",\"target\":{\"kind\":\"task\",\"id\":\"string\",\"conversation_mode\":\"create_new\",\"conversation_id\":\"00000000-0000-0000-0000-000000000000\"},\"schedule\":\"string\",\"timezone\":\"string\",\"runtime_target_kind\":\"main_branch\",\"runtime_target_environment_id\":\"00000000-0000-0000-0000-000000000000\",\"runtime_target_branch_id\":\"00000000-0000-0000-0000-000000000000\",\"config\":{},\"timeout_seconds\":0,\"backoff_limit\":0,\"concurrency_policy\":\"string\",\"definition_source\":\"manual\",\"source_trigger_id\":\"string\",\"source_path\":\"string\",\"source_hash\":\"string\",\"last_scheduled_at\":\"string\",\"last_successful_at\":\"string\",\"health\":{\"maxStalenessSeconds\":1},\"max_runs\":1,\"run_count\":0,\"completed_at\":\"string\",\"created_by\":\"00000000-0000-0000-0000-000000000000\",\"integration_requirements\":[],\"created_at\":\"string\",\"updated_at\":\"string\"}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "project_id": "00000000-0000-0000-0000-000000000000",
          "name": "string",
          "status": "active",
          "paused_reason": "string",
          "paused_at": "string",
          "last_failure_at": "string",
          "last_failure_code": "string",
          "last_failure_message": "string",
          "last_failure_run_id": "00000000-0000-0000-0000-000000000000",
          "target": {
            "kind": "task",
            "id": "string",
            "conversation_mode": "create_new",
            "conversation_id": "00000000-0000-0000-0000-000000000000"
          },
          "schedule": "string",
          "timezone": "string",
          "runtime_target_kind": "main_branch",
          "runtime_target_environment_id": "00000000-0000-0000-0000-000000000000",
          "runtime_target_branch_id": "00000000-0000-0000-0000-000000000000",
          "config": {},
          "timeout_seconds": 0,
          "backoff_limit": 0,
          "concurrency_policy": "string",
          "definition_source": "manual",
          "source_trigger_id": "string",
          "source_path": "string",
          "source_hash": "string",
          "last_scheduled_at": "string",
          "last_successful_at": "string",
          "health": {
            "maxStalenessSeconds": 1
          },
          "max_runs": 1,
          "run_count": 0,
          "completed_at": "string",
          "created_by": "00000000-0000-0000-0000-000000000000",
          "integration_requirements": [],
          "created_at": "string",
          "updated_at": "string"
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
