Skip to main content
Glama

d8a_get_tracking_install

Read-only

Use this before adding or fixing tracking code on a site: it returns the property's collector URL and ready-to-paste snippets for every method its protocol supports (native tracker: script tag, npm, Google Tag Manager; GA4: duplicate events from the existing GTM setup; Matomo: add a second tracker, or replace on explicit request). The protocol is fixed per property, so only matching methods are offered. Keep existing analytics (do not remove GA4) unless the user asks.

Input Schema

NameRequiredDescriptionDefault
methodNoOne install method; omit for all of the protocol's methods.
property_idYesProperty ID from d8a_list_properties.

Output Schema

NameRequiredDescriptionDefault
notesYes
methodsYes
property_idYes
protocol_idYes
tracking_urlYes
verificationYes
protocol_labelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the read-only/openWorld safety profile, and the description adds context annotations cannot: the protocol is fixed per property, so only matching methods are returned, and GA4 duplication targets the existing GTM setup. The preserve-existing-analytics warning is a real operational constraint. It stops short of 5 since it doesn't describe the collector-URL format or output shape.

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

Conciseness3/5

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

The first sentence is front-loaded and serves well, but the parenthetical enumerating every method is dense and largely duplicates the enum in the schema. 'Keep existing analytics (do not remove GA4) unless the user asks' is worth its place, but the middle taxonomies are over-packed.

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?

With an output schema and 100% covered params, the remaining gap is guidance on what the returned snippets look like, which is acceptable. For a two-parameter read tool the description gives sufficient context to call it correctly and interpret protocol-dependent output.

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 coverage is 100%, with the method enum and its documented defaults fully specified, so baseline 3 applies. The description does add useful semantics: method must match the property's protocol, and the GA4/Matomo options carry commitments like 'duplicate events' or 'replace on explicit request.'

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+resource: returns the property's collector URL and ready-to-paste install snippets, broken out by protocol family (native tracker, GA4, Matomo). It's clearly distinguishable from d8a_get_tracking_guide (educational) and d8a_tracking_audit (verification) because it yields concrete install artifacts.

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 opening clause explicitly says to use it 'before adding or fixing tracking code on a site,' and the last sentence gives a policy directive: keep existing analytics unless the user asks. It doesn't name a sibling as the alternative (e.g., 'for conceptual guidance use d8a_get_tracking_guide'), so it stays at a clear-context, no-exclusion 4.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources