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.

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": {
      "property_id": "<property_id>"
    },
    "name": "d8a_get_tracking_install"
  }
}

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 already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description still adds real behavior: only methods matching the property's protocol are offered, and existing analytics must be preserved. That protocol-gating behavior is not visible from the schema and is genuinely useful. Minor gap: no mention of what happens when a requested method does not match the protocol (error vs omission).

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?

Front-loaded with the usage trigger, then the mechanics, then the guardrail about keeping GA4; every clause carries information. The parenthetical method listing is dense but justified because it disambiguates the enum values. Slightly long for two parameters, but no filler.

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 present, return values need no explanation, and annotations carry the safety profile, so the description covers exactly the remaining gaps: when to call it, protocol-based method availability, and the non-destructive-analytics rule. Only the failure mode for a mismatched method is left unspecified.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description goes beyond it by mapping each method family to real semantics: native = script tag/npm/GTM, GA4 = duplicate events from existing GTM, Matomo = parallel tracker or replace on explicit request. This tells the agent what each enum value implies, not just its name.

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

Purpose4/5

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

States a concrete verb and resource: it 'returns the property's collector URL and ready-to-paste snippets' per supported method, with the constraint that the protocol is fixed per property. The purpose is unambiguous, but it never names the adjacent sibling d8a_get_tracking_guide, so an agent must infer the boundary between 'get install snippets' and 'get tracking guide'.

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?

Opens with an explicit trigger: 'Use this before adding or fixing tracking code on a site', and adds a conditional rule for matomo_replace ('replace on explicit request'). It also forbids removing existing GA4 unless the user asks. What is missing is any pointer to the sibling to use when the agent needs guidance rather than snippets.

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