Title97/100
Get receipt
The title clearly communicates the tool’s action and subject. Keep it concise.
Description87/100
RCO, the Record of Cleared Orders: the signed receipt of one cleared decision, by decision_id — what was cleared (a GTIN, an ISIN, a product id), for which actor class, under which rule and version, the records read, the signal, when, the issuing door, its signature and the ledger transaction id. Anyone, no account. No caller data, no PII, no amounts.
The description explains the capability, when to use it, and what to expect.
Inputs0/100
0 of 1 inputs have descriptions. Add descriptions to the missing inputs, including where to obtain IDs and how to supply values.
decision_id
Not provided
Missing description. Explain what this value means and how to supply it.
Annotations100/100
All four behavior hints are declared.
{
"title": "Get receipt",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Output schema71/100
Describe the returned fields so an agent can interpret the result.
View output schema
{
"type": "object",
"required": [
"decision_id",
"ledger"
],
"properties": {
"hub": {
"enum": [
"a2a-grocery",
"a2a-cosmetics",
"a2a-peptides"
],
"type": "string"
},
"gtin": {
"type": "string",
"pattern": "^[0-9]{14}$"
},
"rule": {
"type": "object",
"required": [
"id",
"version"
],
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "string"
}
},
"description": "the rule object and version the decision was made under"
},
"ledger": {
"type": "object",
"properties": {
"hash": {
"type": "string"
},
"host": {
"type": "string"
},
"transaction_id": {
"type": "string"
}
}
},
"market": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"object": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"id": {
"type": "string"
},
"type": {
"enum": [
"isin",
"ticker",
"lei",
"cmr",
"gtin",
"product",
"identifier"
],
"type": "string"
}
},
"description": "what was cleared: a GTIN, an ISIN, a product id"
},
"record": {
"type": [
"object",
"null"
],
"properties": {
"kid": {
"type": [
"string",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"fetch_date": {
"type": [
"string",
"null"
]
},
"source_page": {
"type": [
"string",
"null"
]
}
},
"description": "the gtinfetch answer the decision read: source_page, fetch_date, status, kid"
},
"result": {
"type": "string"
},
"signal": {
"type": "string",
"pattern": "^ACM-(000|200|300|403|404|451|500)$"
},
"rule_set": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"version": {
"type": [
"string",
"null"
]
}
}
},
"signature": {
"type": "object",
"properties": {
"alg": {
"type": "string"
},
"jws": {
"type": "string"
},
"kid": {
"type": "string"
},
"keyring": {
"type": "string"
}
},
"description": "the issuing door's detached JWS (EdDSA) over the receipt's canonical JSON (keys sorted, compact) without signature, signature_check, ledger, receipt_url, page"
},
"decided_at": {
"type": "string"
},
"actor_class": {
"type": "string",
"description": "for which actor class (never a person)"
},
"decision_id": {
"type": "string"
},
"reason_code": {
"type": "string"
},
"issuing_door": {
"type": "string"
},
"records_read": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
},
"as_of": {
"type": [
"string",
"null"
]
},
"sha256": {
"type": [
"string",
"null"
]
},
"signature": {
"type": [
"object",
"null"
]
}
}
},
"description": "the records read, each with its signature (or null where the record carries none)"
},
"hub_signature": {
"type": [
"object",
"null"
],
"properties": {
"alg": {
"type": "string"
},
"jws": {
"type": "string"
},
"kid": {
"type": "string"
}
},
"description": "the hub's detached JWS over the receipt (keys sorted, compact JSON), verified against the hub keyring"
}
},
"additionalProperties": true
}