Skip to main content
Glama

get_analytics_snippet

Read-only

The exact tag that installs krawlup first-party analytics on a product's own website (visitors, sessions, pages, referrers, countries, conversion goals). The returned snippet already embeds the site token at data-site="…"; insert BOTH lines yourself; never ask the founder to paste the token. After installing, confirm data appears in the dashboard Website tab within a minute of the first visit

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": {
      "productKey": "<productKey>"
    },
    "name": "get_analytics_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
productKeyYesThe product key (see list_products)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this as a safe, non-destructive, closed-world read, and the description adds real behavioral detail: the token is pre-embedded, two lines must be inserted, and verification happens in a specific dashboard location within a minute. It stops short of stating the precise return shape (string vs. structured field containing both lines), which matters since there is no output schema.

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 dense sentences with the core artifact front-loaded, followed by the installation directive and the verification step. Minor waste: the parenthetical metric list is helpful but long, and the final sentence reads as an instruction without a clear trigger.

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 one-parameter read tool with no output schema, the description covers purpose, the installation obligation, the token-embedding detail, and post-install verification. The only gap is not spelling out the exact shape of the returned value.

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?

Only one parameter exists and schema description coverage is 100%, with the schema itself pointing to list_products for obtaining the key. The description adds no further meaning about productKey, so the baseline of 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 names the concrete artifact returned (the exact <script> tag that installs krawlup first-party analytics) and scopes what it measures (visitors, sessions, pages, referrers, countries, conversion goals). It implicitly separates itself from a bare token tool by noting the token is already embedded, but it never names the sibling, so an agent must infer the distinction.

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?

Clear operational context: install on the product's own website, insert both lines yourself, never ask the founder to paste the token, and verify data in the dashboard Website tab after the first visit. What is missing is explicit routing guidance such as when to call get_analytics_token instead of this tool.

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