gtm_destination
Retrieve, list, link, or unlink Google Tag Manager destinations by account and container; listing supports pagination up to 50 items per page.
Instructions
Performs all destination operations: get, list, link, unlink. The 'list' action returns up to 50 items per page.
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": {
"action": "<action>",
"accountId": "<accountId>",
"containerId": "<containerId>"
},
"name": "gtm_destination"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (starts from 1). Each page contains up to itemsPerPage items. | |
| action | Yes | The destination operation to perform. Must be one of: 'get', 'list', 'link', 'unlink'. | |
| accountId | Yes | The unique ID of the GTM Account containing the destination. | |
| containerId | Yes | The unique ID of the GTM Container containing the destination. | |
| itemsPerPage | No | Number of items to return per page (1-50). Default: 50. Use lower values if experiencing response issues. | |
| destinationId | No | The unique ID of the GTM Destination. Required for 'get', 'link', and 'unlink' actions. | |
| allowUserPermissionFeatureUpdate | No | If true, allows user permission feature update during linking. Optional for 'link' action. |