Skip to main content
WardenOpen-source AI scannerExplore →
Layer 3 — Guardian

ToolGuard™ — The Function-Call Firewall

Every function call. Every MCP request. Classified, governed, and audited.

ToolGuard is SharkRouter's deny-by-default function-call firewall for AI agents. It intercepts every tool call and MCP request through a 7-guard chain — PIGuard, SchemaGuard, ScopeGuard, TaintGuard, SemanticGuard, RateGuard, and MoralCompass — adding less than 15ms of latency. Cost-ordered, first-block-wins architecture ensures the cheapest guard catches the threat first.

SCAN
BLOCK
DRY-RUN
PASS

7-Guard Pipeline

Every function call passes through all seven guards in sequence. Total pipeline latency: ~15ms.

01PIGuard
~2ms
02SchemaGuard
~1ms
03ScopeGuard
~2ms
04TaintGuard
~3ms
05SemanticGuard
~4ms
06RateGuard
~1ms
07MoralCompass
~2ms

Deny by Default

If it's not in the policy, it doesn't execute. Zero exceptions. Every tool call requires an explicit allow rule. No implicit permissions. No fallback to open access.

Live Decision Feed

ToolGuard™ Live
delete_records(batch_7)
DRY-RUN
read_portfolio(user_42)
PASSED
execute_trade(AAPL, 500)
BLOCKED

One-Line Integration

No SDK. No wrapper. Just change the base URL.

# One line change
client = OpenAI(base_url="https://api.sharkrouter.ai/v1")

See ToolGuard Block a Live Attack

Try the interactive demo and watch every guard evaluate in real time.

We use cookies for analytics to understand how visitors use our site. No advertising cookies. Privacy Policy