List Tag Manager containers
gtm_list_containersLists Tag Manager containers for a specified account ID, returning numeric containerId for use in other tools. Read-only.
Instructions
Lists containers in a Tag Manager account. Call gtm_list_accounts first to get the accountId. NOTE the response has two different IDs: containerId is the numeric internal ID that every other GTM tool needs, while publicId is the GTM-XXXXXXX string shown in the UI. Pass the numeric one. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "gtm_list_containers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return. Defaults to 25 to protect the context window. Prefer narrowing the query over raising this. | |
| accountId | Yes | GTM account ID, with or without the 'accounts/' prefix. Call gtm_list_accounts to discover it. | |
| pageToken | No | Opaque token from a previous response's `nextPageToken`, to fetch the following page. Paging is manual so the caller controls cost. |