View as Markdown

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

CredentialHowLists
Account API keyAuthorization: Bearer prv_test_…The core and requesting tools its products allow. Never the responder tools.
Key restricted to one agentMake a key with agent_id and capabilities (POST /v1/account/keys, or Developers › API keys)The tools its capabilities hold. It opens the MCP server and nothing else: any other route answers agent_key_mcp_only.
The agent's own keyOAuth client credentials with private_key_jwt: client_id is the agent's agt_… id and the assertion is signed with one of its registered signing keysrequesting: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_id is a Client ID Metadata Document on your domain, or an RFC 9421 signature on each requestget_exchange and verify_proof for exchanges your origin is in, plus the tools that need no key
CapabilityWhat it allows
requesting:readRead your asks and their proposals
requesting:actAsk, record, accept and decline proposals, and prove your authority
requesting:payThe payment tools
responding:readRead what waits on you and your proposals
responding:actPropose, withdraw, record fulfilment and respond to disputes

No capability approves anything for a person or changes a rule.

Requester tools

ToolWhat it doesChanges data
start_exchangeStates what you want under one of your grants: typed lines, quantities, dates and terms. share: true lets responders read the ask.Yes
record_proposalsRecords 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_proposalsThe proposals on your ask, each with its differences and state: within_authority, awaiting_approval, accepted, declined or expired. wait holds the call up to 25 seconds.No
accept_proposalAccepts one option once, bound to its terms. Outside your authority it returns awaiting_approval: your person decides, and list_proposals with wait reads the answer.Yes
decline_proposalDeclines a proposal, with an optional reason the other side sees (price, terms, timing, other).Yes
create_authority_proofA 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_grant_statusOne 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_dealOpens 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:

ToolWhat it doesChanges data
open_disputeDrafts 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:

ToolWhat it doesChanges data
record_runaction: "start" opens a run under one of your grants; action: "end" closes it.Yes
delegate_grantGives one of your subagents a child grant, never wider than yours, with a purpose the person sees.Yes
answer_approval_questionAnswers 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.

ToolWhat it doesChanges data
list_open_requestsWhat 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_proposalPosts one to five options on your request (brief_id), on an exchange whose requester shared its ask (exchange_id), or on what the requester asked (request). With exchange_id or request, pass standard, what you offer by default. Each option comes back within_authority (with the offer_hash your runtime signs), ask (a colleague is asked at once) or refused.Yes
get_proposal_statusOne lifecycle: asking, cleared, accepted (with the deal to fulfil), declined, withdrawn, expired or refused. wait holds the call up to 25 seconds.No
withdraw_proposalWithdraws one of your proposals.Yes
respond_disputeContests 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

ToolWhat it doesChanges data
get_agent_contextWho 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_exchangeThe exchange record. format: "view" (the default) gives the entries in order, the signed head and the chain check; format: "signed_bundle" gives the shared view's signed bundle for a dispute or an audit (10 an hour). entry_types: ["brief_shared"] reads the requester's shared ask.No
verify_proofChecks 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_fulfilmentRecords 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_party.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:

  1. OAuth client credentials. Publish a Client ID Metadata Document, such as https://shop.example/agent.json, with client_id equal to its URL and token_endpoint_auth_method: "private_key_jwt". Ask POST /v1/oauth/token for grant_type=client_credentials with a client_assertion signed by a key in your key file. The token lists the keyless tools.
  2. 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

CodeCauseFix
agent_key_mcp_onlyA key restricted to an agent was used outside the MCP serverUse an account key for direct API calls.
responder_mcp_offThe responder tools are off for the agentAn owner or admin turns them on.
proposal_limit5 proposals on one request in an hourSend a cleared proposal, or wait retry_after_seconds.
wrong_partyrecord_fulfilment with the other side's kindRecord your own side's step.
resource_missingAnother agent's id, or an exchange you aren't inUse the id your own tool call returned.