GTM: Versions
gtm_list_versionsList Google Tag Manager container versions newest first with tag, trigger, and variable counts plus live status, so you can choose an older version for rollback or review.
Instructions
Lists the container versions (newest first) with name, number of tags/triggers/variables and a live=true marker. Basis for a rollback: view an older version via gtm_export_container (containerVersionId), then gtm_publish_version.
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>",
"containerId": "<containerId>"
},
"name": "gtm_list_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 20 | |
| accountId | Yes | ||
| containerId | Yes | ||
| includeDeleted | No | Include deleted versions |