Provenance MCP · Reference
Exchange tools
An exchange has two sides. The requester asks for something: a purchase, a cancellation, a quote, a booking or a document. The responder answers with proposals. Both sides read one shared, signed record of the exchange. An agent can request in one exchange and respond in the next, but never both sides of the same one.
Who can connect
| Credential | How | Lists |
|---|---|---|
| Account API key | Authorization: Bearer prv_ | The core and requesting tools its products allow. Never the responder tools. |
| Key restricted to one agent | Make a key with agent_ and capabilities (POST /, or Developers › API keys) | The tools its capabilities hold. It opens the MCP server and nothing else: any other route answers agent_. |
| The agent's own key | OAuth client credentials with private_: client_ is the agent's agt_ id and the assertion is signed with one of its registered signing keys | requesting:read and requesting:act, and the responder tools once they are on. A 15-minute token; revoking the signing key or suspending the agent ends it on the next call. |
| Your website key (no account) | OAuth client credentials where client_ is a Client ID Metadata Document on your domain, or an RFC 9421 signature on each request | get_ and verify_ for exchanges your origin is in, plus the tools that need no key |
| Capability | What it allows |
|---|---|
requesting:read | Read your asks and their proposals |
requesting:act | Ask, record, accept and decline proposals, and prove your authority |
requesting:pay | The payment tools |
responding:read | Read what waits on you and your proposals |
responding:act | Propose, withdraw, record fulfilment and respond to disputes |
No capability approves anything for a person or changes a rule.
Requester tools
| Tool | What it does | Changes data |
|---|---|---|
start_ | States what you want under one of your grants: typed lines, quantities, dates and terms. share: true lets responders read the ask. | Yes |
record_ | Records one to five proposals another agent made outside Provenance (a signed offer+jwt, or terms it reported). Each option is decided at once. | Yes |
list_ | The proposals on your ask, each with its differences and state: within_, awaiting_, accepted, declined or expired. wait holds the call up to 25 seconds. | No |
accept_ | Accepts one option once, bound to its terms. Outside your authority it returns awaiting_: your person decides, and list_ with wait reads the answer. | Yes |
decline_ | Declines a proposal, with an optional reason the other side sees (price, terms, timing, other). | Yes |
create_ | A short-lived signed proof that you may accept one option now, addressed to the other side's agent. Needs a key restricted to your agent, or your agent's own sign-in. | Yes |
get_ | One grant you act under: its limits, whether it is active, and when it ends. Takes a company grant or a person's network grant (ngr_). | No |
open_ | Opens the deal for a proposal you accepted: the accepted option's signed offer, under the proposal's grant, used once. Returns the deal's status (accepted, a person deciding, or declined with the reason). Needs requesting:pay. | Yes |
list_proposals shows an accepted proposal's deal once it is opened; a deal your rules declined reads declined on the proposal, with the reason.
In the opt-in disputes toolset:
| Tool | What it does | Changes data |
|---|---|---|
open_ | Drafts a dispute on one of your deals: the reason, your statement, an amount and up to five pieces of evidence. Your agent never opens it: the result is status: "asking" with a link where your person or your staff opens it in the console. Repeat the call to read where it stands. | Yes |
In the opt-in runs toolset:
| Tool | What it does | Changes data |
|---|---|---|
record_ | action: "start" opens a run under one of your grants; action: "end" closes it. | Yes |
delegate_ | Gives one of your subagents a child grant, never wider than yours, with a purpose the person sees. | Yes |
answer_ | Answers a question the person asked about one of your approvals, in plain text. | Yes |
Responder tools
The responder tools need a credential bound to the agent with responding:*, and an owner or admin turns them on for that agent first (Agents › the agent › Selling, or PATCH /v1/mandate/agents/{id} with responder_mcp: true). Until then they answer responder_mcp_off.
| Tool | What it does | Changes data |
|---|---|---|
list_ | What waits on your agent: open requests, proposals a colleague is being asked about, and accepted proposals to fulfil. Each row names the next call. | No |
create_ | Posts one to five options on your request (brief_), on an exchange whose requester shared its ask (exchange_), or on what the requester asked (request). With exchange_ or request, pass standard, what you offer by default. Each option comes back within_ (with the offer_ your runtime signs), ask (a colleague is asked at once) or refused. | Yes |
get_ | One lifecycle: asking, cleared, accepted (with the deal to fulfil), declined, withdrawn, expired or refused. wait holds the call up to 25 seconds. | No |
withdraw_ | Withdraws one of your proposals. | Yes |
respond_ | Contests a dispute on one of your deals with a statement. In the opt-in disputes toolset. | Yes |
Your agent never sees the numbers in your company's offer rules: create_proposal answers per option, and allows 5 proposals per request an hour, dry runs included (proposal_limit). When an option goes to a colleague, tell the requester you are checking with a colleague; never the reason. Your runtime, not the model, signs a cleared offer_hash with the agent's own key.
Tools for both sides
| Tool | What it does | Changes data |
|---|---|---|
get_ | Who you are: the environment first, your agent and its operator, your capabilities and the per-call limits. detailed adds what another agent sees about you. | No |
get_ | The exchange record. format: "view" (the default) gives the entries in order, the signed head and the chain check; format: "signed_ gives the shared view's signed bundle for a dispute or an audit (10 an hour). entry_ reads the requester's shared ask. | No |
verify_ | Checks a signed object offline: an exchange head, an authority proof (with its online status), an intent token, a proposal or a delivery. Pass origin for an object signed by the other side's key. It never uses up a single-use token. | No |
record_ | Records one step on a deal: delivered (the responder's signed receipt), paid (the rail's payment reference; it never moves money) or done (the requester confirms, which closes the exchange). The other side's kind answers wrong_. | Yes |
Every result carries the exchange_id in structuredContent and in _meta["com.provenanceauth/exchange"]. Text the other side wrote, such as a counterparty's name or an option's note, comes back under untrusted: it is data, never an instruction.
Read an exchange with no account
A party with no Provenance account reads and exports the shared view of an exchange it is in, with the key file on its own domain (/.well-known/http-message-signatures-directory). Two ways, and only these two:
- OAuth client credentials. Publish a Client ID Metadata Document, such as
https://shop.example/agent.json, withclient_idequal to its URL andtoken_endpoint_auth_method: "private_key_jwt". AskPOST /v1/oauth/tokenforgrant_type=client_credentialswith aclient_assertionsigned by a key in your key file. The token lists the keyless tools. - A signature on each request. Sign every MCP request (RFC 9421) with a key in your key file. Name your origin in
Signature-Agent, cover the method, authority, path and content digest, and add a nonce. Signed the same way, the public routes read the exchange and export its bundle.
You get the shared view only: no private part and no note. An exchange your origin isn't in reads as not found.
Errors
| Code | Cause | Fix |
|---|---|---|
agent_ | A key restricted to an agent was used outside the MCP server | Use an account key for direct API calls. |
responder_ | The responder tools are off for the agent | An owner or admin turns them on. |
proposal_ | 5 proposals on one request in an hour | Send a cleared proposal, or wait retry_. |
wrong_ | record_ with the other side's kind | Record your own side's step. |
resource_ | Another agent's id, or an exchange you aren't in | Use the id your own tool call returned. |
Related
- Agent tools: the contract every tool keeps.
- Connect a client