Skip to main content
Glama

Ręczniki Haftowane

get_ai_traffic_report

Read-onlyIdempotent

Analityka ruchu sklepu z Matomo (tylko agregaty). Wizyty, akcje, unikalni AI, i platformy. Bez argumentów raportuje wczoraj w Europe/Warsaw. period last_1/last_7/last_30 zamiast dat; compare=previous_period porównuje z poprzednim oknem. data_status rozróżnia zero od braku danych; unikalnych z wielu dni nie sumuj. Nazwę platformy podawaj tylko z by_provider; unknown = nieznana. Podaj źródło i niepewności z metadata.attribution_caveats. AI referrals to natywny kanał Matomo; kampanie AI są osobno, boty i cytowania nie są mierzone.

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

Input Schema

NameRequiredDescriptionDefault
periodNoOstatnie 1/7/30 dni do wczoraj w Europe/Warsaw; wyklucza date_from/date_to
compareNoPorównanie z poprzednim oknem tej samej długości; domyślnie nonenone
date_toNoKoniec zakresu YYYY-MM-DD, domyślnie wczoraj; zakres do 31 dni
breakdownNosummary
date_fromNoPoczątek zakresu YYYY-MM-DD, domyślnie wczoraj w Europe/Warsaw

Output Schema

NameRequiredDescriptionDefault
dailyNo
errorNoTylko przy isError: { code, message, ... }
totalsNo
metadataNo
comparisonNo
data_statusNoRuch AI, potwierdzone zero AI lub brak danych (nieznane)
ai_referralsNo
landing_pagesNo
other_sourcesNo
schema_versionNo
not_counted_as_aiNo
ai_tagged_campaignsNo
ai_mentions_citationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedOutput schema / properties / ai_referrals / properties / by_provider / items / properties / conversions
      Removed value: -{
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / ai_referrals / properties / by_provider / items / properties / orders
      Removed value: -{
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • changedOutput schema / properties / ai_referrals / properties / by_provider / items / required
      Previous value: -[
      -  "provider",
      -  "label",
      -  "visits",
      -  "actions",
      -  "unique_visitors",
      -  "conversions",
      -  "orders"
      -]New value: +[
      +  "provider",
      +  "label",
      +  "visits",
      +  "actions",
      +  "unique_visitors"
      +]
    • removedOutput schema / properties / conversions
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "ai": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "conversions": {
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "orders": {
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "conversions",
      -        "orders"
      -      ],
      -      "type": "object"
      -    },
      -    "all": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "conversions": {
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "orders": {
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "conversions",
      -        "orders"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "all",
      -    "ai"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / daily / items / properties / ai_orders
      Removed value: -{
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • changedOutput schema / properties / daily / items / required
      Previous value: -[
      -  "date",
      -  "visits",
      -  "ai_visits",
      -  "ai_orders",
      -  "ai_actions",
      -  "ai_unique_visitors",
      -  "status"
      -]New value: +[
      +  "date",
      +  "visits",
      +  "ai_visits",
      +  "ai_actions",
      +  "ai_unique_visitors",
      +  "status"
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / error / properties / details
      Added value: +{
      +  "description": "Powody odrzucenia kolorów (invalid_input z get_creator_link)",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "allowed_option_ids": {
      +        "description": "Aktywne option_id typu slotu; wybierz jedno z nich",
      +        "items": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "type": "array"
      +      },
      +      "asset_type_id": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "field": {
      +        "description": "Np. slots[0].option_id",
      +        "type": "string"
      +      },
      +      "given": {
      +        "description": "Podany option_id",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "enum": [
      +          "unknown_option",
      +          "inactive",
      +          "type_mismatch",
      +          "slot_out_of_range",
      +          "no_color_choice"
      +        ],
      +        "type": "string"
      +      },
      +      "slot_position": {
      +        "description": "Pozycja slotu 1-based",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "slot_position",
      +      "asset_type_id",
      +      "reason",
      +      "given",
      +      "allowed_option_ids",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / error / properties / hint
      Added value: +{
      +  "description": "Wskazówka naprawy (invalid_input), np. lista nieznanych tagów",
      +  "type": "string"
      +}
  4. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses important behavioral semantics: data_status distinguishes zero from missing, uniques must not be summed across days, platform names should come only from by_provider, and attribution caveats should be surfaced. It also states measurement limits (AI campaigns separate, bots and citations not measured), which is exactly the kind of context an agent needs to interpret results correctly.

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 description is dense but front-loads the core purpose and then layers usage rules and interpretation caveats. It mixes parameter guidance with output-interpretation guidance, and some period/compare wording duplicates the schema, but nearly every clause carries useful operational meaning.

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?

An output schema exists, so return values need not be explained, and the description goes further by explaining data_status, attribution caveats, and measurement limits. The main gap is the unexplained 'breakdown' parameter, which is absent from both the schema description and the tool description, leaving the summary/day choice ambiguous.

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 80%, so most parameters are already documented. The description largely repeats schema semantics for period and compare (last_1/last_7/last_30, previous_period) rather than adding new meaning, and it never explains the 'breakdown' parameter, which is the one lacking a schema description. 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?

The description states a specific verb+resource: Matomo shop traffic analytics limited to aggregates, covering visits, actions, unique AI, and platforms. It also scopes out raw data, AI campaigns, bots, and citations, so an agent knows exactly what this tool does and does not return.

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?

It gives clear default behavior (no arguments → yesterday in Europe/Warsaw) and explains how to choose between period shortcuts and explicit dates, plus when compare=previous_period applies. There are no sibling analytics tools to route away from, so explicit exclusions are less necessary, but the description does not frame when to prefer this report over any other data source.

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