> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Accounts

> Lists Google Tag Manager accounts the connected user has access to

Lists Google Tag Manager accounts the connected user has access to. Supports filtering by account name or ID.

|                      |                     |
| -------------------- | ------------------- |
| **App**              | Google Tag Manager  |
| **Operation ID**     | `gtm_list_accounts` |
| **Type**             | Action              |
| **Connection**       | `gtm` (required)    |
| **Credits per run**  | 1                   |
| **Agent / MCP tool** | Yes                 |

## Inputs

| Field     | Type                | Required | Default | Description                                                                                                                                                                                                                                                                           |
| --------- | ------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `filters` | array of FilterItem | No       | -       | Optional filters to apply when retrieving accounts. The available fields to filter by are: - accountId: Filter by account ID - name: Filter by account name Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP\_MATCH or IN\_LIST. |
| `limit`   | integer             | No       | `100`   | Maximum number of accounts to return. Default: 100.                                                                                                                                                                                                                                   |

### FilterItem

| Field      | Type                       | Required | Default | Description                                                                                                                                                   |
| ---------- | -------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `field`    | string or SelectableOption | Yes      | -       | The field to filter on, must be one of the current selected metrics or dimensions.                                                                            |
| `operator` | string                     | Yes      | -       | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*' |
| `value`    | string                     | Yes      | -       | The value to filter by. Can be a string, number, regex, or a list of strings.                                                                                 |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[Dict]`

Returns the raw list of GTM accounts as provided by the Tag Manager API.
