Skip to main content
Glama

Outbound Agent URL SSRF, Metadata & Secret Exfiltration Firewall

audit_outbound_egress_url
Read-onlyIdempotent

Validate outbound destination URIs before network dispatch to block cloud metadata IPs, private IP ranges, and query-string secret exfiltration. Use for pre-dispatch checks of user- or tool-supplied URLs.

Instructions

Static validation firewall for outbound network destination URIs against cloud metadata IP addresses (169.254.169.254), RFC 1918 private IP blocks, and query-string secret exfiltration before agent dispatch. Use when validating a user-supplied or tool-supplied URI destination before network dispatch; for auditing local shell commands or general prompts, use verify_agent_command_safety instead. Read-only edge call (32 KB, 60 RPM): accepts 'destination_uri' ('egress_policy' defaults to 'block_private_and_metadata'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "destination_uri": "<destination_uri>"
    },
    "name": "audit_outbound_egress_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
egress_policyNoNetwork egress policy; defaults to 'block_private_and_metadata' when omitted.
destination_uriYesOutbound HTTP/HTTPS destination URI to inspect before fetching (e.g. 'https://api.example.com/v1/webhook').

Output Schema

NameRequiredDescriptionDefault
verdictYesFirewall decision ('ALLOW_EGRESS_REQUEST' or 'BLOCK_SSRF_OR_EXFIL').
egress_allowedYesTrue if the URL targets a safe public endpoint with no exfiltration tokens.
ssrf_risk_detectedYesTrue if loopback, RFC1918 private IP, or cloud metadata IP is targeted.
exfiltration_query_paramsYesQuery parameters suspected of carrying leaked secrets or base64 payloads.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.3

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only/idempotent/non-destructive, and the description adds operationally important traits those annotations cannot express: a 32 KB input ceiling, 60 RPM rate limit, HTTP 400 on invalid input, and a payment/demo access mode (L402, 15 sats). This is exactly the added context the dimension rewards.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose in the first clause, then usage, then operational constraints — a sensible information order. It is dense and slightly crammed with parentheticals, but nearly every clause carries actionable detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, and the description still covers invocation preconditions, limits, error signaling, and payment handling. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and it documents both parameters and the enum, so the baseline is 3. The description adds value by restating the egress_policy default and, more usefully, disclosing a '?demo=true' / L402 access mechanism that appears nowhere in the input schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('static validation firewall') and a precise resource ('outbound network destination URIs') plus the exact threat classes blocked (169.254.169.254, RFC 1918, query-string secrets). It explicitly names the sibling it is not (verify_agent_command_safety), so an agent can distinguish it without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Use when validating a user-supplied or tool-supplied URI destination before network dispatch') and an explicit exclusion routing to verify_agent_command_safety for local shell commands or general prompts. Both when-to-use and the alternative are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools