# List accounts

Tool: `veryfront__list_accounts`

List the personal and team accounts the caller belongs to, oldest first, with the caller's role and capabilities in each.

## Arguments

| Name     | Type                                   | Required | Description                                                              |
| -------- | -------------------------------------- | -------- | ------------------------------------------------------------------------ |
| `cursor` | string                                 |          | Opaque cursor pointing at the next page. Omit it to read the first page. |
| `limit`  | integer · min 1 · max 100 · default 20 |          | Maximum entries per page. Integer from 1 to 100; defaults to 20.         |
| `slug`   | string · max length 63                 |          | Return only the account with this exact slug.                            |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"slug\":\"string\",\"name\":\"string\",\"kind\":\"personal\",\"created_at\":\"string\",\"updated_at\":\"string\",\"membership\":{\"role\":\"owner\",\"capabilities\":[\"account.read\"]}}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "slug": "string",
          "name": "string",
          "kind": "personal",
          "created_at": "string",
          "updated_at": "string",
          "membership": {
            "role": "owner",
            "capabilities": [
              "account.read"
            ]
          }
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
