Skip to main content
Glama

QRStuff MCP Server

Get top scanner

get_top_scanner
Read-onlyIdempotent

Use this when the user asks which of their QR codes was scanned most, for the account or one project (not for a single code). Read-only.

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

Input Schema

NameRequiredDescriptionDefault
scopeNoScope: account or project. Qrcode scope not supported.account
end_dateNoEnd of the period, YYYY-MM-DD. Leave empty for today. Always send it when the user names a period.
idprojectNoProject ID from `list_projects`. Required when scope is project or qrcode. Never guess an ID.
start_dateNoStart of the period, YYYY-MM-DD. Leave empty for the last 30 days. Always send it when the user names a period.

Output Schema

NameRequiredDescriptionDefault
nameNo
deviceNo
regionNo
idqrcodeNo
total_scanNo
country_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / end_date / description
      Previous value: -"End date YYYY-MM-DD. REQUIRED when the user asks for a specific period; do not omit if they mention dates. Defaults to today only when no range given."New value: +"End of the period, YYYY-MM-DD. Leave empty for today. Always send it when the user names a period."
    • changedInput schema / properties / idproject / description
      Previous value: -"Project ID. Required when scope=project or qrcode."New value: +"Project ID from `list_projects`. Required when scope is project or qrcode. Never guess an ID."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start date YYYY-MM-DD. REQUIRED when the user asks for a specific period; do not omit if they mention dates. Defaults to 30 days ago only when no range given."New value: +"Start of the period, YYYY-MM-DD. Leave empty for the last 30 days. Always send it when the user names a period."
  2. First observed

TDQS

A3.8/5.0
Behavior2/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description's only behavioral note, 'Read-only,' merely restates readOnlyHint and adds no new context such as what is returned when no scans exist or how the default 30-day window affects results.

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?

A single sentence with the trigger condition front-loaded, followed by the scope bound and the exclusion. Every clause carries information; nothing is padding.

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 an output schema, full annotation coverage, and 100% parameter documentation, the description only needs to convey purpose and scope, which it does. The one remaining gap is that it never signals the default 30-day window or that scope defaults to account, leaving the agent to find those in the schema.

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 each parameter already documents its format, defaults, and the 'always send it when the user names a period' rule. The description's scope mention (account or one project, not a single code) duplicates the scope enum documentation rather than adding new semantics, so 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?

States a specific verb+resource ('which of their QR codes was scanned most') and bounds it explicitly to the account or one project, with a parenthetical excluding the single-code case. This lets an agent separate it from siblings like get_qrcode_scans or get_top_performing_location without opening any schema.

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?

Gives a concrete trigger ('Use this when the user asks which of their QR codes was scanned most') and an exclusion ('not for a single code'), which points the agent away from single-code scan tools. It stops short of naming the specific alternative tools to use instead, so it is clear context rather than full routing guidance.

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