Skip to main content
Glama

Ad clicks vs visits

get_click_visit_gap
Read-onlyIdempotent

The click-to-visit tracking check: each ad platform's LINK clicks (Google clicks; Meta link clicks, never Meta's all clicks) against the visits Nuira saw arrive from that platform's ads, per platform and per campaign. basis says where visits come from: pixel (the Nuira Pixel's visits whose channel is the platform's ads, counted from the day after the pixel went live; campaigns matched by Google's click report, then utm_campaign as a campaign id or name), ga4 (no pixel: GA4 sessions by source / medium, platform totals only, no campaigns) or none (neither: the check needs the Nuira Pixel; state no figure). status per platform and campaign: gap (at least 200 clicks, at least 7 days, visits under 75% of clicks), ok, lowVolume (under 200 clicks), tooEarly (under 7 days of pixel data), noClicks (the platform reported no click figure), unmatched (campaign only: over 10% of the platform's visits name no campaign Nuira can match, so one campaign is not judged). causes lists the likely causes of a gap, most likely first: untaggedClickIds (Meta visits that carried Meta's click id but no paid UTM read as organic social; untaggedClickIdVisits counts them, some may be organic posts), missingTags (ad links without UTMs, or Google auto-tagging off), redirect (a redirect drops the parameters), slowPage (people leave before the page loads the tag), consent (a cookie banner holds the pixel back; some gap from this is normal). Explain them in plain words as LIKELY causes, never as a diagnosis. A ratio above 1 is not a fault (a visitor can return through the same ad link). The window is complete days ending yesterday (window), after the pixel's activation (pixelSince). Use for questions about lost ad clicks, clicks vs sessions, broken UTMs, or whether ad traffic reaches the store. This is the Clicks vs visits card on Marketing › Atribución. Nuira never changes the ad accounts. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_click_visit_gap"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."New value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
    • changedInput schema / properties / to / description
      Previous value: -"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."New value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days."
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare this read-only, idempotent and closed-world, and the description goes well beyond them: it documents the basis modes (pixel/ga4/none) with the consequence of each, the full status vocabulary (gap, ok, lowVolume, tooEarly, noClicks, unmatched) with thresholds, the ordered causes list with what each means, and the rule that a ratio above 1 is not a fault. It confirms no ad-account mutation and explains that gaps must be framed as LIKELY causes, never a diagnosis.

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?

It is front-loaded (purpose and definition first, statuses and causes after), and most of the density earns its place given the enum-like vocabularies being described. However, the closing paragraph restates 'both or neither, never after today, default period' almost verbatim from the from/to schema descriptions, which is clear duplication for a two-parameter read tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the return-value burden and does so: it explains the window/pixelSince semantics, the basis field's provenance, per-platform and per-campaign status, and the causes array. For a read-only diagnostic tool of this complexity, an agent has everything needed to call it and interpret the response.

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 the baseline is 3, but the description adds real meaning: from/to are inclusive, must be sent together or not at all, can never be after today, and — most importantly — override the default period only when supplied, where the default is 'the one on the operator's screen, else the last 30 days.' That default-resolution behavior is not in the schema and materially affects correct invocation.

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 verb+resource pair — comparing each ad platform's LINK clicks against the visits Nuira attributed to that platform's ads, per platform and per campaign — and explicitly narrows the click definition (Google clicks; Meta link clicks, never Meta's all clicks). It also anchors the tool to a concrete UI surface ('the Clicks vs visits card on Marketing › Atribución') and to concrete question types, so an agent can separate it from the surrounding reporting siblings.

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

Usage Guidelines5/5

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

Gives explicit when-to-use triggers: 'Use for questions about lost ad clicks, clicks vs sessions, broken UTMs, or whether ad traffic reaches the store.' It also encodes a hard routing rule for the period parameters — a named month, a week, or two operator-supplied dates MUST be sent here, otherwise the default period is read — which is exactly the kind of conditional guidance that prevents wrong calls.

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