Skip to main content
Glama

Japan Agent API

Get receipt of a paid call

get_receipt
Read-only

Re-fetch the stored result of a settled paid call (e.g. jp_trip_impact_check) by its receipt_id, for when the response was lost after payment. Free. Unknown or unsettled receipt ids return RECEIPT_NOT_FOUND. Results are kept for 90 days after settlement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
receipt_idYesThe receipt_id returned with a paid result ("rcpt_" + 64 hex characters).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolYesName of the paid tool that produced the result.
termsYesURL of the terms of service.
resultYesThe stored result, exactly as returned by the paid call.
paymentYes
provenanceYesFreshness receipts for every upstream source used.
receipt_idYesReceipt id of the settled paid call ("rcpt_" + 64 hex). Use with get_receipt.
settled_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "payment": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "network": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "transaction": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "network",
      +        "transaction"
      +      ],
      +      "type": "object"
      +    },
      +    "provenance": {
      +      "description": "Freshness receipts for every upstream source used.",
      +      "items": {
      +        "additionalProperties": {},
      +        "description": "Freshness receipt for one upstream source.",
      +        "properties": {
      +          "content_sha256": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "fetch_status": {
      +            "description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values).",
      +            "enum": [
      +              "found",
      +              "empty",
      +              "stale",
      +              "unavailable",
      +              "unsupported"
      +            ],
      +            "type": "string"
      +          },
      +          "parser_version": {
      +            "type": "string"
      +          },
      +          "processed_by": {
      +            "type": "string"
      +          },
      +          "retrieved_at": {
      +            "description": "When this service retrieved the upstream data (null if unknown).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source": {
      +            "additionalProperties": {},
      +            "description": "Publisher and URL of the upstream document or dataset.",
      +            "properties": {
      +              "publisher": {
      +                "type": "string"
      +              },
      +              "url": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "publisher",
      +              "url"
      +            ],
      +            "type": "object"
      +          },
      +          "upstream_updated_at": {
      +            "description": "Update time stated by the upstream, or null when it states none.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "source",
      +          "upstream_updated_at",
      +          "retrieved_at",
      +          "content_sha256",
      +          "parser_version",
      +          "fetch_status",
      +          "processed_by"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "receipt_id": {
      +      "description": "Receipt id of the settled paid call (\"rcpt_\" + 64 hex). Use with get_receipt.",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "The stored result, exactly as returned by the paid call."
      +    },
      +    "settled_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "terms": {
      +      "description": "URL of the terms of service.",
      +      "type": "string"
      +    },
      +    "tool": {
      +      "description": "Name of the paid tool that produced the result.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "receipt_id",
      +    "tool",
      +    "settled_at",
      +    "payment",
      +    "result",
      +    "provenance",
      +    "terms"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources