Skip to main content
Glama

issue_api_receipt

Idempotent

Persist a signed commitment to a client-declared HTTP exchange. Public price: 0.002 USDC via x402 when enabled; otherwise requires pilot issuance permission. Preserve the event, idempotency key and original payment authorization on retries. This does not prove independent observation or the truth of the response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "event": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "apiId": {
      -          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -          "type": "string"
      -        },
      -        "attestation": {
      -          "const": "client_declared",
      -          "type": "string"
      -        },
      -        "bodyEncoding": {
      -          "const": "application_bytes",
      -          "type": "string"
      -        },
      -        "completedAt": {
      -          "format": "date-time",
      -          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
      -          "type": "string"
      -        },
      -        "exchangeId": {
      -          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -          "type": "string"
      -        },
      -        "headerEncoding": {
      -          "const": "jcs-selected-headers-v1",
      -          "type": "string"
      -        },
      -        "method": {
      -          "enum": [
      -            "GET",
      -            "HEAD",
      -            "POST",
      -            "PUT",
      -            "PATCH",
      -            "DELETE",
      -            "OPTIONS"
      -          ],
      -          "type": "string"
      -        },
      -        "requestBodyHash": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "algorithm": {
      -                  "const": "sha256",
      -                  "type": "string"
      -                },
      -                "digest": {
      -                  "pattern": "^[a-f0-9]{64}$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "algorithm",
      -                "digest"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "requestHeadersHash": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "algorithm": {
      -              "const": "sha256",
      -              "type": "string"
      -            },
      -            "digest": {
      -              "pattern": "^[a-f0-9]{64}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "algorithm",
      -            "digest"
      -          ],
      -          "type": "object"
      -        },
      -        "responseBodyHash": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "algorithm": {
      -                  "const": "sha256",
      -                  "type": "string"
      -                },
      -                "digest": {
      -                  "pattern": "^[a-f0-9]{64}$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "algorithm",
      -                "digest"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "responseHeadersHash": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "algorithm": {
      -              "const": "sha256",
      -              "type": "string"
      -            },
      -            "digest": {
      -              "pattern": "^[a-f0-9]{64}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "algorithm",
      -            "digest"
      -          ],
      -          "type": "object"
      -        },
      -        "startedAt": {
      -          "format": "date-time",
      -          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
      -          "type": "string"
      -        },
      -        "status": {
      -          "maximum": 599,
      -          "minimum": 200,
      -          "type": "integer"
      -        },
      -        "targetHash": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "algorithm": {
      -              "const": "sha256",
      -              "type": "string"
      -            },
      -            "digest": {
      -              "pattern": "^[a-f0-9]{64}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "algorithm",
      -            "digest"
      -          ],
      -          "type": "object"
      -        },
      -        "version": {
      -          "const": "datoka.api.exchange.v1",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "version",
      -        "attestation",
      -        "apiId",
      -        "exchangeId",
      -        "method",
      -        "status",
      -        "startedAt",
      -        "completedAt",
      -        "targetHash",
      -        "requestBodyHash",
      -        "responseBodyHash",
      -        "requestHeadersHash",
      -        "responseHeadersHash",
      -        "bodyEncoding",
      -        "headerEncoding"
      -      ],
      -      "type": "object"
      -    },
      -    "receipt": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "algorithm": {
      -          "const": "Ed25519",
      -          "type": "string"
      -        },
      -        "body": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "format": "uuid",
      -              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -              "type": "string"
      -            },
      -            "issuedAt": {
      -              "format": "date-time",
      -              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
      -              "type": "string"
      -            },
      -            "issuer": {
      -              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -              "type": "string"
      -            },
      -            "keyId": {
      -              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -              "type": "string"
      -            },
      -            "previous": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[a-f0-9]{64}$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "request": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "chain": {
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -                  "type": "string"
      -                },
      -                "eventType": {
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -                  "type": "string"
      -                },
      -                "scope": {
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -                  "type": "string"
      -                },
      -                "subject": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "algorithm": {
      -                      "const": "sha256",
      -                      "type": "string"
      -                    },
      -                    "digest": {
      -                      "pattern": "^[a-f0-9]{64}$",
      -                      "type": "string"
      -                    },
      -                    "encoding": {
      -                      "enum": [
      -                        "jcs",
      -                        "bytes"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "algorithm",
      -                    "encoding",
      -                    "digest"
      -                  ],
      -                  "type": "object"
      -                }
      -              },
      -              "required": [
      -                "scope",
      -                "chain",
      -                "eventType",
      -                "subject"
      -              ],
      -              "type": "object"
      -            },
      -            "sequence": {
      -              "exclusiveMinimum": 0,
      -              "maximum": 9007199254740991,
      -              "type": "integer"
      -            },
      -            "version": {
      -              "const": "datoka.receipt.v1",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "version",
      -            "id",
      -            "issuer",
      -            "keyId",
      -            "issuedAt",
      -            "request",
      -            "sequence",
      -            "previous"
      -          ],
      -          "type": "object"
      -        },
      -        "signature": {
      -          "pattern": "^[A-Za-z0-9_-]{86}$",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "body",
      -        "algorithm",
      -        "signature"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "event",
      -    "receipt"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and openWorldHint=true, but the description adds non-obvious behavior: the cost/permission gate, the retry requirement to preserve the event, idempotency key and original payment authorization, and the scope caveat that it does not prove independent observation or response truth. That is substantive context beyond the structured fields, though it omits what happens on duplicate keys or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with the core action before cost, retry and scope caveats. Every sentence carries distinct information, though the price/permission clause is slightly compressed and could be clearer.

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

Completeness3/5

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

For a write tool with a deep nested schema and no output schema, the description covers cost, permissions, retry semantics and scope limits reasonably well. It still leaves open what the call returns (e.g. a receipt identifier) and how idempotency-key conflicts are handled, so an agent has gaps before invoking it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, but it only names 'event' and 'idempotency key' generically. It never explains the event's structure (the many required hash fields, the fixed 'client_declared' attestation, encodings) and even references an 'original payment authorization' that does not appear as a parameter, adding little semantics over the schema itself.

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?

The description uses a specific verb and resource ('Persist a signed commitment to a client-declared HTTP exchange'), which clearly separates it from prepare_api_exchange and verify_api_receipt. It stops short of explicitly naming those siblings or stating how it differs from them, so it is clear but not fully differentiated.

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?

It gives a real availability condition ('0.002 USDC via x402 when enabled; otherwise requires pilot issuance permission') and a retry directive, which is useful usage context. However, it never states when an agent should call this versus verify_api_receipt or prepare_api_exchange, so the routing guidance is only implied.

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