Skip to main content
Glama

QR Code Dinosaur

Get scan analytics

get_scan_analytics
Read-onlyIdempotent

Free. Returns how many times a QR code was scanned, in total and per UTC day. Needs no API key: the counts for a code can be read by anyone with its ID. If the code's owner does not have Pro ($9/month), only the last 7 days are included (historyDays in the result); with Pro, the full history is.

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": {
      "id": "<id>"
    },
    "name": "get_scan_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesQR code ID from create_qr_code or list_qr_codes, e.g. "QR-ABCD1234EF".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"QR code ID from create_qr_code, e.g. \"QR-ABCD1234EF\"."New value: +"QR code ID from create_qr_code or list_qr_codes, e.g. \"QR-ABCD1234EF\"."
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, yet the description still adds material facts: public read access by ID alone, no API key requirement, and the Pro gating that truncates output to the last 7 days via the historyDays field. Those are non-obvious output-shaping and access traits that annotations cannot express.

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?

Three sentences, each carrying distinct information, front-loaded with "Free" as the first qualifier. No filler, though the terse fragment style and the jump from return shape to billing gating could be sequenced slightly more cleanly.

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?

For a single-parameter read tool with annotations covering safety, the description explains what comes back, how it is aggregated, and how plan status alters the window. It leaves error behavior for an invalid or missing ID unaddressed, which is a minor gap but not a blocking one.

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?

Only one parameter with 100% schema description coverage, so the schema already fully documents the code ID and its origin. The description restates the access model around the ID but adds no syntax or format meaning beyond the schema. Baseline 3 applies.

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?

Specific verb and resource: "Returns how many times a QR code was scanned, in total and per UTC day." That is clearly distinct from siblings like get_plan_status or update_destination, and states both aggregation levels up front.

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?

The description gives clear context for use: it is free, needs no API key, and only requires a code ID, which tells an agent it is callable at any time without setup. It stops short of naming when-not-to-use conditions or pointing at alternative tools for other analytics views, so it is clear but not exhaustive.

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