Skip to main content
Glama

Issue Agent Receipt

issue_agent_receipt
Idempotent

Persist a signed execution declaration receipt. Public price: 0.002 USDC via x402 on the advertised network. Preserve event, idempotencyKey and payment authorization on retries. Signed declarations do not independently prove execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYesCommitment-only declaration of one execution step.
idempotencyKeyYesPersist this unique key before purchase. Reuse unchanged with the same input and payment authorization after interruption.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / event / properties / version / description
      Added value: +"Declaration format version; preserve this literal."
  2. Changed16 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / event / description
      Added value: +"Commitment-only declaration of one execution step."
    • addedInput schema / properties / event / properties / agentId / description
      Added value: +"Identifier of the declaring agent, not an independently verified identity."
    • addedInput schema / properties / event / properties / completedAt / description
      Added value: +"Declared completion in UTC with milliseconds, at or after start."
    • addedInput schema / properties / event / properties / inputHash / description
      Added value: +"SHA-256 of the exact input bytes, computed locally. Never send raw input."
    • addedInput schema / properties / event / properties / inputHash / properties / algorithm / description
      Added value: +"Hash algorithm."
    • addedInput schema / properties / event / properties / inputHash / properties / digest / description
      Added value: +"64 lowercase hexadecimal characters; SHA-256 of exact bytes."
    • addedInput schema / properties / event / properties / outcome / description
      Added value: +"Outcome declared by the caller; Datoka does not observe execution."
    • addedInput schema / properties / event / properties / outputHash / description
      Added value: +"SHA-256 of exact output bytes, computed locally. Never send raw output."
    • addedInput schema / properties / event / properties / outputHash / properties / algorithm / description
      Added value: +"Hash algorithm."
    • addedInput schema / properties / event / properties / outputHash / properties / digest / description
      Added value: +"64 lowercase hexadecimal characters; SHA-256 of exact bytes."
    • addedInput schema / properties / event / properties / runId / description
      Added value: +"Stable identifier for this execution run."
    • addedInput schema / properties / event / properties / startedAt / description
      Added value: +"Declared start time in UTC, with milliseconds."
    • addedInput schema / properties / event / properties / stepId / description
      Added value: +"Stable identifier of the step within the run."
    • addedInput schema / properties / event / properties / tool / description
      Added value: +"Tool or operation identifier declared by the caller."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Persist this unique key before purchase. Reuse unchanged with the same input and payment authorization after interruption."
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "event": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "agentId": {
      -          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -          "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"
      -        },
      -        "inputHash": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "algorithm": {
      -              "const": "sha256",
      -              "type": "string"
      -            },
      -            "digest": {
      -              "pattern": "^[a-f0-9]{64}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "algorithm",
      -            "digest"
      -          ],
      -          "type": "object"
      -        },
      -        "outcome": {
      -          "enum": [
      -            "success",
      -            "error"
      -          ],
      -          "type": "string"
      -        },
      -        "outputHash": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "algorithm": {
      -              "const": "sha256",
      -              "type": "string"
      -            },
      -            "digest": {
      -              "pattern": "^[a-f0-9]{64}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "algorithm",
      -            "digest"
      -          ],
      -          "type": "object"
      -        },
      -        "runId": {
      -          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -          "type": "string"
      -        },
      -        "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"
      -        },
      -        "stepId": {
      -          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -          "type": "string"
      -        },
      -        "tool": {
      -          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
      -          "type": "string"
      -        },
      -        "version": {
      -          "const": "datoka.agent.execution.v1",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "version",
      -        "agentId",
      -        "runId",
      -        "stepId",
      -        "tool",
      -        "outcome",
      -        "startedAt",
      -        "completedAt",
      -        "inputHash",
      -        "outputHash"
      -      ],
      -      "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
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover safety and idempotency (readOnly=false, idempotent=true, openWorld=true), and the description adds traits those annotations cannot express: a mandatory per-call price (0.002 USDC via x402), the need to carry payment authorization across retries, and the epistemic caveat that signed declarations do not prove execution. These are materially useful behavioral disclosures beyond the structured fields.

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?

Four short sentences, correctly front-loaded with the purpose before cost, retry, and caveat details. Nearly every clause earns its place, with only slight repetition of the payment point that the schema cannot cover.

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 write tool with a deep nested schema, no output schema, and full parameter coverage, the description supplies the pieces the schema cannot: price/network, retry persistence rules, and the trust limitation of the receipt. An agent has enough to decide whether to call and how to retry safely.

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%, so the schema already documents both top-level parameters and the nested event fields in depth. The description reiterates event/idempotencyKey and adds retry/payment semantics, but does not clarify the nested commitment-only structure beyond what the schema already states, so the baseline 3 applies.

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+resource ('Persist a signed execution declaration receipt'), which is clear on its own. However it does not distinguish itself from siblings like issue_proof_receipt or prepare_agent_event, so an agent must infer the boundary between an 'agent receipt' and a 'proof receipt'.

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?

Gives operational guidance on retries ('Preserve event, idempotencyKey and payment authorization on retries'), which is a genuine when-doing-X instruction. But it never says when to choose this over issue_proof_receipt or what precondition ('payment authorization') gates a call, so routing is left implicit.

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