Get GTM Variable
gtm_get_variableRetrieve a specific Google Tag Manager variable's full details, including type and parameters, by supplying account, container, workspace, and variable IDs.
Instructions
Get full details of a specific variable, including its type and parameters.
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": {
"account_id": "<account_id>",
"container_id": "<container_id>",
"workspace_id": "<workspace_id>",
"variable_id": "<variable_id>"
},
"name": "gtm_get_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | The GTM account ID | |
| variable_id | Yes | The GTM variable ID | |
| container_id | Yes | The GTM container ID | |
| workspace_id | Yes | The GTM workspace ID |