Skip to main content
Glama

privacy_ecs_leak

Detect if a DNS resolver leaks EDNS Client Subnet (ECS) data, which can expose client location to authoritative servers.

Instructions

Test EDNS Client Subnet (ECS) leak on a DNS resolver. Sends a query with an ECS option containing a /24 subnet to check if the resolver forwards client subnet information to authoritative servers, potentially exposing client location.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resolverYesIP address of the DNS resolver to test for ECS forwarding
test_domainNoTest domain to use (default: 'o-o.myaddr.l.google.com' which echoes resolver info)
Behavior4/5

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

With no annotations, the description carries the full burden. It accurately discloses that the tool sends a DNS query with an ECS option, checks forwarding to authoritative servers, and notes the potential privacy consequence. It does not hide the network action, though it leaves out details like output format or rate limits.

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

Conciseness5/5

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

Two sentences, both essential. The first states the purpose, the second explains the mechanism and consequence. No redundant or filler content.

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

Completeness4/5

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

The description is self-contained for a simple DNS test tool, explaining what, how, and why. However, since there is no output schema, it could briefly mention what the tool returns (e.g., a leak/no-leak verdict), which is implied but not stated.

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 description coverage is 100%, so the baseline is 3. The description adds context about the /24 subnet and ECS option but does not significantly enhance parameter-level understanding beyond what the schema already provides (e.g., resolver and test_domain descriptions).

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?

The description clearly states the specific action ('Test EDNS Client Subnet (ECS) leak') and resource ('DNS resolver'), and explains the mechanism (sends query with /24 subnet ECS option). It distinguishes itself from siblings like privacy_leak_test by focusing on ECS specifically.

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

Usage Guidelines3/5

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

The description implies when to use the tool (when concerned about ECS leaks) but does not explicitly mention alternatives or when not to use it. Sibling tools like privacy_resolver_audit or privacy_leak_test are not referenced, so no exclusions or comparisons are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/badchars/dns-security-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server