Skip to main content
Glama

Inspect Invalid Traffic Quality

get_traffic_quality
Read-onlyIdempotent

Audit site traffic quality by returning verdict counts, bot-score histograms, fired signals, anomalies, and flagged sessions for bot and fraud diagnostics.

Instructions

Return the 3-layer IVT quality audit for a site: verdict counts, bot-score histogram, fired signals, anomalies, and flagged session_ids. Use for bot/fraud diagnostics; to inspect one session or preview blocking thresholds, use get_session_timeline or get_adguard_simulation. Read-only via read token.

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": {
      "site_id": "<site_id>"
    },
    "name": "get_traffic_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoLookback window relative to now (default "7d").7d
site_idYesPrismUV site slug identifier (e.g. "prismuv-abc123") returned by list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / period / default
      Added value: +"7d"
    • addedInput schema / properties / period / description
      Added value: +"Lookback window relative to now (default \"7d\")."
    • addedInput schema / properties / site_id / description
      Added value: +"PrismUV site slug identifier (e.g. \"prismuv-abc123\") returned by list_sites."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered; the description still adds the auth requirement ("Read-only via read token") and the shape of the payload. It does not mention pagination or limits on the flagged session_ids list, which for a potentially large audit result would be useful additional context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Two sentences, each fully load-bearing: the first defines the payload, the second routes between this tool and its alternatives, with the read-only note last. No restatement of the name or title and no 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 carries the burden of describing the return payload and it does so concretely, plus it covers auth and safety. The only residual gap is the unexplained "3-layer" framing and the absence of any note on result size or limits.

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 description coverage is 100% and both parameters are already documented, including the period enum with its default. The description adds no syntax, format, or interaction detail between site_id and period, so it sits at the baseline of 3 where the schema does the work.

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 and resource ("Return the 3-layer IVT quality audit for a site") and then enumerates exactly what comes back: verdict counts, bot-score histogram, fired signals, anomalies, flagged session_ids. It also names the adjacent tools it is not (get_session_timeline, get_adguard_simulation), so an agent can route without opening a schema.

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 an explicit when-to-use ("bot/fraud diagnostics") plus two named alternatives each tied to a condition: single-session inspection goes to get_session_timeline, threshold previewing goes to get_adguard_simulation. Nothing about routing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.