# List connected agents

Tool: `veryfront__list_connected_agents`

List a project's connected agents: every push runtime service first, then at most the 50 most recently updated pull workers, with no continuation for the rest. Requires project.runtime.manage.

## Arguments

| Name                | Type                  | Required | Description                                           |
| ------------------- | --------------------- | -------- | ----------------------------------------------------- |
| `project_reference` | string · min length 1 |          | Project identifier or slug that scopes the tool call. |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"service_name\":\"string\",\"service_key\":\"string\",\"scope_kind\":\"global\",\"scope_key\":\"string\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"agent_id\":\"string\",\"base_url\":\"https://example.com\",\"invoke_url\":\"https://example.com\",\"status\":\"active\",\"capabilities\":null,\"metadata\":null,\"managed_source\":{\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"environment_id\":\"00000000-0000-0000-0000-000000000000\",\"release_id\":\"00000000-0000-0000-0000-000000000000\"},\"version\":\"string\",\"runtime\":\"string\",\"region\":\"string\",\"last_heartbeat_at\":\"string\",\"created_at\":\"string\",\"updated_at\":\"string\",\"kind\":\"registered_push_service\",\"mode\":\"push\",\"source\":\"runtime_service_registry\",\"connection_status\":\"online\"}]}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "service_name": "string",
          "service_key": "string",
          "scope_kind": "global",
          "scope_key": "string",
          "project_id": "00000000-0000-0000-0000-000000000000",
          "agent_id": "string",
          "base_url": "https://example.com",
          "invoke_url": "https://example.com",
          "status": "active",
          "capabilities": null,
          "metadata": null,
          "managed_source": {
            "project_id": "00000000-0000-0000-0000-000000000000",
            "environment_id": "00000000-0000-0000-0000-000000000000",
            "release_id": "00000000-0000-0000-0000-000000000000"
          },
          "version": "string",
          "runtime": "string",
          "region": "string",
          "last_heartbeat_at": "string",
          "created_at": "string",
          "updated_at": "string",
          "kind": "registered_push_service",
          "mode": "push",
          "source": "runtime_service_registry",
          "connection_status": "online"
        }
      ]
    }
  }
}
```
