Skip to main content
Glama

get_ai_attribution

Read-only

A project's AI visibility next to the visits and conversions AI assistants send to the client's website, from the client's connected GA4 property: per-day visibility beside AI-referred sessions, conversions and revenue, window totals, the AI-referred conversion rate against the site-wide rate (with a ± of one standard error), and the correlation between visibility and the chosen metric over the days that have both (from 20 such days, with a 95 % interval). availability states when GA4 is not connected, not readable or not scanned, and those figures are then null. The GA4 caveats (undercounting, tracking changes, correlation) arrive in howToRead.

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

Input Schema

NameRequiredDescriptionDefault
daysNoWindow in days ending today (default 90, max 365).
dateToNoLast day, YYYY-MM-DD (UTC, inclusive).
metricNoWhat to correlate visibility with (default conversions).
sourceNoData source: "blended" (default — CrunchJunkie scans plus imported Peec data, an engine both track counted once with the CrunchJunkie scan winning), "native" (CrunchJunkie scans only) or "peec" (imported Peec data only).
clientIdNoClient id — uses the AI-Visibility project its Overview opens in the app (the newest).
dateFromNoFirst day, YYYY-MM-DD (UTC, inclusive); with dateTo it replaces days.
projectIdNoAI-Visibility project id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / dateFrom
      Added value: +{
      +  "description": "First day, YYYY-MM-DD (UTC, inclusive); with dateTo it replaces days.",
      +  "type": "string"
      +}
    • addedInput schema / properties / dateTo
      Added value: +{
      +  "description": "Last day, YYYY-MM-DD (UTC, inclusive).",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • changedInput schema / properties / source / description
      Previous value: -"Data source: \"blended\" (default — your scans plus imported Peec data, an engine both track counted once with your scan winning), \"native\" (your scans only) or \"peec\" (imported Peec data only)."New value: +"Data source: \"blended\" (default — CrunchJunkie scans plus imported Peec data, an engine both track counted once with the CrunchJunkie scan winning), \"native\" (CrunchJunkie scans only) or \"peec\" (imported Peec data only)."
  4. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description goes well beyond them: it enumerates the returned figures, discloses the minimum of 20 overlapping days and 95% interval for correlation, explains that availability drives nulls when GA4 is not connected/readable/scanned, and points to howToRead for caveats. It omits limits on cost, latency or result size, which is the only meaningful gap for a read tool with 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded on the returned data, which is good, but it is delivered as one very long run-on sentence that chains totals, statistical caveats and availability semantics together. A reader must re-parse it to extract the null/availability contract; splitting it into two or three sentences would cost nothing and gain clarity.

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 seven optional parameters, no output schema and rich derived statistics, the description carries the return-value burden well: it explains each reported figure, the correlation threshold, the null condition and where caveats live. Only the shape of howToRead/availability and any pagination or truncation of per-day rows are left unstated.

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%, so the schema already documents every parameter, including the blended/native/peec enums and the clientId/projectId resolution. The description adds only marginal meaning beyond that, mainly tying the metric parameter to the correlation output and restating the client-side availability condition; it adds no format or default guidance the schema lacks.

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 a concrete resource set: per-day AI visibility joined with GA4-referred sessions, conversions and revenue, plus totals, conversion-rate comparison and correlation. That is specific enough to distinguish it from visibility-oriented siblings like get_ai_visibility_metrics, but it never explicitly names a sibling or contrasts scopes, 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 Guidelines2/5

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

There is no when-to-use guidance: no statement of the question this answers that a sibling does not, and no exclusions. The only conditional language (availability, the dateFrom/dateTo vs days override) is about behavior, not about choosing this tool over alternatives.

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