# MCP tools

> Every tool the Conto MCP server exposes, grouped by task.

- Human URL: https://conto.finance/docs/mcp/tools
- Raw Markdown: https://conto.finance/docs/mcp/tools.md
- Terminal view: https://conto.finance/ai/docs/mcp/tools

Documentation group: SDK and tools

Info:

  Conto API requests time out after **30 seconds**. The optional guarded-browser runtime times out
  after **60 seconds**. Your MCP client receives each tool's full parameter schema from the server.

The SDK alert-action endpoint used to acknowledge or resolve alerts enforces a streaming 1 MiB request-body limit and returns `413 INVALID_INPUT` for larger bodies. Alert ownership and human-only safety restrictions still apply.

## Account connection

The hosted account server at `/api/mcp` uses browser sign-in. These tools are distinct from the
agent SDK tools below; the account server requires an explicit `agent_id` for agent-specific work.

Hosted requests are limited to 64 KiB (65,536 bytes). Each tool call also allows at most 10,000
array entries and object members combined, counted recursively across its `arguments`. Exceeding
that element limit returns a tool result with `isError: true` before the tool runs. Reduce the
arguments before retrying.

| Tool                      | Purpose                                                                        |
| ------------------------- | ------------------------------------------------------------------------------ |
| `get_connection`          | Current workspace, role, scopes and disconnection link                         |
| `list_agents`             | Search and paginate all accessible agents, including paused agents             |
| `get_agent_controls`      | Effective policies, limits and masked assignments for one agent                |
| `list_policies`           | Workspace policies available for assignment                                    |
| `list_approval_requests`  | Approval queue with the signed-in user’s eligibility                           |
| `connected_card_connect`  | Secure browser handoff to connect a card to the selected agent                 |
| `get_card_spending`       | Card budgets and recorded spending for one agent                               |
| `list_card_activity`      | Paginated card activity within a bounded date range                            |
| `get_card_purchase_setup` | Card purchase readiness for one agent                                          |
| `describe_agent_change`   | Input schema and role eligibility for a supported change                       |
| `propose_agent_change`    | Prepare a policy, limit, card-access or pause/resume change for browser review |
| `get_change_status`       | Read the result of that review                                                 |

`propose_agent_change` is available only with `conto:propose` consent and checks the caller’s
current role for the particular action. All other tools require `conto:read` and their usual
workspace permissions. Card tools retain plan and environment eligibility checks. No account
tool executes a purchase, confirms a payment, or returns an SDK key or card credential.

## Payments (7)

| Tool                       | Description                                                       |
| -------------------------- | ----------------------------------------------------------------- |
| `pay`                      | Request and execute a payment in one step                         |
| `request_payment`          | Request payment authorization (check policies first)              |
| `execute_payment`          | Execute a previously approved payment                             |
| `get_test_report`          | Read a combined allowed, denied, and optional human-review report |
| `check_payment_status`     | Check status of a payment request                                 |
| `approve_external_payment` | Request approval for an external (agent-held) wallet payment      |
| `confirm_external_payment` | Confirm an externally executed payment with its tx hash           |

Managed wallets use request, then execute. External wallets use approve, your own transfer, then
confirm. See [wallet custody](https://conto.finance/docs/guides/custody-modes).

### pay

Request and execute a payment in one step. Combines `request_payment` and `execute_payment`. Fails
if the payment is denied or requires manual approval. Replaying a completed payment returns
`status: completed` and `alreadyExecuted: true` without calling execution again. Use
`check_payment_status` with the returned `requestId` to retrieve its existing transaction.

| Parameter          | Type   | Required | Description                                                        |
| ------------------ | ------ | -------- | ------------------------------------------------------------------ |
| `amount`           | number | Yes      | Amount in USDC                                                     |
| `recipientAddress` | string | Yes      | Recipient wallet address                                           |
| `recipientName`    | string | No       | Human-readable recipient name                                      |
| `purpose`          | string | No       | Why this payment is needed                                         |
| `category`         | string | No       | Spend category for analytics                                       |
| `idempotencyKey`   | string | Yes      | Stable unique key. Reuse the same value when retrying this payment |

### request_payment

Authorization returns `APPROVED`, `DENIED`, `REQUIRES_APPROVAL`, `PROCESSING`, or `COMPLETED`.
Execute only an approved request. Use `check_payment_status` for a request that is awaiting review,
processing, or already completed.

**Parameters:** Same as `pay`.

**Returns:** `requestId`, `status`, `amount`, `currency`, `recipient`, `reasons`, and, when
approved, `expiresAt` and `actionUrl`.

### execute_payment

Execute a previously approved payment request.

Execution is not automatically retried. After a timeout or ambiguous failure, call
`check_payment_status` with the same `requestId` before deciding whether another execution attempt
is safe.

If an approver already executed the payment by approving it in Conto, `execute_payment` returns the
existing receipt with `alreadyExecuted: true` and sends nothing. Before approval it fails with
`APPROVAL_PENDING`. A payment declined at execution fails with `POLICY_DENIED_AT_EXECUTION` and must
not be retried. `POLICY_REAPPROVAL_REQUIRED` means the payment needs a new request and approval.
`check_payment_status` returns the `reasons`.

| Parameter   | Type   | Required | Description                          |
| ----------- | ------ | -------- | ------------------------------------ |
| `requestId` | string | Yes      | The requestId from `request_payment` |

### approve_external_payment

Request approval for a payment from an external (agent-held) wallet.

| Parameter          | Type   | Required | Description                                             |
| ------------------ | ------ | -------- | ------------------------------------------------------- |
| `amount`           | number | Yes      | Amount in USDC                                          |
| `recipientAddress` | string | Yes      | Recipient wallet address                                |
| `senderAddress`    | string | Yes      | Sender wallet address (agent-held)                      |
| `chainId`          | string | Yes      | Chain ID as a string (e.g. `"42431"` for Tempo Testnet) |
| `recipientName`    | string | No       | Recipient name                                          |
| `purpose`          | string | No       | Payment purpose                                         |
| `category`         | string | No       | Spend category                                          |
| `context`          | object | No       | Additional context metadata                             |

### confirm_external_payment

Submit the transaction hash for an externally executed payment. Conto accepts the hash, then
verifies the transfer onchain. The initial response has `accepted: true`, `confirmed: false`, and
`status: "processing"`. Follow `statusUrl` or use `check_payment_status` with the same request ID
until the transfer is confirmed. Report success only after that confirmation.

| Parameter       | Type   | Required | Description                                                                                           |
| --------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------- |
| `requestId`     | string | Yes      | The `approvalId` from `approve_external_payment`                                                      |
| `txHash`        | string | Yes      | Onchain transaction hash                                                                              |
| `approvalToken` | string | No       | Approval token from `approve_external_payment`. Omit only after a human approved the request in Conto |

`approvalId` is the payment request ID, so pass it as `requestId`. `approvalRequestId`, returned
when the payment needs review, is a different ID for the human review. Do not pass it here.

Repeated confirmation does not duplicate spend but can return `409 ALREADY_CONFIRMED`. Compare the
returned hash with your saved transfer and reconcile through the status URL before taking further
action.

--------------------------------- | ------------------------------------------------------------------------------ |
| `checkout_checkpoint_begin`          | Check the purchase before the payment method opens                             |
| `checkout_checkpoint_confirm`        | Check the final total right before the payment is submitted                    |
| `checkout_checkpoint_report_outcome` | Report `PAID`, `NOT_PAID`, or `UNKNOWN` after the payment                      |
| `checkout_checkpoint_cancel`         | Cancel a checkpoint that was not confirmed, or stop waiting for the owner      |
| `checkout_checkpoint_status`         | Read a checkpoint's stage and next action, and poll it while the owner decides |

### checkout_checkpoint_begin

Open the payment method only if the result's `stage` is `APPROVED`. If the call fails, stop the
checkout.

If the `stage` is `AWAITING_APPROVAL`, the agent's rules need the owner to approve the purchase. The
result's `message` tells the agent not to open the payment method. Call `checkout_checkpoint_status`
every few seconds until the stage is `APPROVED`, then continue. Stop if it becomes `DENIED`,
`CANCELLED`, or `EXPIRED`. The spend stays held until then or until the agent cancels.

| Parameter        | Type    | Required | Description                                                 |
| ---------------- | ------- | -------- | ----------------------------------------------------------- |
| `idempotencyKey` | string  | Yes      | Stable unique key for this purchase. Reuse it when retrying |
| `merchantId`     | string  | Yes      | Merchant label for the owner. Rules use the checkout domain |
| `merchantName`   | string  | Yes      | Merchant name shown to the owner                            |
| `checkoutUrl`    | string  | Yes      | HTTPS URL of the checkout page, on the store's domain       |
| `amountMinor`    | integer | Yes      | Current checkout total in USD cents                         |
| `purpose`        | string  | Yes      | Why the agent is buying this                                |
| `lineItems`      | array   | Yes      | `name`, `quantity`, and `unitAmountMinor` for each item     |
| `totals`         | array   | No       | Total lines such as tax and shipping. Defaults to one total |
| `checkoutMethod` | string  | No       | `LINK` (default), `CARD`, `SHOP_PAY`, or `PAYPAL`           |
| `category`       | string  | No       | Spend category, such as `OFFICE_SUPPLIES`                   |

### checkout_checkpoint_confirm

Submit the payment only if the result's `stage` is `CONFIRMED`. Takes `checkpointId`, the final
`amountMinor`, and optional `totals`, `pageUrl`, and `linkRequestId`. If the final total differs
from the approved one, the tool replaces the approval with one for the final total and returns it.
Use its `id` from then on. With a Stripe Link card, pass its `linkRequestId`. A different total then
returns `LINK_CARD_TOTAL_CHANGED` instead, because the card covers only the approved total. From MCP
server 0.7.2, the same applies when Conto has the request on record. `totals` is used only when the
total changed. This tool takes no line items, so it does not check the final cart. Use the SDK's
`confirm()` to check final items.

The new checkpoint can need the owner's approval. If the result's `stage` is `AWAITING_APPROVAL`,
do not pay. Poll `checkout_checkpoint_status` until the stage is `APPROVED`, then call
`checkout_checkpoint_confirm` again.

### checkout_checkpoint_report_outcome

Takes `checkpointId`, `outcome` (`PAID`, `NOT_PAID`, or `UNKNOWN`), an optional order or receipt
`reference`, and, with a Stripe Link card, its `linkRequestId`. `PAID` keeps the amount counted toward the agent's limits, `NOT_PAID` keeps
it counted until the owner records what happened, and `UNKNOWN` keeps it counted until you report `PAID` or the owner records what happened. Report an outcome only after
`checkout_checkpoint_confirm` returns `CONFIRMED`.

The exception is a checkpoint with `linkRequestOpen: true`, which reads `nextAction: REPORT_OUTCOME`
because the card may have been used. Report `PAID` if it was, or `UNKNOWN` if you cannot tell, which
keeps the spend held until the owner records what happened. If you did not pay, cancel it. `NOT_PAID`
changes nothing there.

---

## Stripe Link cards

The MCP server does not issue Stripe Link cards. A tool result goes into the model's context and
often into the MCP host's logs, so a card number and CVC must never be in one. The earlier
`checkout_get_link_card` tool is not listed, and a direct call returns `LINK_CARD_TOOL_DISABLED`
without contacting Conto or Link.

Get Link cards with `conto.checkout.getLinkCard()` in code the model does not see. Pass the agent
only the checkpoint ID, the `linkRequestId`, and masked details such as `last4`. The checkpoint tools
take that `linkRequestId`: `checkout_checkpoint_confirm` and `checkout_checkpoint_report_outcome` send it to
Conto as the payment reference, and `checkout_checkpoint_cancel` cancels the Link request too when
`CONTO_LINK_WALLET` is `link-cli` and `link-cli` is on the PATH.

From MCP server 0.7.2, `checkout_checkpoint_cancel` needs `transactions:read` as well as
`payments:execute`. It closes the request Conto has on record, or the `linkRequestId` you pass when
Conto has none, and refuses a different one. With neither, it has no Link request to close and
releases the spend, so pass the ID of any request Conto has no record of. For an approved or waiting
checkpoint, or one with `linkRequestOpen: true`, it cancels the Link request first. If Link cannot
cancel it and does not report it closed, the tool returns `LINK_CARD_NOT_CANCELLED` with
`holdReleased: false` and keeps the spend held. If the Link wallet is unavailable, the tool also
keeps the hold and returns this error. Restore Link access and call it again with the same IDs to
retry. On MCP server 0.7.1, a checkpoint with `linkRequestOpen: true` releases the spend before the
tool tries Link, and with no `linkRequestId` the tool never tries Link, so close the Link request
yourself first.

A confirmed checkpoint with no outcome never has `linkRequestOpen`. Its card may be in use, so
report the outcome instead of cancelling.

From MCP server 0.7.2, if the hold is already gone, for example after the owner marks the checkout
not paid, the tool still cancels the Link request when the Link wallet is available.
`holdReleased: true` on the error means the request may still be open, so the card may still work.
`CHECKPOINT_NOT_CANCELLED` with `linkClosed: true` means Link closed the request but Conto did not
release the spend. Call the tool again to retry.

See [Stripe Link cards for agents](https://conto.finance/docs/guides/stripe-link-cards).

---

## Guarded browser checkout (optional)

These four tools appear only when you configure a trusted browser runtime (see the
[configuration reference](https://conto.finance/docs/mcp/install#configuration-reference)).

| Tool                       | Description                                                 | Listed when                                                           |
| -------------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------- |
| `guarded_browser_checkout` | Perform one approved payment action in a runtime-owned page | `CONTO_BROWSER_RUNTIME_URL` and `CONTO_BROWSER_RUNTIME_TOKEN` are set |
| `observe_browser_session`  | Read the visible links and buttons on a runtime-owned page  | `CONTO_BROWSER_OBSERVATION_URL` is also set                           |
| `create_browser_session`   | Create one runtime-owned browser session                    | `CONTO_BROWSER_SESSIONS_URL` is also set                              |
| `release_browser_session`  | Revoke and release a runtime-owned browser session          | `CONTO_BROWSER_SESSIONS_URL` is also set                              |

### guarded_browser_checkout

The tool performs one payment-sensitive browser action through a trusted runtime that owns the
page. The agent remains responsible for merchant discovery, shopping, cart construction, checkout
preparation, and the purchase proposal. The runtime binds the exact target the agent supplies, asks
Conto for policy authorization, claims it once, re-verifies the target, and performs the click. The
MCP result never contains a raw locator, payment credential, or reusable authorization.

Required inputs are a stable `idempotencyKey`, `browserSessionId`, a runtime-supported `locator`,
`actionKind`, `checkoutMethod`, the expected amount in USD cents (`amountMinor`), `purpose`,
`counterparty`, `cart`, and `providerPresentation`. Supported checkout methods are `CARD`,
`SHOP_PAY`, and `PAYPAL`. For a Link checkout, use [checkout checkpoints](#checkout-checkpoints-5).

The returned `requiredControlBoundary` identifies checkout preparation as `AGENT`, the payment
action as `CONTO_RUNTIME`, and the requirement for an exclusive payment path. It states the
integration contract. It does not attest that the agent host removed bypass tools. The browser
outcome reports dispatch evidence with settlement set to `UNVERIFIED`. Reconcile settlement through
merchant or provider evidence. For enforceable policy controls, the agent host must not also expose
an unrestricted payment click or submit tool.

### observe_browser_session

Read-only. Takes one `browserSessionId` and returns only the page's HTTPS origin, a bounded title,
and up to 50 visible link and button descriptors. It withholds page text, DOM, form values,
screenshots, cookies, storage, and URL paths and queries. Returned positional locators are inert
target references for a later `guarded_browser_checkout`. The tool cannot navigate, click, type,
submit, or run JavaScript.

### create_browser_session and release_browser_session

`create_browser_session` takes no parameters and returns only an opaque session ID, status, and
expiry. Creation is not idempotent. Do not retry it automatically after a timeout or network error,
because the earlier request may have succeeded.

`release_browser_session` takes the exact `browserSessionId` and revokes Conto ownership before the
runtime closes the session. Call it after checkout or abandonment. Reconcile an ambiguous release
instead of repeating it.

An agent browser host that already owns and registers its session with the runtime does not need
these two tools.

---

## Wallets and limits (3)

| Tool                  | Description                                        |
| --------------------- | -------------------------------------------------- |
| `get_wallets`         | List all wallets linked to this agent              |
| `get_wallet`          | Get details of a specific wallet                   |
| `get_spending_limits` | Get current spending limits and remaining balances |

### get_wallet

| Parameter  | Type   | Required | Description |
| ---------- | ------ | -------- | ----------- |
| `walletId` | string | Yes      | Wallet ID   |

---

## Budget requests (2)

| Tool                 | Description                                       |
| -------------------- | ------------------------------------------------- |
| `request_budget`     | Request a spending budget for human approval      |
| `get_budget_request` | Check budget request status and remaining balance |

### request_budget

Request a spending budget for payments. Submits a request for human approval. Only one active
budget request per agent at a time. Applies to all payment types (standard, x402, MPP).

| Parameter  | Type   | Required | Description                                         |
| ---------- | ------ | -------- | --------------------------------------------------- |
| `amount`   | number | Yes      | Requested budget in USDC                            |
| `purpose`  | string | Yes      | What this budget is for (shown to reviewer)         |
| `category` | string | No       | Spend category (e.g., API_PROVIDER, INFRASTRUCTURE) |

### get_budget_request

Check status and remaining balance of your budget requests. Use it to poll for approval after
submitting a request, and to monitor remaining budget during spending.

| Parameter   | Type   | Required | Description                                                          |
| ----------- | ------ | -------- | -------------------------------------------------------------------- |
| `requestId` | string | No       | Specific budget request ID                                           |
| `status`    | string | No       | Filter: `review_required`, `approved`, `declined`, `expired`, `used` |

---

## Transactions (3)

| Tool                | Description                             |
| ------------------- | --------------------------------------- |
| `list_transactions` | List transactions with optional filters |
| `get_transaction`   | Get details of a specific transaction   |
| `retry_transaction` | Retry a failed transaction              |

`list_transactions` returns paginated transaction records with related resource IDs, lifecycle
timestamps, authorization decisions, and network receipt data. `get_transaction` adds source-wallet
and recipient identities plus linked alerts, so an agent can explain and reconcile a payment.

`retry_transaction` requires `transactionId` and both `transactions:write` and `payments:execute`
scopes. It creates or resumes one retry payment after a definitive failure, preserving the original
receipt and rechecking execution controls. The response includes the retry request ID, transaction
ID when available, current status, and `statusUrl`. Inspect that URL after an ambiguous client
result. If the outcome is unknown or a reconciliation alert is open, a person must resolve it in the
dashboard before a retry runs.

### list_transactions

| Parameter | Type   | Required | Description                                            |
| --------- | ------ | -------- | ------------------------------------------------------ |
| `status`  | string | No       | Filter: `PENDING`, `CONFIRMING`, `CONFIRMED`, `FAILED` |
| `from`    | string | No       | Start date (ISO string)                                |
| `to`      | string | No       | End date (ISO string)                                  |
| `limit`   | number | No       | Results per page (default 50, max 100)                 |
| `offset`  | number | No       | Pagination offset                                      |

---

## Connected cards (5)

| Tool                      | Description                                                        |
| ------------------------- | ------------------------------------------------------------------ |
| `connected_card_connect`  | Get a secure browser link to connect a card to this agent          |
| `get_card_spending`       | Read reservation-aware card budgets and recorded amounts by status |
| `list_card_activity`      | Read this agent’s card requests and transactions                   |
| `get_card_purchase_setup` | Read masked purchase methods and obtain owner review navigation    |
| `connected_card_list`     | List connected cards and active mandates this agent can draw on    |

`connected_card_connect` takes no parameters and uses `transactions:read`. It returns a link to the calling agent's Funding tab. The owner signs in, chooses **Connect a card**, and completes secure setup and delegation. Return to chat and use `connected_card_list` to verify the intended masked card and active mandate. Opening the link does not connect a card, and the assistant must not ask for card numbers or security codes. Existing dashboard permissions and feature availability apply. This tool is available in MCP 0.7.0 and requires deployment of the matching setup endpoint.

Connected cards (Builder and Enterprise plans) are cards you enroll in Conto and delegate to this
agent. `connected_card_list` is read-only (`transactions:read`), takes no parameters, and returns
masked cards only. Each card exposes last4, brand, funding type, spending limits, and its active
mandates. No card number, security value, or provider token is ever returned.

No MCP tool draws a connected-card credential, because tool results land in the model transcript
and host logs. Draw credentials with the SDK (`conto.connectedCards.draw`).

---

## Conto Commerce (7)

| Tool                             | Description                                                   |
| -------------------------------- | ------------------------------------------------------------- |
| `purchase_start`                 | Start a purchase for your buyer from a product URL and a task |
| `purchase_status`                | Read status, phase, version, the required action and evidence |
| `purchase_respond`               | Answer an `agent_or_buyer` action, such as delivery details   |
| `purchase_cancel`                | Cancel before payment. Never refunds a submitted payment      |
| `recurring_purchase_list`        | List the repeat orders your buyer set up                      |
| `recurring_purchase_start_cycle` | Start the next order of a repeat order, named by a cycle key  |
| `recurring_purchase_skip_cycle`  | Skip one order of a repeat order                              |

`purchase_start` needs `buyerId`, `url`, `maxCostMinor` (US cents) and an `idempotencyKey` you
reuse when retrying. Pass `paymentMethodId` and `delegationId` together to choose the card.
Without them, the buyer's one authorization for that kind of store is used. For groceries at an
Instacart store, pass `groceryList` instead of `items`. It returns at once and
the purchase continues in the background. Pass `after` to `purchase_status` to also get the events
since that version.

The buyer reviews every purchase and verifies their card on a Conto page, so `purchase_respond`
refuses review, approval and card verification. Share `requiredAction.url` with the buyer instead.
No purchase tool returns card details or a store browser. See the [Conto Commerce API](https://conto.finance/docs/sdk/purchases).

A repeat order is set up by the buyer while approving a purchase. Start each order with
`recurring_purchase_start_cycle` and a `cycleKey` you reuse when retrying, then follow the returned
purchase with `purchase_status`. The buyer gets a heads-up before each order and can skip it.

---

## x402 protocol (5)

| Tool                 | Description                                                   |
| -------------------- | ------------------------------------------------------------- |
| `x402_get_budget`    | Check remaining x402 budget and recent usage                  |
| `x402_pre_authorize` | Check an x402 API payment against policies and get a grant    |
| `x402_pay`           | Check an x402 payment and have Conto sign it (managed wallet) |
| `x402_record`        | Record a completed x402 payment (single or batch)             |
| `x402_list_services` | List x402 services this agent has paid, with spend            |

Request and response fields are in the [x402 API reference](https://conto.finance/docs/guides/x402-api-payments#api-reference). The notes below cover
behavior an agent needs to handle.

**Pre-authorize.** `x402_pre_authorize` requires `amount`, `recipientAddress`, and `resourceUrl`.
`serviceDomain` is derived from `resourceUrl`. An approved decision returns `grantId`,
`grantSignature`, and `grantExpiresAt`, and reserves the amount against the agent's spend limits
for 10 minutes. Calling again with the same `paymentId` returns the same live grant. A declined or
review-required decision returns fixed `reasons` and `reasonCodes`, such as `SPENDING_LIMIT` or
`RECIPIENT_NOT_ALLOWED`, without rule values.

**Pay from a managed wallet.** `x402_pay` requires `payments:execute` and takes the pre-authorize fields plus
`paymentRequirements`, the accepted entry from the 402 challenge. `recipientAddress` must equal
`paymentRequirements.payTo`, and the challenge `scheme` must be `exact`. Conto evaluates the payment
exactly like `x402_pre_authorize`. Only an approved payment is signed: Conto signs an EIP-3009
authorization for that payee, amount, and USDC contract with the managed EVM wallet, so a declined
payment cannot be paid from it. The result adds `paymentHeaderName` and `xPaymentHeader`. Retry the
resource request with that header, then call `x402_record` with the grant and the settlement
`txHash`. Each grant is signed once, and a second call for the same payment returns
`GRANT_ALREADY_SIGNED`. Wallets Conto cannot sign for return `MANAGED_SIGNING_UNAVAILABLE`. For
those, call `x402_pre_authorize` and sign with your own wallet.

**Record.** `x402_record` requires `amount`, `recipientAddress`, `resourceUrl`, `txHash`, and
`paymentId`. Reuse the same `paymentId` when retrying. Send `batchItems` to record several
micropayments at once. Provide `payerAddress` and `network` together on both the pre-authorize and
record calls. They are required when the agent has more than one active wallet.

Pass `grantId` and `grantSignature` from the approved `x402_pre_authorize` or `x402_pay` result on
every record. A record without a valid, unexpired grant is accepted as a policy bypass: the result
includes `policyBypass: true`, the payment is flagged, and the account owner receives a critical
alert. Organizations can also have the agent frozen automatically, and `agentFrozen` reports whether
it was.

**Budget and services.** Pass an optional `sessionId` to `x402_get_budget` to include spend for that
session alongside the daily, weekly, and monthly totals. `x402_list_services` takes `period`
(`24h`, `7d`, `30d`, or `90d`, default `7d`) and `limit` (default 50, max 100).

---

## MPP protocol (4)

| Tool                | Description                                                  |
| ------------------- | ------------------------------------------------------------ |
| `mpp_get_budget`    | Check remaining MPP budget and recent usage                  |
| `mpp_pre_authorize` | Check an MPP charge or session against policies, get a grant |
| `mpp_record`        | Record a completed MPP payment (single or batch)             |
| `mpp_list_services` | List MPP services this agent has paid, with spend            |

Request and response fields are in the [MPP API reference](https://conto.finance/docs/guides/mpp-session-payments#api-reference).

**Pre-authorize.** `mpp_pre_authorize` requires `amount`, `recipientAddress`, and `resourceUrl`.
Set `intent` to `charge` or `session`. A `session` intent also requires `sessionId`, and
`depositAmount` sets the session deposit. An approved decision returns `grantId`, `grantSignature`,
and `grantExpiresAt`, and reserves the amount until `grantExpiresAt`. A `charge` grant covers one
payment of that exact amount and expires after 10 minutes. A `session` grant is a ceiling that
several `mpp_record` calls may draw down. It lasts for the session's maximum duration: the shortest
`MPP_MAX_SESSION_DURATION` that applies, or 24 hours by default.
Calling again with the same `challengeId` or `credentialId` returns the same live grant. A declined
or review-required decision returns fixed `reasons` and `reasonCodes`, as `x402_pre_authorize`
does.

**Record.** `mpp_record` requires `amount`, `recipientAddress`, `resourceUrl`, and `credentialId`.
Reuse the same `credentialId` when retrying. Send `closeSession: true` on a session's final record (mcp-server 0.5.3 or later). If the session charged nothing, send `amount: 0` with `closeSession: true` and the session grant. The result has `sessionClosed: true`. `txHash` and `paymentReceipt` are optional. Recording
rejects an unsuccessful receipt, a receipt bound to a different challenge, or a settled amount that
does not match `amount`. Receipt parsing is only a consistency check because the caller supplies
the payload, so a receipt-only record stays pending. An onchain transaction is marked confirmed only
after its sender, recipient, amount, and currency match the record. Without a valid, unexpired
grant, the record is accepted as a policy bypass, as with `x402_record`.

**Budget and services.** `mpp_get_budget` takes an optional `sessionId`, and `mpp_list_services`
takes `period` and `limit`, as the x402 tools do.

---

## Agent-to-agent (6)

| Tool                  | Description                                  |
| --------------------- | -------------------------------------------- |
| `a2a_send_request`    | Send a payment request to another agent      |
| `a2a_list_requests`   | List incoming and outgoing A2A requests      |
| `a2a_respond`         | Approve or reject an A2A request             |
| `a2a_execute`         | Execute an approved A2A payment              |
| `a2a_resolve_address` | Check if an address belongs to a Conto agent |
| `a2a_get_stats`       | Get A2A payment statistics                   |

### a2a_send_request

| Parameter             | Type   | Required | Description                                  |
| --------------------- | ------ | -------- | -------------------------------------------- |
| `amount`              | number | Yes      | Amount in USDC                               |
| `targetAgentId`       | string | No       | Target agent ID (or use targetWalletAddress) |
| `targetWalletAddress` | string | No       | Target wallet address                        |
| `purpose`             | string | No       | Why this payment is requested                |
| `invoiceId`           | string | No       | Invoice reference ID                         |
| `dueDate`             | string | No       | Due date (ISO string)                        |

### a2a_list_requests

| Parameter   | Type   | Required | Description                                                                                  |
| ----------- | ------ | -------- | -------------------------------------------------------------------------------------------- |
| `direction` | string | No       | `incoming`, `outgoing`, or `all` (default)                                                   |
| `status`    | string | No       | `review_required`, `approved`, `declined`, `processing`, `completed`, `failed`, or `expired` |
| `limit`     | number | No       | Results per page (default 50, max 100)                                                       |
| `offset`    | number | No       | Pagination offset                                                                            |

### a2a_respond

Approval succeeds only when the paying agent's policies allow the payment. If policy requires
human approval, the request stays pending with `code: "HUMAN_APPROVAL_REQUIRED"` until a person in
the paying organization approves it while signed in to Conto.

| Parameter   | Type   | Required | Description               |
| ----------- | ------ | -------- | ------------------------- |
| `requestId` | string | Yes      | A2A request ID            |
| `action`    | string | Yes      | `'approve'` or `'reject'` |
| `reason`    | string | No       | Optional rejection reason |

---

## Trust and counterparties (4)

| Tool                  | Description                                        |
| --------------------- | -------------------------------------------------- |
| `check_address_trust` | Get trust score and risk info for a wallet address |
| `list_counterparties` | List known counterparties with trust levels        |
| `get_counterparty`    | Get counterparty details and transaction history   |
| `create_counterparty` | Create or update a counterparty                    |

### list_counterparties

| Parameter    | Type   | Required | Description                                            |
| ------------ | ------ | -------- | ------------------------------------------------------ |
| `trustLevel` | string | No       | Filter: `TRUSTED`, `VERIFIED`, `UNKNOWN`, or `BLOCKED` |
| `limit`      | number | No       | Results per page (default 50, max 100)                 |
| `offset`     | number | No       | Pagination offset                                      |

### create_counterparty

| Parameter     | Type   | Required | Description              |
| ------------- | ------ | -------- | ------------------------ |
| `name`        | string | Yes      | Counterparty name        |
| `address`     | string | Yes      | Wallet address           |
| `type`        | string | No       | Type (default: 'VENDOR') |
| `category`    | string | No       | Category                 |
| `description` | string | No       | Description              |

---

## Alerts and approvals (6)

| Tool                          | Description                                                  |
| ----------------------------- | ------------------------------------------------------------ |
| `list_alerts`                 | List active alerts and notifications                         |
| `get_alert`                   | Get details of a specific alert                              |
| `respond_to_alert`            | Acknowledge or resolve an alert                              |
| `get_approval_requests`       | List pending approval requests                               |
| `review_payment_approval`     | Open the review for a held payment and wait for the decision |
| `get_payment_approval_status` | Read a review's recorded decision and payment state          |

### list_alerts

| Parameter  | Type   | Required | Description                                                |
| ---------- | ------ | -------- | ---------------------------------------------------------- |
| `status`   | string | No       | Filter: `open`, `in_review`, `resolved`, `dismissed`       |
| `severity` | string | No       | Filter: `low`, `medium`, `high` (`high` includes critical) |
| `limit`    | number | No       | Results per page (default 50, max 100)                     |
| `offset`   | number | No       | Pagination offset                                          |

### get_alert

| Parameter | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `alertId` | string | Yes      | Alert ID    |

### respond_to_alert

| Parameter | Type   | Required | Description                |
| --------- | ------ | -------- | -------------------------- |
| `alertId` | string | Yes      | Alert ID                   |
| `action`  | string | Yes      | 'acknowledge' or 'resolve' |

Note:

  An agent can acknowledge or resolve only operational notices, such as a failed store check or a
  usage heads-up. Every other alert is read-only to an agent, including policy violations, failed
  payments, approvals, freezes, and payments flagged for reconciliation. `respond_to_alert` returns
  a `403` for these, and a person must acknowledge or resolve them in the dashboard. `list_alerts`
  and `get_alert` still return them.

### get_approval_requests

Lists payment requests waiting for human approval and A2A requests. The agent cannot decide its own
payment requests. A person approves or rejects them from the email link or the dashboard. Answer
incoming A2A requests with `a2a_respond`.

| Parameter | Type   | Required | Description                                           |
| --------- | ------ | -------- | ----------------------------------------------------- |
| `type`    | string | No       | Filter: `payment`, `a2a_incoming`, or `a2a_outgoing`  |
| `status`  | string | No       | Filter: `PENDING`, `APPROVED`, `DENIED`, or `EXPIRED` |
| `limit`   | number | No       | Results per page (default 50, max 100)                |
| `offset`  | number | No       | Pagination offset                                     |

### review_payment_approval

Use it when a payment, an external wallet payment, or a checkout checkpoint is waiting for
approval. Conto returns a review page for that one payment. If your MCP client supports URL
prompts, it offers to open the page. Otherwise the agent shows you `reviewUrl`. Opening the page
approves nothing. An approver signs in to Conto and approves or rejects there, under the same
workflow rules as the dashboard.

The tool then waits up to `waitSeconds` for the recorded decision. If the request is still pending,
it returns `state: PENDING_REVIEW` and a `reviewSessionId`. Check again later with
`get_payment_approval_status`. Calling the tool again for the same payment resumes the same review.
The review link expires after 30 minutes. If the approval is still pending, status returns
`nextAction.type: START_REVIEW_AGAIN` and polling stops. Call `review_payment_approval` again
for the same payment to get a fresh link. This does not create another payment.

| Parameter           | Type   | Required | Description                                                                  |
| ------------------- | ------ | -------- | ---------------------------------------------------------------------------- |
| `paymentRequestId`  | string | One of   | The `requestId` from `request_payment`, `pay`, or `approve_external_payment` |
| `checkpointId`      | string | One of   | A checkout checkpoint with stage `AWAITING_APPROVAL`                         |
| `approvalRequestId` | string | One of   | An approval request ID                                                       |
| `waitSeconds`       | number | No       | Seconds to wait for the decision (default 40, max 300, 0 returns at once)    |

The result reports approval and payment separately:

| Field        | Description                                                                                   |
| ------------ | --------------------------------------------------------------------------------------------- |
| `state`      | `PENDING_REVIEW`, `APPROVED`, `REJECTED`, `EXPIRED`, `CANCELLED`, or `CHANGED`                |
| `summary`    | Amount, recipient or merchant, agent, purpose, why review is required, and what approval does |
| `approval`   | Approvals received and required, who can decide next, and when the request expires            |
| `payment`    | Whether the payment was sent, with the transaction when there is one                          |
| `nextAction` | What to do now, for example `execute_payment` or `checkout_checkpoint_confirm`                |
| `handoff`    | How the page was offered: `url_elicitation` with the client's response, or `link`             |

`CHANGED` means the payment details changed after review started. Start review again so the
approver sees the current details.

  A URL prompt the client accepts only means the page was offered. Conto never treats it as a
  decision, and an approval always needs a signed-in approver on the review page.

### get_payment_approval_status

Reads the recorded decision for a review, the approvals still needed, and whether the payment was
sent. Use it after `review_payment_approval` returns while the review is pending, or after your
client restarts. Polling it changes nothing.

| Parameter         | Type   | Required | Description                                          |
| ----------------- | ------ | -------- | ---------------------------------------------------- |
| `reviewSessionId` | string | Yes      | The `reviewSessionId` from `review_payment_approval` |

---

## Owner controls (5)

Ask about and change the rules that govern this agent from the chat. Changes are proposed here and
confirmed by an owner or admin on a focused Conto review page. The agent can never apply them.

| Tool                           | Description                                                                                |
| ------------------------------ | ------------------------------------------------------------------------------------------ |
| `get_owner_controls`           | Read every rule that applies to this agent, where it comes from, and what is left to spend |
| `propose_spending_rule_change` | Propose a policy or wallet-limit change for review                                         |
| `propose_agent_status_change`  | Propose pausing or resuming this agent for review                                          |
| `review_owner_action`          | Open the review for a proposed change or a held payment and wait for the outcome           |
| `get_owner_action_status`      | Read the recorded outcome of a proposed change or a payment review                         |

### get_owner_controls

Returns the organization, the agent, the key's scopes, every effective policy with how it applies
(`organization`, `agent`, or `wallet`) and which other agents share it, each wallet's limits, spend,
and what is left, how each wallet enforces them, and changes waiting for review. Rules from every
source apply together, so the strictest one wins. Use the policy IDs it returns when proposing a
change.

It also returns what the agent can propose:

- `ruleForms`: every kind of rule Conto can enforce, such as a per-payment cap, a daily budget, an
  approval threshold, a limit on how many payments it makes in an hour, an end date, or only paying
  approved payees. Each form lists the everyday phrasings that map to it, example rules ready for
  `propose_spending_rule_change`, and any caveat.
- `cannotEnforce`: requests no rule can express, such as a lifetime total or a specific item, each
  with the nearest control to offer instead.
- `today`: today's date in UTC, for requests like "until the end of the month".

### propose_spending_rule_change

Validates a change with the same checks as the Conto dashboard assistant and stores it for review.
It changes nothing the agent can spend with.

| Parameter | Type   | Required | Description              |
| --------- | ------ | -------- | ------------------------ |
| `action`  | string | Yes      | One of the actions below |
| `input`   | object | Yes      | Arguments for the action |

| Action                                                  | `input`                                                                                                                                                    |
| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `create_policy`                                         | `name`, `policy_type`, `rules` (`rule_type`, `operator`, `value`, `action`). Assigned to this agent only                                                   |
| `create_policies`                                       | `policies`: 2 to 5 `create_policy` shapes, reviewed together                                                                                               |
| `update_policy`                                         | `policy_id`, and any of `name`, `description`, `priority`, `rules` (replaces the rule set)                                                                 |
| `delete_policy`, `activate_policy`, `deactivate_policy` | `policy_id`                                                                                                                                                |
| `assign_policy_to_agent`, `remove_policy_from_agent`    | `policy_id`                                                                                                                                                |
| `update_agent_wallet_limits`                            | `wallet_id` (optional with one wallet), `spend_limit_per_tx`, `spend_limit_daily`, `spend_limit_weekly`, `spend_limit_monthly`, or a `remove_*_limit` flag |

An agent can only change policies that already govern it. A shared policy lists every agent it
affects, and the review shows the combined effect with the rules that stay in force, such as a
stricter organization rule. A change that cannot be made returns `proposed: false` with the reason,
including when your organization requires governance approval for policy changes. Proposing the
same pending change again returns it.

For example, "give this agent a $100 daily budget and ask me above $25" is one `create_policies`
change with a `SPEND_LIMIT` policy (`DAILY_LIMIT`, `LTE`, `"100"`, `ALLOW`) and an
`APPROVAL_THRESHOLD` policy (`REQUIRE_APPROVAL_ABOVE`, `GREATER_THAN`, `"25"`, `REQUIRE_APPROVAL`).

A rule change never approves or retries a payment that was already held or blocked. Request it
again to have it checked under the current rules.

### propose_agent_status_change

| Parameter | Type   | Required | Description           |
| --------- | ------ | -------- | --------------------- |
| `status`  | string | Yes      | `paused` or `active`  |
| `reason`  | string | No       | Shown to the reviewer |

Pausing stops the agent's key from starting, executing, or confirming payments. Payments already
waiting for approval stay there, and approving one still sends it from a Conto wallet. Submitted
payments are not reversed. The proposal states how many of each the agent has. A paused agent can
still propose being resumed and read the status of its changes.

### review_owner_action

Opens the focused review page for a proposed change (`changeId`) or a payment waiting for approval
(one of `paymentRequestId`, `checkpointId`, or `approvalRequestId`, the same as
`review_payment_approval`), then waits up to `waitSeconds` (default 40, max 300) for the outcome.
Clients that support MCP URL elicitation offer to open the page. Others get `reviewUrl` to show.

The reviewer signs in to Conto, and the page prepares the change again as them. Confirming applies
it once, as the reviewer, only if the targets are unchanged since the agent proposed it and the
change matches what the page showed. Otherwise the change is `STALE` and nothing applies.

  An accepted URL prompt, an automatic hook answer, or a "yes" in the chat is never a confirmation.
  A change applies only after a signed-in owner or admin confirms it on the review page.

### get_owner_action_status

| Parameter         | Type   | Required | Description                                 |
| ----------------- | ------ | -------- | ------------------------------------------- |
| `changeId`        | string | One of   | A proposed change                           |
| `reviewSessionId` | string | One of   | A payment review from `review_owner_action` |

Change statuses are `PENDING_REVIEW`, `APPLYING`, `APPLIED`, `NO_CHANGE`, `REJECTED`, `EXPIRED`,
`STALE`, `BLOCKED`, and `FAILED`, each with a `nextAction`. Reading status never applies a change or
sends a payment.

---

## Analytics and info (7)

| Tool                       | Description                                                             |
| -------------------------- | ----------------------------------------------------------------------- |
| `get_analytics`            | Get spending analytics and trends                                       |
| `get_policies`             | List the policies that govern this agent, including through its wallets |
| `request_policy_exception` | Request a policy change for review                                      |
| `list_policy_exceptions`   | List and reconcile policy change requests                               |
| `get_agent_info`           | Get information about this agent                                        |
| `get_all`                  | Load aggregate agent data for compatibility with old flows              |
| `get_setup`                | Get agent setup and configuration                                       |

`get_analytics` takes an optional `period`: `day`, `week`, `month` (default), or `year`.

Analytics totals include confirmed wallet payments in USD or dollar stablecoins, captured or
settled USD card charges, and reported card and checkout purchases. For connected cards, Conto
counts the reported charge; for checkout checkpoints, it counts the approved amount once reported
paid. These reports do not independently verify settlement. Unused card details, transfers between
your own wallets, and test activity do not count as real spend. Budget availability can differ
because it also accounts for held purchases.

### get_setup

Returns the agent, linked wallets, effective policies, scopes, and the versioned setup
`diagnostics` described in [setup diagnostics](https://conto.finance/docs/sdk/installation#setup-diagnostics). The tool's
output schema describes them. Call it first to learn the environment, whether the key can request
and execute payments, and which remaining issues belong to the agent or to an owner.

For a key Conto recognizes but will not serve, such as a paused or frozen agent, an expired or
revoked key, or a key without `agents:read`, `get_setup` returns an error result that still carries
the diagnostics. Relay the owner actions it lists instead of retrying.

### request_policy_exception

Use this when a payment is blocked and the agent needs a counterparty, spending-limit,
time-window, category, or custom policy change reviewed. The API key must include the
`policies:exceptions` scope.

| Parameter | Type   | Required | Description                                                                                   |
| --------- | ------ | -------- | --------------------------------------------------------------------------------------------- |
| `type`    | string | Yes      | `ADD_TO_WHITELIST`, `INCREASE_SPEND_LIMIT`, `EXTEND_TIME_WINDOW`, `ADD_CATEGORY`, or `CUSTOM` |
| `reason`  | string | Yes      | Why the policy change is needed                                                               |
| `urgency` | string | No       | `LOW`, `NORMAL`, `HIGH`, or `CRITICAL`                                                        |
| `details` | object | No       | Structured counterparty, policy, limit, category, time-window, or payment details             |

The response includes the request reference, normalized type and priority, current review status,
timestamps, and a dashboard review URL.

### list_policy_exceptions

List policy change requests with their review statuses and pagination. The API key must
include the `policies:exceptions` scope.

| Parameter | Type   | Required | Description                                        |
| --------- | ------ | -------- | -------------------------------------------------- |
| `status`  | string | No       | `pending`, `in_review`, `resolved`, or `dismissed` |
| `limit`   | number | No       | Results per page (default 50, max 100)             |
| `offset`  | number | No       | Pagination offset                                  |

### get_all

`get_all` is retained for compatibility with existing MCP integrations. New integrations should
use `get_setup` and the dedicated list tools.

Use the optional `include` parameter to request only the sections you need. A section is returned
only when the API key has its corresponding read scope. `omittedSections` identifies sections that
could not be returned and the scope each one requires.

| Parameter         | Type   | Required | Description                                                                                                                             |
| ----------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `include`         | string | No       | Comma-separated `agent`, `wallets`, `policies`, `counterparties`, `transactions`, `alerts`, `analytics`, `capabilities`, or `endpoints` |
| `analyticsPeriod` | string | No       | `day`, `week`, `month`, or `year`                                                                                                       |

---

## Audit and rate limits (2)

| Tool              | Description                                         |
| ----------------- | --------------------------------------------------- |
| `get_audit_logs`  | Get audit logs of agent actions                     |
| `get_rate_limits` | Get published SDK request ceilings and usage counts |

### get_audit_logs

| Parameter  | Type   | Required | Description                            |
| ---------- | ------ | -------- | -------------------------------------- |
| `action`   | string | No       | Filter by action type                  |
| `resource` | string | No       | Filter by resource type                |
| `from`     | string | No       | Start date (ISO string)                |
| `to`       | string | No       | End date (ISO string)                  |
| `limit`    | number | No       | Results per page (default 50, max 100) |
| `offset`   | number | No       | Pagination offset                      |

## Simulated payment receipts

Sandbox payments are simulated. Every receipt has `transactionId` and `settlementMode`, and `txHash`
is present only for an onchain transfer. `check_payment_status` reports `settlementMode` as `live`,
`test`, or `unknown`. Never report a `test` receipt as an onchain transfer.

## Controlled-payment evidence

`get_test_report` takes required `allowed` and `denied` request IDs and optional `review` and
`reviewOutcome` (`approved`, `denied`, or `expired`). Use requests from the same agent, wallet,
and currency. The SDK key needs `audit:read` and `transactions:read`; new sandbox keys include
both. The tool reads the report without executing a payment or saving a file. To persist the
report with owner-only permissions, use [conto test-report](https://conto.finance/docs/cli/commands#save-a-controlled-payment-test-report).

### Card spending and purchases from chat

After connecting a card, call `get_card_spending` to inspect the calling agent's card assignment and available budget. Usage includes reservations. Available budget is an upper bound before policy, mandate, merchant and final checkout checks; it is not available credit at the issuer. `recordedAmountsByStatus` groups recorded transactions by currency and status. An executor report or a completed request is not proof of settlement. Refund transaction amounts are not verified refund amounts or net spending.

`list_card_activity` returns linked requests and transactions once, with evidence and status. Both tools accept `cardId`, `environment` (`live` by default), and inclusive `from` / exclusive `to` dates. The default reporting range is the current calendar month, with a maximum range of 93 days. Activity accepts `limit` (1–100) and `offset` (0–1000). Budget windows are returned separately and always match execution counters. Both reads require `transactions:read`. Test-card reporting is available separately from live-card access.

A connected card needs separate authority to use Conto checkout. Call `get_card_purchase_setup`, then propose `enable_card_purchases` through `propose_spending_rule_change`, with `{ card_id, per_purchase_minor, daily_minor }` in USD cents. The signed-in owner confirms the exact card and limits on the existing change review page. This explicitly routes the binding through Conto checkout and stops direct credential draws for it. It does not take over an agent already mapped to a different buyer, revive revoked delegations, or expand an existing buyer's confirmed limits. Existing buyer review and card verification remain required.

Once setup is ready, ask which masked card to use when several are eligible. Pass its `paymentMethodId` and `delegationId`, along with `buyerId` and the all-in maximum, to `purchase_start`. Follow `purchase_status`. For a human step in an owner-enabled setup, call `get_card_purchase_setup` with `purchaseId` and the matching environment, and show `ownerReviewUrl`. The exact owner signs in and continues to the existing secure purchase page. The chat never receives a hosted buyer-session entry token. An externally managed buyer still uses its application's existing setup and hosted-session flow.

To change assignment limits, propose `update_agent_card_limits` with `{ card_id, spend_limit_per_tx, spend_limit_daily, spend_limit_weekly, spend_limit_monthly }` in USD amounts. Supply all four limits; weekly/monthly may be null. Card-wide and purchase-delegation caps still apply, and existing counters are retained. Propose `revoke_agent_card_access` with `{ card_id }` to stop new credentials. Revocation does not freeze the underlying card or retract credentials already issued.

These tools and actions require MCP 0.7.0 and deployment of the matching server endpoints. They operate on the authenticated agent; they do not add account-wide agent selection.

## Shared spending preview

`get_shared_budgets` reads this agent's [shared budgets](https://conto.finance/docs/sdk/shared-budgets) and what is available, held, settled and refunded. `preview_shared_spending` takes exact-string `amount`, `currency`, `sourceId` (managed wallet) and `merchant`, and optional `purpose`, `taskRequestId` and `purchaseKey`. It checks shared budgets without holding funds or approving a payment. Continue through the existing payment flow, and never switch sources to get around a denial. These tools need MCP 0.7.1 or later. A budget also stops several other payment paths. See [what a budget stops](https://conto.finance/docs/sdk/shared-budgets#what-a-budget-stops).
