Skip to main content
Glama

Get the tracking snippet and installation steps

get_tracking_snippet
Read-only

The line to add to a site's pages, step-by-step instructions for the tool the site is made with (WordPress, Wix, Squarespace, Webflow, Shopify, Ghost, Keepsake, Next.js, or any other site), how to send custom events, and the links that stop counting the owner's own browser. Use it to guide a non-technical user step by step.

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": {
      "site": "<site>"
    },
    "name": "get_tracking_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
localeNoLanguage of the steps. Default en.
platformNoThe tool the site is made with. Ask the user if unsure; "other" for any other site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint already declaring the safety profile, the description adds substantive content detail: exactly what kinds of material come back (snippet line, platform-specific steps, custom event docs, owner-exclusion links). It does not mention auth or rate-limit behaviour, but for a read-only documentation-fetch tool that gap is minor.

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?

A single dense sentence front-loads the returned content before the usage hint, with no filler. It is slightly overloaded, listing nine platforms inline, which dilutes scannability, but every clause carries information.

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?

There is no output schema, so the description must convey return content, and it does so thoroughly for all four content types. Combined with 100% schema coverage on the three parameters and a read-only annotation, an agent has enough to call this correctly; only the absence of any prerequisite or failure condition keeps it from a 5.

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 both enums fully documented, so the schema carries the parameter burden. The description only echoes the platform dimension in prose ('the tool the site is made with ... any other site') and adds nothing about the locale parameter or the site identifier, so baseline 3 applies.

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 enumerates concretely what the tool returns: the tracking line, per-platform setup steps, custom event instructions, and opt-out links. It reads as a content inventory rather than a crisp verb+resource statement, but an agent can still tell this is the 'fetch installation instructions' tool and distinguish it from data-reading siblings like get_stats or get_overview.

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?

The final clause, 'Use it to guide a non-technical user step by step,' gives one implied usage context (onboarding a user who needs to install tracking). There is no explicit when-not guidance, no mention of prerequisites such as the site already existing, and no named alternative tools, so 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