# List conversations

Tool: `veryfront__list_conversations`

List the conversations the caller can read, newest activity first, to build a conversation picker or to find a conversation of a project; returns one page of conversations, filtered by project reference and paged with the returned cursor until it is null.

## Arguments

| Name                | Type                                   | Required | Description                                                                                                                                                  |
| ------------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference` | string · min length 1                  |          | Lists conversations for the current user, optionally filtered by project, type, participants, agent, user or title, and sorted like REST GET /conversations. |
| `type`              | string                                 |          | Only conversations of this type, e.g. chat.                                                                                                                  |
| `participant_ids`   | array of string · uuid                 |          | Only conversations that include every listed participant id (at most 20 UUIDs).                                                                              |
| `agent_id`          | string · min length 1 · max length 128 |          | Only conversations with this agent participant (public agent id).                                                                                            |
| `user_id`           | string · uuid                          |          | Only conversations with this user participant (user UUID).                                                                                                   |
| `search`            | string · min length 1 · max length 200 |          | Case-insensitive title substring.                                                                                                                            |
| `cursor`            | string                                 |          | Opaque pagination cursor returned by a previous response.                                                                                                    |
| `limit`             | integer · min 1 · max 100              |          | Maximum number of results to return.                                                                                                                         |
| `sort_by`           | string · default updated\_at           |          | Sort key. Defaults to updated\_at. One of `updated_at`, `created_at`, `title`, `message_count`.                                                              |
| `sort_order`        | string · default desc                  |          | Sort direction. Defaults to desc. One of `asc`, `desc`.                                                                                                      |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"string\",\"project_id\":\"string\",\"responding_agent_id\":null,\"type\":\"chat\",\"title\":\"string\",\"summary\":\"string\",\"status\":\"active\",\"current_node\":\"string\",\"message_count\":0,\"last_message_at\":\"string\",\"metadata\":{},\"created_by\":\"string\",\"archived_at\":\"string\",\"created_at\":\"string\",\"updated_at\":\"string\",\"participants\":[]}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "string",
          "project_id": "string",
          "responding_agent_id": null,
          "type": "chat",
          "title": "string",
          "summary": "string",
          "status": "active",
          "current_node": "string",
          "message_count": 0,
          "last_message_at": "string",
          "metadata": {},
          "created_by": "string",
          "archived_at": "string",
          "created_at": "string",
          "updated_at": "string",
          "participants": []
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
