Skip to main content
Glama

security_ssrf_check

Read-only

SSRF URL guard — Check a URL before your server or agent fetches it: blocks non-http schemes, cloud metadata (169.254.169.254, fd00:ec2::254, 100.100.100.200), loopback/private/link-local/CGNAT/reserved IPs incl. IPv4-mapped IPv6 and NAT64, obfuscated IP forms (decimal, hex, octal, short), userinfo tricks, backslash and control-character parser confusion, internal hostnames (.internal, .local, kubernetes.default.svc), wildcard/rebinding DNS services (nip.io, sslip.io), internal service ports, and resolves A/AAAA over DNS-over-HTTPS to catch public names that point inside (plus low-TTL rebinding risk). Returns BLOCK/CAUTION/ALLOW with flags and advice. Never fetches the URL. Params: url; resolve=0 to skip DNS. Price: $0.004 USDC (Base, via x402).

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": {
      "url": "<url>"
    },
    "name": "security_ssrf_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttp://169.254.169.254/latest/meta-data/

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description goes well beyond them: it discloses the return vocabulary (BLOCK/CAUTION/ALLOW with flags and advice), the crucial side-effect guarantee that it never fetches the URL, that it performs DoH A/AAAA resolution, rebinding detection via low TTL, and the payment requirement (x402, $0.004 USDC). For a network-touching tool, the DNS-vs-fetch distinction is exactly the kind of behavior an agent needs.

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 purpose, then a scannable enumeration of blocked classes, then return semantics and pricing. It is a dense single paragraph and the threat list is long, but nearly every item carries decision-relevant information for an SSRF tool.

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?

With no output schema, the description correctly supplies the return contract (BLOCK/CAUTION/ALLOW plus flags and advice), the network side effects, and cost. Nothing an agent needs to call this correctly and interpret the result is missing, aside from the undeclared resolve parameter.

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

Parameters3/5

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

Schema coverage is 100% and only one parameter exists, so the baseline is 3. The description does add "resolve=0 to skip DNS," but that parameter is not declared in the input schema at all, so the guidance points at something the agent cannot pass as specified — a modest inconsistency rather than added clarity.

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?

Opens with a specific verb+resource combination ("SSRF URL guard — Check a URL") and enumerates exactly what attack classes it catches. It is unmistakably distinct from the sibling config-file linters (nginx, iptables, dockerfile), none of which take a target URL.

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

Usage Guidelines4/5

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

"Check a URL before your server or agent fetches it" gives an explicit trigger condition and makes the tool's place in a workflow obvious. There is no stated when-not-to-use case or named alternative, which keeps it short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources