{"uid":"cap_VDPbE4nimF5Rri9CmgW94","slug":"trollbridge-tool-gate-agent-tool-policy-gate-3ccb80cf","name":"TrollBridge /tool-gate — Agent Tool Policy Gate","description":"The insurance booth for AI agents, with Mini's Agent Supply Store on the side of the road. One hundred checkpoints: pre-transaction safety lanes (honeypot, approval-risk, rug-score, receipt-check, tx-dryrun, permit-scan, airdrop-verdict, deployer-history, wallet-watch, secret-scan at $0.02 USDC per call; the protection tier — /contract-check, /approval-screen, /tx-plain-english, /honeypot-check, /tx-simulate, /redteam, /skill-scan, /verdict, /egress-audit, /tool-gate, /airlock, /repo-scan, /prove, /task-scope — at $0.10; the one-call /shield don't-get-rugged screen at $0.25; the full /preflight bundle at $0.05), bounty intel (bounties, fresh, verdicts, deadlines, sweepstakes, opportunities) at $0.02 USDC per call, trader intel (/prices and /quant at $0.02; /enrich and /token-check at $0.05; /contract-check and /honeypot-check at $0.10; /sec-facts at $0.05), market intel (/markets and /search at $0.05; /grants at $0.02), DeFi intel (/yields and /new-pairs at $0.05; /gas and /defi at $0.02), AI intel (/models at $0.02), agent-ops intel (/prompt-cost, /model-picks, /rpc-speed, /terms-tldr, /scrape, /gigs, /retry-verify, /idempotency, /verify-independent at $0.02; /site-watch, /wallet-check, /code-run, /regulatory-pack, /sage, /cron-watch, /caveat-check, /tripwire, /escrow, /trust, /bridge-fees, /dao-votes, /dev-activity, /dex-arb, /dydx-perps, /funding-rates, /gas-predict, /hack-tracker, /long-short-ratio, /lp-yields, /mev-scan, /open-interest, /perp-basis, /polymarket-odds, /rwa-watch, /sentiment, /stablecoin-flows, /tokenomics, /top-movers, /whale-watch, and /yield-stable at $0.05; /approval-screen, /tx-plain-english, /tx-simulate, and /task-scope at $0.10; /scam-scan deep scan at $5.00 or 30-day subscription at $30.00), supply store (/road-pack combo meal at $0.05; curated datasets, the /audit-prep pre-audit review, and the /prove-state symbolic-execution run at $1.00; the /audit AI-agent audit at $25.00). Every lane answers before money moves — heuristic verdicts, not audits. Don't get rugged.","url":"https://mini-tollbooth.onrender.com/tool-gate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["tool","args"],"properties":{"args":{"type":"string","description":"JSON object of the tool args. URL-encoded."},"tool":{"type":"string","description":"Tool/function name the agent wants to call."},"policy":{"type":"string","description":"Optional JSON policy: {allow, deny, arg_constraints, secret_strip, unknown}. URL-encoded."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"lane":"/tool-gate","tool":"send_payment","audit":{"args_keys":["amount_usd","to"],"decided_at":"2026-10-02T08:00:00Z","policy_rules_applied":2},"reasons":[{"rule":"amount-cap","detail":"…"}],"summary":"…","decision":"MODIFY","description":"Policy decision API for pre-execution tool gating — submit a tool name + args + your policy and get a structured ALLOW / DENY / MODIFY (with rewritten args) decision, structured reasons, and audit metadata. Heuristic policy decision, not a security guarantee ($0.10).","rewritten_args":{"to":"0x...","amount_usd":100}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cZ6BQzN1gjrsWjDQKIEhc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates a proposed agent tool call against a policy and returns a structured ALLOW / DENY / MODIFY decision with rewritten args and audit metadata.","exampleAgentPrompt":"Before you call send_payment with amount_usd=500 and to=0xABC, run it through the tool-gate with my policy that caps payments at $100 and blocks any unknown recipients — tell me if it should be allowed, denied, or modified.","exampleUseCases":[{"title":"Cap agent payment amounts","prompt":"My agent wants to call send_payment with amount_usd=2000 and to=0xDEAD — check it against my policy that denies payments over $100 and tell me if it should be allowed, blocked, or rewritten to a safe amount."},{"title":"Block disallowed tool calls","prompt":"Before my agent calls transfer_tokens, run it through the tool-gate with a policy that only allows read-only tools — I need a clear ALLOW or DENY decision with the reason before it executes anything."},{"title":"Audit arg constraints before DeFi action","prompt":"My agent is about to call swap_tokens with args slippage=50 and tokenOut=SCAM — gate that call against my policy that restricts slippage to under 5% and denies unknown tokens, and show me what the rewritten args would look like if it gets a MODIFY."}],"resultDescription":"A JSON object containing: the decision (ALLOW, DENY, or MODIFY), rewritten_args if the decision is MODIFY, a human-readable summary, a list of reasons with rule names and details, and an audit block with the keys checked, policy rules applied count, and timestamp.","failureModes":["Missing required 'tool' or 'args' query parameters returns an error","Malformed or non-URL-encoded args JSON causes parse failure","Invalid or missing policy JSON silently falls back to heuristic defaults","Payment of $0.10 USDC not made or rejected causes 402 response","Overly broad or conflicting policy rules may produce unexpected MODIFY decisions","Service hosted on render.com free tier may have cold-start latency or downtime"],"whenToPreferThis":"Use /tool-gate when you need a structured, policy-driven pre-execution decision on a specific agent tool call — especially for financial, state-modifying, or high-risk actions. Prefer this over ad-hoc prompt-based guardrails when you need machine-readable ALLOW/DENY/MODIFY output with audit trails, argument rewriting, and explicit rule attribution. Best for agent orchestration layers that need deterministic policy enforcement at $0.10/call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:45:40.987Z","isFirstParty":false,"canonicalSlug":"trollbridge-tool-gate-agent-tool-policy-gate-3ccb80cf"}