Skip to main content
Glama
This connector has been deprecated in the official MCP Registry

Superseded by ai.councilof/gspc (remote https://councilof.ai/mcp). Kept visible; not deleted.

Receipts batch (paid, x402; preview free)

receipts_batch

PAID (x402 or CSOAI LTD invoice). A historical batch of the estate's measurement receipts via https://councilof.ai/api/receipts/batch: every signed card-v0 leaf whose as_of falls in [from,to] (≤200), each with its Merkle inclusion path and the public root(s) that carried it, plus the root index for the window and one manifest card citing the batch sha256. Manifest signing is conditional: a returned unsigned manifest declares manifest_card.sig_ed25519:null and unsigned_reason, with signature unmeasured. Manifest root inclusion remains unmeasured. If signing throws after settlement, the route returns PAID_NOT_DELIVERED with no batch or manifest delivered; preserve the settlement receipt and reconcile before reissue, without automatically retrying or paying again. preview=true is free and returns count, span, root count and the sha256 of the exact bytes the paid call returns. Recent leaves are free at /root.json, /cards/ and /api/proof?sha= — the batch sells assembly across history, never a conclusion. This tool returns historical measurement leaves, not payment receipts. /api/receipts/latest reports aggregate receipt-store state when available; its counts do not verify a particular payment, delivery or buyer acceptance. Without x_payment the tool returns the 402 challenge.

Input Schema

NameRequiredDescriptionDefault
toNoWindow end, ISO-8601. Defaults to now.
fromNoWindow start, ISO-8601. Required.
previewNotrue = free: count, span, roots and batch sha256 without the leaves.
x_paymentNoThe X-PAYMENT header value signed against accepts[] from the previous 402. Omit to receive the challenge.
purchase_actionNoSelfserve account-owned purchase action. Use Council bearer transport, omit x_payment; no new financial/provider action.
purchase_cursorNoOwner-scoped history/decision page cursor; do not combine with exact decision id.
purchase_reasonNo
purchase_request_idNoIdempotency id for the same exact decision intent, or exact id lookup when reading decisions. Never change inputs on an unknown write.
purchase_transactionNo
purchase_result_sha256No
purchase_result_versionNo

Output Schema

NameRequiredDescriptionDefault
toolNo
routeNo
statusYesPAYMENT_REQUIRED, DELIVERED, NOT_DEPLOYED, UNREACHABLE, UNREADABLE_RESPONSE, BAD_ARGUMENTS or HTTP_<code>
acceptsNo
resourceNo
deliverableNo
http_statusNo
x402VersionNo
delivery_stateNo
settlement_stateNo
payment_presentedNo
not_a_certificationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "from"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "purchase_action"
      +    ]
      +  }
      +]
    • addedInput schema / properties / purchase_action
      Added value: +{
      +  "description": "Selfserve account-owned purchase action. Use Council bearer transport, omit x_payment; no new financial/provider action.",
      +  "enum": [
      +    "history",
      +    "recover",
      +    "decisions",
      +    "accept",
      +    "reject",
      +    "request_correction"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / purchase_cursor
      Added value: +{
      +  "description": "Owner-scoped history/decision page cursor; do not combine with exact decision id.",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
    • addedInput schema / properties / purchase_reason
      Added value: +{
      +  "maxLength": 2000,
      +  "type": "string"
      +}
    • addedInput schema / properties / purchase_request_id
      Added value: +{
      +  "description": "Idempotency id for the same exact decision intent, or exact id lookup when reading decisions. Never change inputs on an unknown write.",
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / purchase_result_sha256
      Added value: +{
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / purchase_result_version
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / purchase_transaction
      Added value: +{
      +  "maxLength": 256,
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "from"
      -]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "The wrapper's status fields. On PAYMENT_REQUIRED (isError:true) the route's x402 PaymentRequired object (x402Version, resource, accepts, extensions) is spread at the top level too, per the x402 MCP transport.",
      +  "properties": {
      +    "accepts": {
      +      "type": "array"
      +    },
      +    "deliverable": {},
      +    "delivery_state": {
      +      "type": "string"
      +    },
      +    "http_status": {
      +      "type": "integer"
      +    },
      +    "not_a_certification": {
      +      "type": "boolean"
      +    },
      +    "payment_presented": {
      +      "type": "boolean"
      +    },
      +    "resource": {
      +      "type": "object"
      +    },
      +    "route": {
      +      "type": "string"
      +    },
      +    "settlement_state": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "PAYMENT_REQUIRED, DELIVERED, NOT_DEPLOYED, UNREACHABLE, UNREADABLE_RESPONSE, BAD_ARGUMENTS or HTTP_<code>",
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "x402Version": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "description": "The wrapper's status fields. On PAYMENT_REQUIRED (isError:true) the route's x402 PaymentRequired object (x402Version, resource, accepts, extensions) is spread at the top level too, per the x402 MCP transport.",
      -  "properties": {
      -    "accepts": {
      -      "type": "array"
      -    },
      -    "deliverable": {},
      -    "delivery_state": {
      -      "type": "string"
      -    },
      -    "http_status": {
      -      "type": "integer"
      -    },
      -    "not_a_certification": {
      -      "type": "boolean"
      -    },
      -    "payment_presented": {
      -      "type": "boolean"
      -    },
      -    "resource": {
      -      "type": "object"
      -    },
      -    "route": {
      -      "type": "string"
      -    },
      -    "settlement_state": {
      -      "type": "string"
      -    },
      -    "status": {
      -      "description": "PAYMENT_REQUIRED, DELIVERED, NOT_DEPLOYED, UNREACHABLE, UNREADABLE_RESPONSE, BAD_ARGUMENTS or HTTP_<code>",
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": "string"
      -    },
      -    "x402Version": {
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "status"
      -  ],
      -  "type": "object"
      -}New value: +null
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "The wrapper's status fields. On PAYMENT_REQUIRED (isError:true) the route's x402 PaymentRequired object (x402Version, resource, accepts, extensions) is spread at the top level too, per the x402 MCP transport.",
      +  "properties": {
      +    "accepts": {
      +      "type": "array"
      +    },
      +    "deliverable": {},
      +    "delivery_state": {
      +      "type": "string"
      +    },
      +    "http_status": {
      +      "type": "integer"
      +    },
      +    "not_a_certification": {
      +      "type": "boolean"
      +    },
      +    "payment_presented": {
      +      "type": "boolean"
      +    },
      +    "resource": {
      +      "type": "object"
      +    },
      +    "route": {
      +      "type": "string"
      +    },
      +    "settlement_state": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "PAYMENT_REQUIRED, DELIVERED, NOT_DEPLOYED, UNREACHABLE, UNREADABLE_RESPONSE, BAD_ARGUMENTS or HTTP_<code>",
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "x402Version": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "description": "The wrapper's status fields. On PAYMENT_REQUIRED (isError:true) the route's x402 PaymentRequired object (x402Version, resource, accepts, extensions) is spread at the top level too, per the x402 MCP transport.",
      -  "properties": {
      -    "accepts": {
      -      "type": "array"
      -    },
      -    "deliverable": {},
      -    "delivery_state": {
      -      "type": "string"
      -    },
      -    "http_status": {
      -      "type": "integer"
      -    },
      -    "not_a_certification": {
      -      "type": "boolean"
      -    },
      -    "payment_presented": {
      -      "type": "boolean"
      -    },
      -    "resource": {
      -      "type": "object"
      -    },
      -    "route": {
      -      "type": "string"
      -    },
      -    "settlement_state": {
      -      "type": "string"
      -    },
      -    "status": {
      -      "description": "PAYMENT_REQUIRED, DELIVERED, NOT_DEPLOYED, UNREACHABLE, UNREADABLE_RESPONSE, BAD_ARGUMENTS or HTTP_<code>",
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": "string"
      -    },
      -    "x402Version": {
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "status"
      -  ],
      -  "type": "object"
      -}New value: +null
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "The wrapper's status fields. On PAYMENT_REQUIRED (isError:true) the route's x402 PaymentRequired object (x402Version, resource, accepts, extensions) is spread at the top level too, per the x402 MCP transport.",
      +  "properties": {
      +    "accepts": {
      +      "type": "array"
      +    },
      +    "deliverable": {},
      +    "delivery_state": {
      +      "type": "string"
      +    },
      +    "http_status": {
      +      "type": "integer"
      +    },
      +    "not_a_certification": {
      +      "type": "boolean"
      +    },
      +    "payment_presented": {
      +      "type": "boolean"
      +    },
      +    "resource": {
      +      "type": "object"
      +    },
      +    "route": {
      +      "type": "string"
      +    },
      +    "settlement_state": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "PAYMENT_REQUIRED, DELIVERED, NOT_DEPLOYED, UNREACHABLE, UNREADABLE_RESPONSE, BAD_ARGUMENTS or HTTP_<code>",
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "x402Version": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  7. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations it discloses payment mechanics (x402 or invoice), conditional manifest signing with manifest_card.sig_ed25519:null and unsigned_reason, and that manifest root inclusion remains unmeasured. It documents a specific failure mode after settlement: PAID_NOT_DELIVERED delivers nothing, preserve the settlement receipt, reconcile before reissue, and do not auto-retry or re-pay. That is exactly the operational context annotations cannot carry.

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?

It is one dense block, but it is front-loaded with the payment model and nearly every clause carries operational weight (caps, error semantics, free alternatives). Structure would improve with separation between the paid batch, the preview path, and the failure handling, since it currently reads as a single run-on paragraph.

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?

An output schema exists, so return shapes need not be described, and the description fills the harder gaps: price gating, preview, challenge behavior, settlement failure handling, and what the counts do and do not verify. The gap is the self-serve purchase_action workflow (history/recover/decisions/accept/reject/request_correction), which an agent must infer entirely from the schema.

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

Parameters4/5

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

With 64% schema description coverage, the description adds real meaning for from/to (window semantics, 200-leaf cap), preview (what is returned and that the sha256 is of the exact paid bytes), and x_payment (challenge behavior when omitted). The six-value purchase_action enum and the purchase_cursor/request_id parameters get no explanation in the description beyond the schema text.

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 names a specific resource and scope: a historical batch of signed card-v0 leaves whose as_of falls in [from,to] (≤200), each with a Merkle inclusion path plus roots, root index and manifest. It explicitly distinguishes itself from adjacent concepts ('returns historical measurement leaves, not payment receipts' and 'the batch sells assembly across history, never a conclusion'). The only blur is that accept/reject/decisions purchase_action modes imply non-retrieval behavior the description never reconciles with the batch framing.

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

Usage Guidelines4/5

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

It clearly states the paid-vs-free split (preview=true is free and returns count/span/root count/sha256) and when the tool is the wrong buy ('recent leaves are free at /root.json, /cards/ and /api/proof?sha='). It also states that omitting x_payment returns the 402 challenge. It does not route to a named sibling tool, and the mode distinctions between the purchase_action values are left to the schema.

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.