Skip to main content
Glama

Install tracking

tracking_install
Destructive

Set up tracking for the site: the site key, the secret (shown only the first time, or with rotateSecret), the tracking.js script tag, the AI crawler middleware for the stack (nextjs, astro, nuxt, sveltekit, cloudflare; static sites get a log shipper note), and the default goals and funnel. Free on every plan; Free and Builder track 1 site, Growth 3. Ship it as the first PR and never commit the secret.

Input Schema

NameRequiredDescriptionDefault
domainYesThe site's hostname, e.g. example.com
frameworkYesThe stack from the access audit; cloudflare for a Worker in front of a static site
identityModeNocookieless (default) or attribution (needs consent where the law requires it)
rotateSecretNoIssue a new secret; the old one stops working
activationEventNoThe founder's activation event for the default funnel, e.g. first_project_created

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, it discloses important behavioral facts: the secret is shown only the first time (or via rotateSecret), plan-based site limits, per-stack middleware handling, and the 'never commit the secret' handling warning. This adds real context the structured fields do not. It slightly undersells the destructiveHint=true surface (rotateSecret invalidating the old secret), which keeps it from a 5.

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 action is front-loaded, but the first sentence is an extremely long run-on enumerating five outputs. Pricing/plan sentences ('Free on every plan; Free and Builder track 1 site, Growth 3') are tangential to invoking the tool and dilute the definition, though the closing handling advice is useful.

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 no output schema, the description usefully tells the agent what it receives back (site key, secret, script snippet, middleware, default goals/funnel). For a mutation tool with annotations, this is largely complete; only details like idempotency on re-run and a fuller return-format description are missing.

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 already documents all five parameters including the framework enum and identityMode. The description echoes the framework values and mentions rotateSecret and activationEvent but adds little meaning beyond the schema. Baseline 3 is appropriate.

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?

The description opens with a clear verb+resource ('Set up tracking for the site') and enumerates the concrete artifacts produced: site key, secret, tracking.js script tag, AI crawler middleware, default goals and funnel. It is highly specific about scope. It does not, however, explicitly name a sibling (e.g. tracking_check) to distinguish itself from, so it stops short of a 5.

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

Usage Guidelines3/5

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

'Ship it as the first PR' gives a timing/ordering hint, and the plan sentences tell the agent who may use it. But there is no explicit when-to-use vs when-not, and no reference to the alternative tracking_check or to prerequisites. Usage is only implied.

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