containers_create
Create a new Google Tag Manager container by providing account ID, name, and usage context; set confirm to true to execute this write operation.
Instructions
[WRITE] Create a new GTM container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
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>",
"name": "<name>",
"usageContext": "<usageContext>",
"confirm": "<confirm>"
},
"name": "containers_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Container name. | |
| notes | No | Optional notes. | |
| confirm | Yes | Must be true to confirm this write operation. | |
| accountId | Yes | The GTM account ID. | |
| domainName | No | Associated domain names. | |
| usageContext | Yes | Usage context(s) for the container. |