Tool Catalog
A tool is any HTTP API an agent reaches through the gateway. Pick from the curated connector library (base URL + auth pre-filled) or add any HTTP API as a custom tool. Each one is gated, and its key stays in Regent’s vault.
A tool is callable only when it has both a catalog entry (routing, added below) and a
vaulted key (the secret, connected by a human at /connect/gateway). Matched by name.
How to add a tool
- Dashboard → Connect → Set up Cloud Gateway → Add a tool → pick a connector (or Custom API) → Add. Then Connect a key and paste the secret.
- Over MCP →
add_gateway_tool { "name": "slack", "base_url": "https://slack.com/api" }(Admin MCP), then a human vaults the key.
Money tools bind a mandate (mandate_id) so their spend is enforced; everything is still
subject to your Cedar policy.
Built-in
| Tool | Use case |
|---|---|
pay (custody) | Pay from the agent’s Custodian wallet — on-chain, KMS co-signed by Regent, checked against the mandate. “Pay this supplier 5 USDC.” Blocked over-limit or by policy before any signing. |
Payments
| Tool | Use case |
|---|---|
| Stripe | Agent pays an invoice or issues a refund — capped by a $X/tx mandate; over-limit charges are denied, every charge is anchored with its decision id. |
| Modern Treasury | Initiate an ACH / bank payment — spend-limited + audited; escalate large transfers to a human. |
| Bank Core (generic) | Your internal bank-core API — instance-specific host; the credential is vaulted, egress is locked to it. |
| Agentcard | Agent shops at Amazon, Walmart, Target… with the owner’s own card stored at Agentcard — the gate decides on the merchant’s cart total (its ceiling, in USD) before the cart is confirmed; the shop tool can never confirm. How it works → |
| x402 | Agent pays a web resource that answers 402 — the gate decides on the 402’s own figures (USDC, test networks), a connected wallet signs exactly those, the transfer is read from the chain before the decision closes. How it works → |
Comms
| Tool | Use case |
|---|---|
| Slack | Agent posts a status to #ops — Cedar can restrict which channels; rate limits stop a loop from flooding. |
| Twilio | Send an SMS/voice alert — rate-limited so a hijacked agent can’t blast messages; token never leaves the vault. |
| SendGrid | Transactional email — gated + audited; policy can require an approved template. |
| AgentMail | Give the agent its own inbox (send + receive) — policy allowlists recipient domains, rate-limits sends, and audits every message. |
CRM & Sales
| Tool | Use case |
|---|---|
| Salesforce | Read/write contacts, opportunities, cases — object-level policy: “deny delete on Contact.” |
| HubSpot | Log an activity or update a deal — the OAuth token is vaulted; the agent only gets scoped writes. |
Compliance
| Tool | Use case |
|---|---|
| Chainalysis | Screen a wallet/address for sanctions before a payout — the result is a verified fact your policy can key on. |
| Persona · Onfido | Run identity verification — every check is audited; keys never touch the agent. |
Data
| Tool | Use case |
|---|---|
| Supabase (PostgREST) | Query/write your DB over HTTP — table-level control via policy; instance host is per-tenant. |
| Hasura | GraphQL over Postgres — the admin secret is vaulted; the agent can only run allowed operations. |
Docs & Storage
| Tool | Use case |
|---|---|
| DocuSign | Send a document for signature — scoped, audited; escalate high-value envelopes. |
| Box · Google Drive | Fetch or store a file — scoped access, credential vaulted, responses can be redacted before the agent sees them. |
Dev & Workflow
| Tool | Use case |
|---|---|
| GitHub | Open an issue or a PR — the token never touches the agent; policy can restrict repos. |
| Linear · Notion | Create issues / update docs — scoped writes, full audit trail. |
AI providers
| Tool | Use case |
|---|---|
| OpenAI · Anthropic | Call an LLM with a vaulted key — rate-limited, and the key can’t leak through the agent. |
Observability
| Tool | Use case |
|---|---|
| Datadog | Push a metric or query monitors — read-only can be enforced; API key stays vaulted. |
Custom tools
A custom tool whose base_url points at a library payment provider’s host (for example
https://api.stripe.com added by hand) is treated as that provider: a mandate is required,
the operations map and the response redaction apply. Naming the connector is not what
makes a tool money; the host it talks to is.
Any HTTP API works: give it a base URL and a bearer token. Use a bare base URL
(https://api.example.com, not .../v1) — the agent supplies the path. Add it as Custom API
in the dashboard or via add_gateway_tool.
The tool name in the catalog and the vaulted-key name must match exactly. Add the tool first, then connect its key.
The purchase currency
The gate checks a payment against the agent’s budget in the payment’s currency, and the currency comes from the rail, never from the agent. A money tool states where it is read:
| Setting | Meaning |
|---|---|
currency: "KZT" | fixed — every payment through this tool is in KZT (Freedom Pay, a single-currency processor) |
currency_from: "body:currency" | the provider’s own request field names it (Stripe’s currency); the fixed currency is the fallback when the field is absent |
currency_from: "lookup:currency" | the provider’s price lookup answers with it (a cart total that carries its currency) |
A money write whose currency cannot be read is refused (CURRENCY_UNRESOLVED), and facts an
agent sends (amount, currency, mandate_id) are dropped before the decision.
Amounts a provider counts in minor units (Stripe: 1000 is $10.00, but ¥1 000 and
1.000 KWD) are divided by the purchase currency’s own decimals from the currency registry,
not by a fixed 100: a tool declared with amount_divisor: 100 and a rail-named currency, or
with amount_in_minor_units: true, follows the currency. A fixed amount_divisor on a tool
without a rail-named currency is used as written. The Stripe settlement webhook reads the
same way, and a charge.refunded event settles what was not refunded (a $5 refund on
$50 leaves $45 settled; a full refund leaves 0).
The counterparty
Caps per seller in a mandate are checked against the counterparty the rail names:
| Setting | Meaning |
|---|---|
payee_from: "fixed:arbuz.kz" | a single-merchant tool: every payment goes to that seller |
payee_from: "body:payTo" | the request’s own field is the destination the provider pays (an x402 payTo, a custody to address, a Stripe Connect destination) |
payee_from: "lookup:merchant" | the provider’s amount lookup names the merchant per item |
The gateway puts it in the decision as payee with payee_source: rail and signs the
decision request with its own key, so the gate records the seller as the rail’s word even for an
agent that cannot sign (key_custody: pep in the receipt). A payee the agent sends is dropped.
A tool without payee_from names no counterparty, and a direct SDK call’s payee is recorded as
the agent’s word (payee_source: agent).
What each Stripe endpoint does
A payment connector is one tool with many endpoints, and they do not all move money the same
way. For Stripe the gateway carries a built-in operations map (20.10.2026): per path, what
the call does, where its amount is and who the counterparty is. The decision context carries
op and payee_kind, and both ride into the token and the receipt.
| Path | Kind | Amount | Counterparty (payee_kind) |
|---|---|---|---|
POST v1/payment_intents, v1/charges | charge | amount | transfer_data[destination] if present (money leaves to a connected account, destination), else customer (customer); a charge may name none |
POST v1/payment_intents/{id}/confirm, …/capture, v1/charges/{id}/capture | charge | read from the object (GET it first) | |
POST v1/payment_intents/{id} | charge | amount when the update carries one; without it the call moves no money. With one, the intent’s earlier decision (read from its metadata.decision_id) is voided once Stripe accepted the update, so one payment never holds two reservations | as above |
POST v1/checkout/sessions | charge | Σ line_items[i][price_data][unit_amount] × quantity; a price id is looked up (GET v1/prices/{id}, its currency is the charge’s); a metered price fails closed | customer |
POST v1/payment_links | offer | Σ over line_items (prices looked up); decided on the total, settled at nothing — the money moves when a customer pays the link | |
POST v1/quotes | offer | Σ over line_items (prices looked up); settled at nothing | customer |
POST v1/quotes/{id}/accept | charge | the quote’s amount_total; settled at nothing (the invoice it raises settles) | the quote’s customer |
POST v1/subscriptions | charge | Σ over items (prices looked up): the first period; settled at nothing. Stripe bills later cycles by its own invoices, which this map does not decide per cycle | customer |
POST v1/invoices/{id}/pay | charge | the invoice’s amount_due | the invoice’s customer |
POST v1/invoices/{id}/finalize | charge | the invoice’s amount_due; settled at nothing (finalizing charges it when collection is automatic, sends it otherwise) | the invoice’s customer |
POST v1/transfers | transfer | amount | destination, required (destination) |
POST v1/payouts | payout | amount | payout (the owner’s own bank) |
POST v1/refunds | refund | amount, counted as the agent’s own spend (the refunded charge stays counted: refunding one’s own payment never nets a refund cap to zero) | the customer of the payment it returns, read from payment_intent or charge (customer) — so a cap per customer holds for money going back, not only for money taken; a guest payment has none |
POST v1/credit_notes | refund | amount | the invoice’s customer |
POST v1/customers/{id}/balance_transactions | credit | amount, sign dropped (Stripe writes a credit as a negative amount) | the customer in the path |
POST v1/coupons | discount | amount_off when set, decided like a spend of that amount and settled at nothing. A percent_off coupon has no amount: it is decided as a discount with percent_off and duration in the context, for a policy to refuse (percent_off == "100") | |
POST v1/disputes/{id}/close | refund | the dispute’s amount (closing accepts the loss) | |
POST v1/disputes/{id} (evidence) | dispute | decided and logged, no amount | |
POST v1/invoices/{id}/void, …/mark_uncollectible, v1/credit_notes/{id}/void, v1/quotes/{id}/cancel, v1/payment_intents/{id}/cancel, v1/checkout/sessions/{id}/expire; DELETE v1/subscriptions/{id} | cancel | a write-off or a cancellation: no amount, no mandate, op: cancel on the decision for the policy to gate | |
POST v1/customers, payment_methods, setup_intents, products, prices, tax_rates, promotion_codes, invoiceitems, webhook_endpoints, files, tokens; v1/invoices (draft), v1/invoices/{id} (update, send), v1/subscriptions/{id} (update), v1/quotes/{id} (update, finalize), v1/payment_links/{id}, v1/coupons/{id} | non_money | decided and logged, no amount, no mandate | |
anything else (v1/subscription_schedules, Treasury v2 outbound payments) | flat amount or AMOUNT_UNRESOLVED |
Raw card data is refused on every path before any of this runs (CARD_DATA_NOT_ALLOWED): a
card[number], cvc or expiry field on any tool, and on a money tool any value in the body
that has the shape of a card number (13–19 digits that pass the Luhn check). The refusal
names the field, never the value. Stripe’s own tokens (pm_…, tok_…, pm_card_visa) pass.
Where Stripe’s own answer names what settled (a confirmed PaymentIntent’s amount_received,
a refund’s amount, status succeeded), the gateway settles the decision from it at once;
the webhook, when it comes, reconciles against that figure. Minor units follow the
currency’s decimals here too. A custom tool may carry its own operations list with the same
fields (match, kind, amount, amount_abs, payee, payee_kind, payee_required,
settle_from_response, settle_zero, context_fields). Kinds that move money: charge,
transfer, payout, refund, credit, discount, offer; cancel, dispute and
non_money move none but the first two keep their name on the decision (op).
Together with Stripe’s own approval rules. When the key you vaulted is an agent-tagged key,
Stripe may pause an action under one of its approval rules after Regent allowed it. The gateway
answers 202 PROVIDER_APPROVAL_PENDING with Stripe’s own code, its approval_request_id (apreq_…, also in X-Regent-Provider-Approval-Id) and request log: the agent must
not retry (Stripe runs the action itself when a reviewer approves), the decision’s hold stays
for the settlement event; a rejected or expired request is learnt by asking Stripe and the
decision voided. A rule that blocks is an ordinary refusal (action_blocked, passed through; the hold is released). See
Your own Stripe account.
A configured source that cannot be read fails closed, like the amount: a body: field the
request does not carry, or a lookup: the provider answers without the merchant, refuses the
money write (PAYEE_UNRESOLVED) rather than recording it nameless — a cap per seller can never be
side-stepped by leaving the seller out.