gtm_gtag_config
Create, get, list, update, or remove Google tag configurations in a GTM account, container, and workspace.
Instructions
Performs all Google tag config operations: create, get, list, update, remove. The 'list' action returns up to itemsPerPage 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>",
"workspaceId": "<workspaceId>"
},
"name": "gtm_gtag_config"
}
}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 Google tag config operation to perform. Must be one of: 'create', 'get', 'list', 'update', 'remove'. | |
| accountId | Yes | The unique ID of the GTM Account containing the Google tag config. | |
| containerId | Yes | The unique ID of the GTM Container containing the Google tag config. | |
| fingerprint | No | The fingerprint for optimistic concurrency control. Required for 'update' action. | |
| workspaceId | Yes | The unique ID of the GTM Workspace containing the Google tag config. | |
| gtagConfigId | No | The unique ID of the Google tag config. Required for 'get', 'update', and 'remove' actions. | |
| itemsPerPage | No | Number of items to return per page (1-50). Default: 50. Use lower values if experiencing response issues. | |
| createOrUpdateConfig | No | Configuration for 'create' and 'update' actions. All fields correspond to the Google tag config resource, except IDs. |