Skip to main content
Glama

get_receipt_detail

Read-onlyIdempotent

Retrieve full or projected details for a hosted receipt by receipt_id. Supports targeted views ('all', 'failures_only', 'files_only', 'summary') to prevent chat context bloat. Requires authorization.

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": {
      "receipt_id": "<receipt_id>"
    },
    "name": "get_receipt_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNoProjection view: 'failures_only' (recommended for debugging - drops passing checks to save context), 'files_only' (files touched and diffs), 'summary' (compact status & check counts), or 'all' (complete receipt). Default 'all'.
receipt_idYesThe 64-character hex receipt ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower; the description adds two pieces of context the annotations do not: an authorization prerequisite and the context-bloat tradeoff of the projection views. It omits what happens on a missing/unknown receipt_id, 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?

Two sentences, front-loaded with the verb, resource and key, followed by the projection rationale and the authorization note. No filler and nothing repeated.

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 two-parameter read tool with full annotation coverage, the definition covers purpose, the projection mechanism, and the auth prerequisite. Since there is no output schema, a brief hint at what 'details' contains would have closed the last gap, but the enum documentation in the schema largely covers it.

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 view enum is documented in detail in the schema itself (including per-value meaning and the default), so the description adds little beyond restating that projections exist. Baseline 3 is appropriate when the schema carries the parameter semantics.

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 and resource ('Retrieve full or projected details for a hosted receipt') plus the lookup key ('by receipt_id'), which implicitly separates it from the list_receipts sibling. It stops short of explicitly naming or contrasting any sibling, so it lands at clear-but-undifferentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage through the projection views ('to prevent chat context bloat'), signaling that narrow views are preferred in constrained contexts, and it flags the authorization requirement. However, it never says when to reach for this tool versus list_receipts or query_failure_ledger, and no exclusions are stated.

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