Skip to main content
Glama

get_analytics_token

Read-only

The raw analytics site token for one product; the data-site value inside the krawlup analytics tag. The token is not a secret (it travels in the tagged page source by design) and is already embedded inside the snippet returned by get_analytics_snippet; never ask the founder to paste the token. Use this for hand-written tags, the @krawlup/analytics-tag npm package, or custom integrations

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_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
productKeyYesThe product key (see list_products)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and closed-world, so the safety profile is covered. The description adds genuinely useful behavioral context the annotations cannot: the token is not a secret because it ships in page source, and it is already present in the snippet output, which prevents an unnecessary round-trip or a request to the user.

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?

The core definition is front-loaded in the first clause, and each following clause carries real value (non-secret status, snippet overlap, intended integrations). It runs long as a semicolon chain and could be split into sentences for scanability, but nothing is 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 no output schema, the description correctly describes the return value as the raw data-site token. For a single-parameter read tool, the only minor gap is what happens when the product key is invalid or analytics is not configured.

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% and the single productKey parameter is documented in the schema, including the pointer to list_products. The description adds only mild framing ('for one product') beyond the schema, so baseline 3 is appropriate.

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 resource ('the raw analytics site token for one product') and pins it to a concrete artifact ('the data-site value inside the krawlup analytics tag'). It also implicitly distinguishes itself from get_analytics_snippet by noting the token is already embedded in that sibling's output.

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?

Gives clear usage contexts: hand-written tags, the @krawlup/analytics-tag npm package, and custom integrations, plus an explicit anti-pattern ('never ask the founder to paste the token'). It does not explicitly say when to prefer get_analytics_snippet instead, though the relationship is strongly 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