ToolPause
Docs Product Open Inbox

Developer quickstart

Get from zero to a gated tool call in about ten minutes.

What you’re building

Agent / SDK / MCP
       │
       ▼
  POST /v1/evaluate     → policy: allow | require_approval | deny
       │
       ├─ allow  → run tool, then optional /complete
       ├─ deny   → stop (fail closed)
       └─ pause  → human clears in Inbox → /decide → agent /complete with fingerprint

Humans decide in the Inbox. Agents never skip the bound fingerprint.

1. Run ToolPause

pip install "toolpause[server]"
toolpause-server
# → http://127.0.0.1:8000/

Open / for the Inbox. Create an account under Team, or sign in if you already have one.

2. Protect a tool (Python)

pip install toolpause
from toolpause import protected_tool

@protected_tool(
    risk="high",
    backend_url="http://127.0.0.1:8000",
    api_key="YOUR_KEY",  # Settings → Rotate API key when auth is on
    agent_id="billing-agent",
)
def send_refund(customer_id: str, amount: float) -> dict:
    return {"status": "refunded", "customer_id": customer_id, "amount": amount}

send_refund("cust_42", 49.99)  # pauses until Inbox Approves

TypeScript: npm install toolpause — see SDK.

3. Clear the call in Inbox

  1. Open http://127.0.0.1:8000/
  2. Select the pending item
  3. Approve, Edit args then approve, Deny, or Respond (answer as the tool — no execute)
  4. The agent resumes; only the bound arguments can complete

4. Prove binding

See the bake-off demo: evaluate → fingerprint → wrong fingerprint rejected → complete.

5. Configure policy

In the UI under Rules:

Control Effect
Risk levels Default allow / pause / deny
Allow / deny lists Tool names and tags
Per-tool overrides Force decision for one tool
Routing Assignee by tag / risk / agent
MCP catalog / gate Catalog for coding agents

Use Try before you ship to dry-run a call without creating an approval.

Auth for agents

Header When
Authorization: Bearer <session> Logged-in operator
X-API-Key: <key> Service / agent key from Settings → Rotate API key

Set ACTIONGATE_REQUIRE_AUTH=1 to require auth on all /v1/* routes.

Next reads

Doc Why
SDK Decorator, HTTP client, framework wrappers
API evaluate → decide → complete contract
MCP Claude Code / MCP
Security Fingerprints, fail-closed, reject codes
Channels Slack / email / webhooks

Common mistakes

ToolPause docs Marketing · Inbox