terms-mcp

v0.5.3
@integraledger/terms-mcp Checked 23 hours ago Published 12 days ago

The buyer gate's operations as MCP tools, with a skill for the agent that uses them.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

atr_confirm

Before approving a payment: reads the ATR hash the seller advertised, fetches the ATR from the seller's link and confirms its SHA-256 matches. On a match returns the ATR's exact bytes, `chosen`, the signing request built with that hash, and `summary`, which names every authority signing that request grants: read both before your wallet signs. Sign exactly that request, then call atr_finish with `chosen` and the signature. On a mismatch returns an error and nothing to sign. Pass as `resourceRequest` the request the seller's 402 answered: over HTTP `{method, target, body, headers?}`, the method…

ParameterTypeDescription
account *string
document *
pairing *string
resourceRequest *
actstring
inputsobject
receipt

atr_finish

Rebuilds the payment from `chosen` and the ATR bytes and joins your wallet's signature. Returns `signed` only when the pairing reads the ATR hash from the completed payment, or, where the proof is the agreement payment, without that reading. For a pairing with a channel, pass `chosen` exactly as atr_confirm returned it, `mac` included: a changed `chosen` is declined. Send only the `signed` payment it returns. For a payment signed in steps, the first answer returns `next`, the next request to sign, with `summary`, which names every authority signing it grants: read both before your wallet signs…

ParameterTypeDescription
atr *string
chosen *object
pairing *string
signature *
actstring

atr_check

Confirms that the ATR hash the pairing reads from a payment is the SHA-256 of the given ATR bytes, with the `landed` receipt returned beside the payment, exactly as returned, where there is one. The caller passes as `landed` only the receipt its own reader read for the payment, as `atr_finish` or `atr_transact` returned it, never a value another party sent. A `landed` of null is no receipt. Pass `act` "agreement" for an agreement payment, whose single-use value is the agreement's own value for the ATR hash; it is "payment" otherwise. A payment from which the pairing reads no ATR hash is declin…

ParameterTypeDescription
atr *string
pairing *string
presented *
actstring
landed

atr_channel_open

Keeps a channel you opened: takes the signed opening payment, the `landed` receipt where one was returned beside it, and the `mac` returned beside it, all exactly as returned, and the ATR bytes it was confirmed against; returns the channel `hold` to keep and pass to the other channel tools. The caller passes as `landed` only the receipt its own reader read for the opening, as `atr_finish` or `atr_transact` returned it, never a value another party sent. The hold is opaque: pass it back exactly as returned.

ParameterTypeDescription
atr *string
mac *string
pairing *string
signed *
landed

atr_channel_record_charge

Records the seller's cumulative charge in a held channel, no lower than the last recorded and no higher than what was signed. Takes the latest `hold` exactly as returned; a changed hold is declined. Returns the updated `hold`.

ParameterTypeDescription
charged *string
hold *object