Skip to main content
Glama

legal_put_consent

Configure the consent banner and tracking credentials for GTM, GA4, and Ahrefs to block all tracking until visitor consent is given.

Instructions

Configure the consent banner and every tracking credential the site uses. Nothing is handed to the browser until the visitor accepts - this plugin owns GTM, GA4 and Ahrefs Web Analytics precisely because it owns the gate. Search-engine verification meta tags are NOT here; those belong to cvrt-seo-manager because they fire no request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
ga4_idNoGA4 measurement id G-XXXXXXXXXX, for a site running GA4 WITHOUT a GTM container. Ignored when gtm_id is set, since loading both double-counts every hit.
gtm_idNoGTM-XXXXXXX
enabledYes
ahrefs_keyNoAhrefs Web Analytics data-key. Cookieless but still a third-party request, so it is consent-gated and must be named in the Datenschutz text before enabling.
loader_urlNoOptional first-party GTM loader URL. Leave empty to load straight from googletagmanager.com (the default on all our sites)
log_enabledNoTurn the consent decision log on or off. Stays off (the default) until a 'einwilligungsnachweis' section exists in the Datenschutz document - set it only after that section is in place.
imprint_pageNoPage id of the Impressum page
privacy_pageNoPage id of the Datenschutz page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.4.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does add real behavioral context: nothing is sent to the browser until the visitor accepts, and the plugin gates all three trackers. But it omits what an agent most needs for a config-overwriting 'put' tool — whether existing settings are replaced or merged, and any permission requirements.

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

Conciseness4/5

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

Three front-loaded sentences with no wasted preamble, and the key scoping fact (consent gate) leads. The closing clause is slightly rhetorical ('precisely because it owns the gate'), but it still carries routing information about the SEO exclusion.

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

Completeness4/5

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

For a 9-parameter config tool with no output schema and no annotations, the description and high-coverage schema together cover purpose, scope and gating behavior well. The remaining gap is mutation semantics (overwrite vs merge, revert behavior), which is a modest shortfall rather than a blocking omission.

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 89%, so the schema already documents nearly every parameter with rich detail (gating caveats for ahrefs_key, the gtm_id/ga4_id double-count rule, the Datenschutz precondition for log_enabled). The prose only refers to GTM/GA4/Ahrefs generically and adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Configure the consent banner and every tracking credential the site uses') and scopes it to what the plugin owns: GTM, GA4, Ahrefs. It also explicitly disclaims the SEO verification meta tags, naming the sibling namespace that owns them, so an agent can tell it apart from cvrt-seo-manager tools without opening a schema.

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

Usage Guidelines4/5

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

The description gives a clear boundary ('search-engine verification meta tags are NOT here; those belong to cvrt-seo-manager') which routes the agent away from a wrong tool. However, it gives no guidance on when to choose this over adjacent legal_* siblings such as legal_update_settings or legal_put_facts, or what prerequisites exist before calling.

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

Deploy Server

Other Tools