Provenance MCP · Reference
Agent tools
An agent connects to Provenance MCP with an API key and lists the tools its key's products allow. The same tools run in the @provenanceauth/mcp-server package over stdio (connect a client).
Tools
| Tool | What it does | Key product | Changes data |
|---|---|---|---|
authorize_ | Mints an intent token for an action the agent is about to take | Mandate | Yes |
verify_ | Verifies a token before the action runs | Mandate | Yes |
get_ | Reads a step-up approval, waiting up to wait seconds (25 at most) for the decision | Mandate | No |
revoke_ | Revokes a token, a session or a device | Mandate | Yes |
request_ | Asks a person for a network grant and returns the grant_ to show them | Mandate | Yes |
buy_ | Buys one cart under a network grant, or returns the approve_ for an order outside its limits | Mandate | Yes |
answer_ | Registers an outgoing call against a business's challenge code | Mandate | Yes |
verify_ | The verdict on an incoming call, with a one-line summary | Authorize | No |
request_ | Asks the person behind a verified call to confirm a request while the call holds | Authorize | Yes |
verify_ | Reads an Attest claim's provenance and risk score, or verifies a stored attestation | Attest | No |
assess_ | Runs Trace rules before a tool runs: allow, challenge or deny | Trace | Yes |
docs_ | Searches the docs and returns the best passages; a result's url reads the page | Any | No |
start_, list_, accept_ and the other exchange tools | Ask for something, compare proposals, accept or decline them, and read the shared record | Mandate | Some |
api_, api_, api_ | Find any public API operation, then read or write with the key's own scopes. Opt in with ?toolsets=api. A live write needs an idempotency_ and the person's confirmation; console-only settings (keys, webhook endpoints, members, billing) are refused | Any | api_ yes |
The hosted server lists a tool only for a key that holds its product: an Attest-only key sees verify_media and docs_search. Each tool runs under the key's scopes, plan and rate limits.
Arguments
| Tool | Arguments |
|---|---|
authorize_ | action_, agent_, device_; optionally action_, grant_, context, trace_, approval |
verify_ | intent_, action_; optionally action_, context, trace_ |
get_ | approval_; optionally wait |
revoke_ | One of intent_, jti, agent_ or device_; optionally reason |
request_ | agent_, proposed (max_ and budget_ in minor units, budget_, currency, allowed_, blocked_, expires_); optionally return_ |
buy_ | network_, order, aud; optionally approval_ |
answer_ | code, purpose; optionally grant or approval, purpose_, credential |
verify_ | Optionally code, challenge, check_, wait |
request_ | check_, action_, description; optionally amount, currency, answer_ |
verify_ | Exactly one of claim_ or attestation_ |
assess_ | tool; optionally risk, amount, currency, payee, description, trace_, agent_, agent_, untrusted_, findings |
Amounts are integers in minor units: 4999 is 49.99 USD. Each tool's inputSchema describes every argument with an example.
The tool contract
Every tool keeps the same rules:
- snake_case arguments. An argument the tool doesn't know is refused before the tool runs, with a tool error that names it.
- An idempotency key on every write. A tool that changes data takes an optional
idempotency_key, sent to the API asIdempotency-Key. Repeat a call with the same key and the first result comes back; left out, one is generated and returned in the result. - Structured results. Every result has
structuredContent, the API's snake_case response, described by the tool'soutputSchema. The text is a one-line outcome, then the same object as JSON. - Structured errors. An error result has
isError: trueand an error object, in the text and in_meta["com.provenanceauth/error"], never instructuredContent. - Annotations. Every tool sets all four MCP annotations (read-only, destructive, idempotent and open-world hints).
revoke_intentis the one destructive tool.
An error object looks like this:
{
"type": "invalid_request_error",
"code": "insufficient_scope",
"message": "This key doesn't have the mandate scope.",
"doc_url": "https://www.provenanceauth.com/docs/platform/errors#insufficient_scope",
"request_id": "req_01JQ7Z8X3M2N4P5R6S7T8V9W0X"
}
It can also carry param, the argument at fault, and retry_after_seconds when the call was rate limited. After a rate limit or a server error, repeat the same call with the same idempotency_key.
When a person must decide
If your policy sends the action for approval, verify_intent returns a normal result with status: "awaiting_approval" and the approval_id, instead of hanging. Call get_approval_status with that approval_id and wait, or call verify_intent again with the same token once the person approves.
Ask in plain language, for example:
Authorize paying invoice INV-2041 for $450 to Brindlecote Supplies, then verify it.
When a store answers the agent's checkout with a ProvenanceIntent challenge, the agent calls authorize_action with the challenge's binding as action_payload and approval (with the store origin as merchant_origin). The tool returns awaiting_approval until the person approves, then a fresh token for the Provenance-Intent header. See the ProvenanceIntent challenge.
Approve from the MCP client
When your MCP client supports URL-mode elicitation, the person approves without the agent polling. The client declares elicitation: { url: {} } in its capabilities, and when verify_intent needs a person the server sends an elicitation/create request with the action description and a link to the approval page:
{
"mode": "url",
"elicitationId": "elc_01JQ7Z8X3M2N4P5R6S7T8V9W0X",
"url": "https://app.provenanceauth.com/approve/Xq3…",
"message": "Approve in Provenance: Pay invoice INV-2041: $450.00 to Brindlecote Supplies"
}
The client shows the link, and the person decides on the approval page, with a passkey, face or fingerprint where your policy asks for one. The tool call waits, sends notifications/elicitation/complete when the person decides, and returns the verify result. If the person dismisses the link or the wait ends first, the call returns awaiting_approval. The payload never goes into the elicitation.
A 2026-07-28 client that declared URL elicitation gets "resultType": "input_required" instead of a waiting stream. inputRequests.approval holds the approval link, and requestState is a single-use reference the server keeps for 10 minutes. Send the same call again with that requestState and inputResponses ({ "approval": { "action": "accept" } }); while the person is still deciding, the answer is input_required again with a new requestState.
Tools that need no key
These tools need no API key and no sign-in. Add ?toolsets=verify to the server's address to list only them, or start the stdio package without PROVENANCE_API_KEY.
| Tool | What it does |
|---|---|
check_ | Takes a domain; returns whether the business has a verified profile, the rails it accepts, the amount above which a person approves, and its responding agents with their key ids |
find_ | Takes a category, and optionally sells_ and limit; returns businesses that sell to agents, ordered by name |
request_ | Takes a store's approve_, challenge or ucp_; returns the link, the cart in one line and the expiry. With wait (25 seconds at most) it waits for the person's decision and returns status and, once approved, intent_ |
get_ | Reads the shared view of an exchange your origin is in, after you sign in with your website key (read an exchange with no account) |
verify_ | Checks an exchange head, authority proof, intent token, proposal or delivery against published keys |
The checkout tool reads only the request in that link, and tells the model to show the link as it is and never to open it or approve for the person. See ask your own customer and find a business. A business that runs the stdio package for its own agents passes profileUrl to createProvenanceMcpServer, and the server's instructions name its signed profile.
Act under a grant another agent handed over
An agent that hands your agent a grant over MCP puts it in the tools/call request's _meta, under com.provenanceauth/grant:
{
"method": "tools/call",
"params": {
"name": "authorize_action",
"arguments": { "action_description": "Hold seat 14C on TP1351", "agent_session_id": "sess_seats_1", "device_id": "dev_00000000000000000000000000000001" },
"_meta": { "com.provenanceauth/grant": { "grant_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6Im1hbmRhdGUrand0Ii…", "handoff_id": "xho_…" } }
}
}
authorize_action acts under that grant when the arguments carry no grant_token. The grant rides apart from the arguments the model fills in and from the transport's credentials. The earlier key, provenanceauth.com/grant, is still read for 12 months from the release that introduced com.provenanceauth/grant; when a request carries both, the new key wins. withMcpGrant in @provenanceauth/rails/mcp writes the new key.
A grant handed outside an account is bound to the receiving agent's key, so start the stdio package with that key as PROVENANCE_HOLDER_KEY (a P-256 private JWK, as JSON): the server signs the DPoP proof each use needs, and the key never reaches the model. A tool server of your own checks a grant it receives with acceptMcpGrant from @provenanceauth/rails/mcp. See hand off to outside agents.
Errors
| Symptom | Cause | Fix |
|---|---|---|
| Only the keyless tools are listed | No key was sent, or the address has ?toolsets=verify | Send the key, or remove ?toolsets=verify. |
| A tool error naming an argument | The argument is misspelled, missing or unknown | Arguments are snake_case, such as action_. |
insufficient_ | The key lacks the product the tool needs | Use a key with the tool's product. |
dpop_ from authorize_ | The grant is bound to a key and the server has no PROVENANCE_ | Start the stdio package with the receiving agent's holder key. |
rate_ | Too many calls | Wait retry_, then repeat the call with the same idempotency_. |
400 with code -32602 naming requestState | The requestState expired, was already used, or belongs to another call | Send the call again without requestState for a fresh one. |
Related
- Connect a client
- Framework integrations: put Authorize in front of your own tools instead.
- Step-up approval
- Traced inference, for
trace_explain_decisionamong the developer tools