Skip to main content
Glama

qrtap_group_stats

Aggregate QR code scan statistics for an entire group in one report, including code count, total scans, per-day series, and device split—no need to query codes individually.

Instructions

Aggregated scan statistics for a WHOLE group of codes at once: how many codes are in the group plus the combined total, per-day series and device split. This is the report for a batch — all branches, all tables, all partner stickers — without iterating over codes one by one.

Input Schema

NameRequiredDescriptionDefault
toNoOptional range end (exclusive), ISO 8601.
fromNoOptional range start (inclusive), ISO 8601.
groupYesGroup name the codes were created with (partner | equipment | event_menu | bag_insert | training).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it delivers the most important behavioral fact: what the report contains (code count, combined total, per-day series, device split), which effectively substitutes for the missing output schema. It implies a safe read ('stats') but does not explicitly state read-only behavior or permission requirements; for a read-only aggregation tool this is a minor omission, not a gap.

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 tight sentences, front-loaded with the core purpose and followed by a clarifying use-case/alternative sentence. The illustrative examples ('all branches, all tables, all partner stickers') earn their place by making the batch scope concrete.

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?

Absent an output schema, the description compensates by enumerating the return contents (count, combined total, per-day series, device split), and all three params are schema-documented. Minor missing pieces remain: behavior when the group name is unknown/invalid, and whether from/to default to a specific window.

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%, so all three parameters (group, from, to) are already fully documented in the schema, including the group enum values and ISO 8601 date semantics. The description adds conceptual context (the group defines the batch being aggregated) but no parameter-specific syntax or defaults beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb+resource: aggregated scan statistics for a whole group of codes, and specifies exactly what the aggregate includes (code count, combined total, per-day series, device split). It distinguishes itself from per-code querying by saying it works 'without iterating over codes one by one', which implicitly contrasts with the single-code sibling qrtap_code_stats, though it never names that sibling.

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?

Explicitly frames the use case: 'the report for a batch — all branches, all tables, all partner stickers — without iterating over codes one by one', which tells the agent when to pick this over per-code stats. It stops short of naming qrtap_code_stats as the alternative or stating explicit exclusions (e.g., single-code lookup).

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