# Get conversation analytics

Tool: `veryfront__get_conversation_analytics`

Summarize the conversation activity and model use in the projects of an account, optionally for one project or label; returns totals, configurable time buckets and recent conversations, with private titles limited to participants. Requires account.billing.read.

## Arguments

| Name                | Type                  | Required | Description                                                                                                                                           |
| ------------------- | --------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `preset`            | string · default 30d  |          | Whole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults. One of `7d`, `30d`, `90d`. |
| `from`              | string · date-time    |          | Inclusive start. Supply both from and to; these bounds take precedence over preset.                                                                   |
| `to`                | string · date-time    |          | Exclusive end, no later than the end of today in timezone.                                                                                            |
| `timezone`          | string · default UTC  |          | Provide the timezone.                                                                                                                                 |
| `granularity`       | string · default day  |          | UTC hours, or local calendar days, Monday-based weeks and months. One of `hour`, `day`, `week`, `month`.                                              |
| `group_by`          | array of string       |          | Grouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list. One of `project`, `model`, `api_key`, `member`.  |
| `compare`           | string                |          | Compare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise.    |
| `label`             | array of string       |          | Provide the label.                                                                                                                                    |
| `project_reference` | string · min length 1 |          | Project ID or slug that narrows the read to one project of the account. A project of another account is not found.                                    |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"scope\":{\"kind\":\"account\",\"account_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\"},\"group_by\":[\"project\"],\"summary\":{\"total_conversations\":0,\"active_conversations\":0,\"total_messages\":0,\"last_conversation_at\":\"string\",\"previous\":{\"total_conversations\":0,\"active_conversations\":0,\"total_messages\":0,\"last_conversation_at\":\"string\"}},\"timeframe\":{\"from\":\"2026-01-01T00:00:00Z\",\"to\":\"2026-01-01T00:00:00Z\",\"timezone\":\"string\",\"granularity\":\"hour\",\"bucket_count\":0,\"previous\":{\"from\":\"2026-01-01T00:00:00Z\",\"to\":\"2026-01-01T00:00:00Z\",\"timezone\":\"string\",\"granularity\":\"hour\",\"bucket_count\":0}},\"series\":[{\"conversations\":0,\"messages\":0,\"bucket_start\":\"string\",\"groups\":[{\"conversations\":0,\"messages\":0,\"dimensions\":{\"project_id\":\"00000000-0000-0000-0000-000000000000\"}}]}],\"statuses\":[{\"status\":\"string\",\"count\":0}],\"models\":[{\"provider\":\"string\",\"model\":\"string\",\"count\":0}],\"tools\":[{\"name\":\"string\",\"count\":0}],\"projects\":[{\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"project_name\":\"string\",\"project_slug\":\"string\",\"count\":0}],\"recent_conversations\":[{\"conversation_id\":\"00000000-0000-0000-0000-000000000000\",\"title\":\"string\",\"status\":\"string\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"project_name\":\"string\",\"project_slug\":\"string\",\"last_activity_at\":\"string\"}]}"
      }
    ],
    "structuredContent": {
      "scope": {
        "kind": "account",
        "account_id": "00000000-0000-0000-0000-000000000000",
        "project_id": "00000000-0000-0000-0000-000000000000"
      },
      "group_by": [
        "project"
      ],
      "summary": {
        "total_conversations": 0,
        "active_conversations": 0,
        "total_messages": 0,
        "last_conversation_at": "string",
        "previous": {
          "total_conversations": 0,
          "active_conversations": 0,
          "total_messages": 0,
          "last_conversation_at": "string"
        }
      },
      "timeframe": {
        "from": "2026-01-01T00:00:00Z",
        "to": "2026-01-01T00:00:00Z",
        "timezone": "string",
        "granularity": "hour",
        "bucket_count": 0,
        "previous": {
          "from": "2026-01-01T00:00:00Z",
          "to": "2026-01-01T00:00:00Z",
          "timezone": "string",
          "granularity": "hour",
          "bucket_count": 0
        }
      },
      "series": [
        {
          "conversations": 0,
          "messages": 0,
          "bucket_start": "string",
          "groups": [
            {
              "conversations": 0,
              "messages": 0,
              "dimensions": {
                "project_id": "00000000-0000-0000-0000-000000000000"
              }
            }
          ]
        }
      ],
      "statuses": [
        {
          "status": "string",
          "count": 0
        }
      ],
      "models": [
        {
          "provider": "string",
          "model": "string",
          "count": 0
        }
      ],
      "tools": [
        {
          "name": "string",
          "count": 0
        }
      ],
      "projects": [
        {
          "project_id": "00000000-0000-0000-0000-000000000000",
          "project_name": "string",
          "project_slug": "string",
          "count": 0
        }
      ],
      "recent_conversations": [
        {
          "conversation_id": "00000000-0000-0000-0000-000000000000",
          "title": "string",
          "status": "string",
          "project_id": "00000000-0000-0000-0000-000000000000",
          "project_name": "string",
          "project_slug": "string",
          "last_activity_at": "string"
        }
      ]
    }
  }
}
```
