gtm_client
Perform client operations on Google Tag Manager: create, get, list, update, remove, and revert clients.
Instructions
Performs all client operations: create, get, list, update, remove, revert. 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_client"
}
}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 client operation to perform. Must be one of: 'create', 'get', 'list', 'update', 'remove', 'revert'. | |
| clientId | No | The unique ID of the GTM Client. Required for 'get', 'update', 'remove', and 'revert' actions. | |
| accountId | Yes | The unique ID of the GTM Account containing the client. | |
| containerId | Yes | The unique ID of the GTM Container containing the client. | |
| fingerprint | No | The fingerprint for optimistic concurrency control. Required for 'update' and 'revert' actions. | |
| workspaceId | Yes | The unique ID of the GTM Workspace containing the client. | |
| 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 GTM Client resource, except IDs. |