Skip to main content
Glama

get_receipt_details

Retrieve a browser URL to view line items for a single in-store receipt when API item details are unavailable; requires authentication and a receipt ID from get_in_store_receipts.

Instructions

Get the URL to view a single in-store receipt's line items in the browser. Line items aren't accessible via the API — get_in_store_receipts gives store/date/amount/points which is enough for most queries. Requires authentication.

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": {
      "receiptId": "<receiptId>"
    },
    "name": "get_receipt_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptIdYesReceipt id from get_in_store_receipts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.5/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 disclosure burden and handles the important parts: it reveals that the return value is a viewing URL rather than line-item data, that line items are not obtainable through the API, and that authentication is required. It stops short of describing error behavior for an invalid or unknown receiptId, which keeps it from a 5.

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?

Three short sentences, front-loaded with the purpose, then the limitation, then the auth note. Every sentence supplies information an agent needs, with no restatement of the name or filler.

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 one-parameter read tool with no output schema and no annotations, the definition covers what is returned (a URL), what cannot be obtained through it (line-item data), the sibling that covers the common case, and the auth requirement. Nothing an agent needs to invoke it correctly is missing.

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 the single parameter is already documented as 'Receipt id from get_in_store_receipts,' matching the description's own reference to that sibling. The description adds no format, type, or constraint 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?

The description opens with a specific verb and resource: 'Get the URL to view a single in-store receipt's line items in the browser.' It also makes explicit what the tool is not (line-item data is unavailable via the API), which lets an agent separate it from the sibling get_in_store_receipts without consulting either 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?

It states both the condition for using this tool (you need a browser-viewable URL for line items) and the condition for not using it ('get_in_store_receipts gives store/date/amount/points which is enough for most queries'). The alternative is named explicitly, so routing is unambiguous.

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