# List runs

Tool: `veryfront__list_runs`

List runs; bound runtimes need own project\_id, trigger\_type=\["schedule"] and trigger\_id.

## Arguments

| Name              | Type                                   | Required | Description                                                                                                                                                                                                                |
| ----------------- | -------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `task_id`         | string · min length 1 · max length 200 |          | Provide the task id.                                                                                                                                                                                                       |
| `limit`           | integer · min 1 · max 100 · default 20 |          | Maximum number of records in a page, from 1 to 100. Defaults to 20.                                                                                                                                                        |
| `cursor`          | string · min length 1                  |          | Opaque cursor returned by the previous page. Reuse with unchanged filters and ordering.                                                                                                                                    |
| `sort_by`         | string · default created\_at           |          | Field used to order runs: created\_at, status or duration. Defaults to created\_at. One of `created_at`, `status`, `duration`.                                                                                             |
| `sort_order`      | string · default desc                  |          | Sort direction: asc or desc. Defaults to desc. One of `asc`, `desc`.                                                                                                                                                       |
| `status`          | array of string                        |          | Run statuses to include. Values within this filter use OR; different filters use AND.                                                                                                                                      |
| `target_type`     | array of string                        |          | Execution definition types to include: agent, task, workflow or legacy eval. One of `agent`, `task`, `workflow`, `eval`.                                                                                                   |
| `trigger_type`    | array of string                        |          | Trigger types to include: user, api\_key, service\_account, system, schedule, webhook, agent, task or workflow. One of `user`, `api_key`, `service_account`, `system`, `schedule`, `webhook`, `agent`, `task`, `workflow`. |
| `root_only`       | string · default false                 |          | Provide the root only. One of `true`, `false`.                                                                                                                                                                             |
| `parent_run_id`   | string · uuid                          |          | Provide the parent run id.                                                                                                                                                                                                 |
| `target_id`       | array of string                        |          | Provide one or more target id values.                                                                                                                                                                                      |
| `trigger_id`      | string · min length 1 · max length 128 |          | Provide the trigger id.                                                                                                                                                                                                    |
| `project_id`      | string · uuid                          |          | Project identifier for the target project.                                                                                                                                                                                 |
| `conversation_id` | string · uuid                          |          | Conversation identifier that scopes the request.                                                                                                                                                                           |

## 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_runs",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"run_id\":\"string\",\"status\":\"pending\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"target\":{\"type\":\"agent\",\"agent_kind\":\"project\",\"name\":\"string\",\"id\":\"string\"},\"input\":null,\"output\":null,\"error\":{\"code\":\"string\",\"message\":\"string\",\"details\":{}},\"title\":\"string\",\"labels\":{},\"parent_run_id\":\"00000000-0000-0000-0000-000000000000\",\"root_run_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-01-01T00:00:00Z\",\"updated_at\":\"2026-01-01T00:00:00Z\",\"started_at\":\"2026-01-01T00:00:00Z\",\"finished_at\":\"2026-01-01T00:00:00Z\",\"config\":{},\"execution\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"runtime_instance\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\",\"mode\":\"service\"},\"runtime\":{\"type\":\"main_branch\"},\"timeout_seconds\":1,\"retry_limit\":0,\"attempt\":1,\"exit_code\":0,\"duration_ms\":0,\"tool_error_count\":0,\"logs\":\"string\",\"start_mode\":\"string\",\"worker\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\",\"worker_key\":\"string\",\"implementation_kind\":\"string\",\"claimed_at\":\"2026-01-01T00:00:00Z\"}},\"control\":{\"waiting\":{\"resume_at\":\"2026-01-01T00:00:00Z\",\"reason\":\"manual_pause\"},\"pause\":{\"requested_at\":\"2026-01-01T00:00:00Z\"},\"cancellation\":{\"requested_at\":\"2026-01-01T00:00:00Z\",\"stopped_at\":\"2026-01-01T00:00:00Z\"}},\"task_id\":\"string\",\"conversation_id\":\"00000000-0000-0000-0000-000000000000\",\"input_message_id\":\"00000000-0000-0000-0000-000000000000\",\"output_message_id\":\"00000000-0000-0000-0000-000000000000\",\"batch_id\":\"00000000-0000-0000-0000-000000000000\",\"trigger\":{\"type\":\"user\",\"id\":\"00000000-0000-0000-0000-000000000000\"},\"usage\":{\"funding\":\"managed\",\"tokens\":{\"input\":0,\"output\":0,\"cache\":{\"read\":0,\"write\":0},\"reasoning\":0,\"total\":0},\"cost\":{\"currency\":\"EUR\",\"status\":\"estimated\",\"provider\":\"string\",\"platform\":\"string\",\"total\":\"string\",\"credits\":\"string\"},\"model_calls\":0,\"capture_status\":\"complete\"},\"descendants\":{\"total\":0,\"active\":0,\"has_failures\":false,\"usage\":{\"funding\":\"managed\",\"tokens\":{\"input\":0,\"output\":0,\"cache\":{\"read\":0,\"write\":0},\"reasoning\":0,\"total\":0},\"cost\":{\"currency\":\"EUR\",\"status\":\"estimated\",\"provider\":\"string\",\"platform\":\"string\",\"total\":\"string\",\"credits\":\"string\"},\"model_calls\":0,\"capture_status\":\"complete\"}},\"artifacts\":[{\"artifact_id\":\"string\",\"type\":\"string\",\"media_type\":\"string\",\"size_bytes\":0,\"sha256\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"href\":\"https://example.com\"}],\"schemas\":{\"input\":{\"schema\":false,\"sha256\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"},\"output\":{\"schema\":false,\"sha256\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}},\"metadata\":{}}],\"page_info\":{\"next\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "run_id": "string",
          "status": "pending",
          "project_id": "00000000-0000-0000-0000-000000000000",
          "target": {
            "type": "agent",
            "agent_kind": "project",
            "name": "string",
            "id": "string"
          },
          "input": null,
          "output": null,
          "error": {
            "code": "string",
            "message": "string",
            "details": {}
          },
          "title": "string",
          "labels": {},
          "parent_run_id": "00000000-0000-0000-0000-000000000000",
          "root_run_id": "00000000-0000-0000-0000-000000000000",
          "created_at": "2026-01-01T00:00:00Z",
          "updated_at": "2026-01-01T00:00:00Z",
          "started_at": "2026-01-01T00:00:00Z",
          "finished_at": "2026-01-01T00:00:00Z",
          "config": {},
          "execution": {
            "id": "00000000-0000-0000-0000-000000000000",
            "runtime_instance": {
              "id": "00000000-0000-0000-0000-000000000000",
              "name": "string",
              "mode": "service"
            },
            "runtime": {
              "type": "main_branch"
            },
            "timeout_seconds": 1,
            "retry_limit": 0,
            "attempt": 1,
            "exit_code": 0,
            "duration_ms": 0,
            "tool_error_count": 0,
            "logs": "string",
            "start_mode": "string",
            "worker": {
              "id": "00000000-0000-0000-0000-000000000000",
              "name": "string",
              "worker_key": "string",
              "implementation_kind": "string",
              "claimed_at": "2026-01-01T00:00:00Z"
            }
          },
          "control": {
            "waiting": {
              "resume_at": "2026-01-01T00:00:00Z",
              "reason": "manual_pause"
            },
            "pause": {
              "requested_at": "2026-01-01T00:00:00Z"
            },
            "cancellation": {
              "requested_at": "2026-01-01T00:00:00Z",
              "stopped_at": "2026-01-01T00:00:00Z"
            }
          },
          "task_id": "string",
          "conversation_id": "00000000-0000-0000-0000-000000000000",
          "input_message_id": "00000000-0000-0000-0000-000000000000",
          "output_message_id": "00000000-0000-0000-0000-000000000000",
          "batch_id": "00000000-0000-0000-0000-000000000000",
          "trigger": {
            "type": "user",
            "id": "00000000-0000-0000-0000-000000000000"
          },
          "usage": {
            "funding": "managed",
            "tokens": {
              "input": 0,
              "output": 0,
              "cache": {
                "read": 0,
                "write": 0
              },
              "reasoning": 0,
              "total": 0
            },
            "cost": {
              "currency": "EUR",
              "status": "estimated",
              "provider": "string",
              "platform": "string",
              "total": "string",
              "credits": "string"
            },
            "model_calls": 0,
            "capture_status": "complete"
          },
          "descendants": {
            "total": 0,
            "active": 0,
            "has_failures": false,
            "usage": {
              "funding": "managed",
              "tokens": {
                "input": 0,
                "output": 0,
                "cache": {
                  "read": 0,
                  "write": 0
                },
                "reasoning": 0,
                "total": 0
              },
              "cost": {
                "currency": "EUR",
                "status": "estimated",
                "provider": "string",
                "platform": "string",
                "total": "string",
                "credits": "string"
              },
              "model_calls": 0,
              "capture_status": "complete"
            }
          },
          "artifacts": [
            {
              "artifact_id": "string",
              "type": "string",
              "media_type": "string",
              "size_bytes": 0,
              "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
              "href": "https://example.com"
            }
          ],
          "schemas": {
            "input": {
              "schema": false,
              "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
            },
            "output": {
              "schema": false,
              "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
            }
          },
          "metadata": {}
        }
      ],
      "page_info": {
        "next": "string"
      }
    }
  }
}
```
