Skip to main content
Glama

Diagnose a return scan

diagnose_return_scan
Read-only

Replays the mobile app's return-scan lookup for a code and says what the scanner shows: found, already received, Amazon FBA (nothing to receive), several shipments match, or not found with likely causes. Use for 'scan says return not found' or 'can't receive this return'.

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": {
      "code": "<code>"
    },
    "name": "diagnose_return_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe scanned or typed code: reverse AWB / tracking id, order id, or marketplace return id.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is known. The description adds genuine behavioral context beyond that: it mirrors the mobile scanner's lookup logic and returns a fixed set of diagnostic buckets, including probable causes for the not-found case. It does not discuss side effects or freshness of the underlying state, but nothing contradicts the annotations.

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, front-loaded with the action and outcome list, followed by the concrete user-reported situations that should trigger it. Every clause carries information; nothing is redundant with the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, read-only diagnostic tool with an output schema, this covers what an agent needs: what is being simulated, the possible verdicts, and the symptom-based triggers. The return structure is handled by the output schema and the safety profile by annotations, so no critical gap remains.

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 100% and the single 'code' parameter is already documented as a reverse AWB / tracking id, order id, or marketplace return id. The description only refers to 'a code' and adds no format, normalization, or validation detail beyond the schema, so the baseline of 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 and resource: it replays the mobile app's return-scan lookup for a given code. It then enumerates the exact outcome categories the scanner surfaces (found, already received, Amazon FBA, several shipments match, not found with likely causes), which makes the tool's scope concrete and clearly different from a status-fetching 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?

The description gives explicit trigger phrases — 'scan says return not found' and 'can't receive this return' — so an agent knows when to reach for it. It does not name alternatives or state when not to use it (e.g. versus a receipt-status tool), which keeps it short of a 5.

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