Skip to main content
Glama
A1-x-Tech

Google Tag Manager MCP

Raw Tag Manager API call

raw_request
Destructive

Directly call any Google Tag Manager API v2 endpoint, such as environments, folders, and templates, to perform operations not covered by dedicated tools.

Instructions

Escape hatch to call any Google Tag Manager API v2 path directly, for endpoints without a dedicated tool (environments, folders, templates, zones, workspace :sync / :quick_preview, version_headers, ...). path is relative to /tagmanager/v2/, e.g. "accounts/1/containers/2/environments". query values may be arrays for repeated params. Requests go through the same OAuth, rate limiter and retries as every other tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoJSON request body (POST/PUT).
pathYesAPI path relative to /tagmanager/v2/, e.g. "accounts/1/containers/2/version_headers".
queryNoQuery parameters; use an array for repeated keys, e.g. { "type": ["pageUrl", "event"] }.
methodNoHTTP method. Defaults to GET.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate destructive and non-readOnly behavior. The description adds useful context: requests go through the same OAuth, rate limiter, and retries as other tools. It doesn't explicitly warn about destructive potential, but the annotation covers this, so the added detail earns a 4.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences, front-loaded with the core purpose, and every sentence adds value: purpose, path format, query arrays, and shared infrastructure. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a generic raw API tool, the description covers purpose, usage boundaries, path/query handling, and infrastructure behavior. With no output schema, it doesn't need to specify return values as they vary by endpoint. The examples and openWorldHint provide sufficient context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all parameters. The description provides examples for path and query, but these largely echo the schema. Baseline 3 is appropriate as the description adds no substantial new parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states this is an escape hatch for calling any GTM API v2 path directly, with explicit examples of endpoints lacking dedicated tools. It differentiates from siblings by explicitly targeting endpoints without a dedicated tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'for endpoints without a dedicated tool', which implies not to use when a dedicated tool exists. It also lists example endpoints, providing clear context for when this tool is the right choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-tagmanager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server