# middle.network: DNS, Email Auth (SPF/DKIM/DMARC/MTA-STS), WHOIS/RDAP, ASN & Network Tools

> 46 read-only DNS, SPF/DKIM/DMARC/DNSBL, WHOIS/RDAP, ASN/BGP, GeoIP, CT logs, SSL & decoder tools.

- name: io.github.middle-dot-network/mcp
- version: 1.0.0
- connection class: R1 (autonomous)
- trust: 97/100
- quality: 86/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.middle-dot-network%2Fmcp
- tools: https://api.protogrid.dev/v1/servers/io.github.middle-dot-network%2Fmcp/tools

**An agent can connect on its own if it already holds `api_key`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "middle-dot-network": {
      "type": "http",
      "url": "https://mcp.middle.network/",
      "headers": {
        "Authorization": "Bearer ${api_key}"
      }
    }
  }
}
```

Placeholders to fill: `${api_key}`.

## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-100% +updated-1d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 86/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-03-26; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 94 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 47 of 47 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- warn `tools.token_cost`: about 13,119 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 1 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 47, about 13,119 tokens to load them all
- tool set hash: 9cdcece90f6d1f12e73682e2cb65c41f
- tools last changed: 2026-11-29T03:11:36.699Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.middle-dot-network/mcp.svg)](https://protogrid.dev/servers/io.github.middle-dot-network/mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-29 `tls_rpt_reports` added no new version (still 0.1.0)
  - Analyse SMTP TLS-RPT (RFC 8460) reports offline for TLS session pass/fail totals, MTA-STS/DANE policy state, and failure codes. Supply raw JSON in text (max 2 MB) or base64 .json/.json.gz/.gz/.zip in file (max 1 MB binary / 2 MB uncompressed; file overrides text; filename optional). Use to read daily TLS-RPT attachments, not live DNS checks (tls_rpt, mta_sts). Offline with zip/gzip-bomb guards; caps at 5,000 failure details and returns isError=true on invalid JSON or DMARC XML. Requires middle.network auth; uses 1 daily quota unit.
- 2026-11-28 `verify_api_key` changed (title, description, outputSchema, annotations) **meaning changed** no new version (still 0.1.0)
  - before: Check that the configured middle.network Bearer API key is valid and active, and return its daily/per-minute cost limits without spending quota. Cost: 0 units.
  - after: Verify that the caller middle.network API key or OAuth token is valid and active, returning key metadata, live daily/monthly unit-cost usage, remaining quota, and rate limits. Takes no parameters ({}); validates the Authorization bearer token from the request header. Use for setup verification, unit-cost usage inspection, or diagnosing HTTP 401 errors; do not use to list probe locations (list_probes) or check caller IP (my_ip). Returns isError=true if key verification fails; requires middle.network auth and uses 0 daily quota units.
- 2026-11-28 `list_probes` changed (description, outputSchema) **meaning changed** no new version (still 0.1.0)
  - before: Return all available middle.network probe locations (id, city, country, continent) and your live probe fan-out tier. Use these ids in the regions parameter of global DNS tools. Cost: 0 units.
  - after: Return all available middle.network global probe locations and the caller live probe fan-out tier. Takes no parameters ({}); fan-out tier is derived from the authenticated caller API key. Call first when selecting specific regions for dns_propagation, dns_auth_vs_cache, or dns_speed; skip when using default probes or checking API rate limits (verify_api_key). Reads the server probe registry with no outbound target traffic; requires middle.network auth and uses 0 daily quota units.
- 2026-11-28 `time_convert` changed (description, outputSchema) **meaning changed** no new version (still 0.1.0)
  - before: Convert Unix epoch timestamps (seconds/milliseconds), ISO-8601/RFC 2822 dates, and DNS TTL durations. Via middle.network. Cost: 1 unit.
  - after: Convert Unix epoch timestamps, ISO-8601/RFC 2822 dates, and DNS TTL durations offline into UTC, optional IANA timezone, and human-readable formats. text classifies bare numbers by magnitude (|n| >= 1e11 = Unix ms, 1e8 <= |n| < 1e11 = Unix s, < 1e8 = duration s) and accepts s/m/h/d/w TTLs (1h30m) or dates; timezone defaults to UTC. Use for log timestamps and TTL math, not live DNS lookups (dns_record) or text decoding (encoders). Offline and deterministic; bad timezones or unrecognised strings return isError=true. Requires middle.network auth; uses 1 daily quota unit.
- 2026-11-28 `zone_format` changed (description, outputSchema) **meaning changed** no new version (still 0.1.0)
  - before: Lint, validate, and format a BIND DNS zone file (TTL, SOA, record alignment, and syntax checks). Via middle.network. Cost: 1 unit.
  - after: Parse, lint, and tidy a BIND DNS zone file offline, flagging missing trailing dots, apex CNAMEs, duplicate SPF, bad IPs, and TTL issues. text accepts BIND syntax (max 1 MB) with ";" comments and multiline parenthesized records; optional domain supplies $ORIGIN only if text has no $ORIGIN directive. Use to validate raw zone text before import, not live NS migration diffs (zone_precheck). Offline; skips AZURE ALIAS with info, reports bad lines as fail findings alongside output, and returns isError=true on empty input. Requires middle.network auth; uses 1 daily quota unit.
- 2026-11-28 `encoders` changed (title, description, inputSchema, outputSchema, annotations) **meaning changed** no new version (still 0.1.0)
  - before: Decode and inspect Base64, Base64URL, URL percent-encoding, hex strings, and JWT headers/claims. Via middle.network. Cost: 1 unit.
  - after: Encode or decode Base64, Base64URL, URL percent-encoding, and hex, or decode JWT headers/claims offline without signature verification. text holds the payload (max 64 KB); type defaults to "auto" (jwt -> %-URL -> >=8-char hex -> printable base64 -> else encode all), and explicit type overrides auto-detection. Use for text encoding or JWT inspection, not PEM certs (cert_decoder) or IDNs (punycode). Offline; flags alg="none" (fail) and expired JWTs (warn), shows binary as hex, and returns isError=true on malformed JWT/URL escapes. Requires middle.network auth; uses 1 daily quota unit.
- 2026-11-28 `mac_ipv6` changed (title, description, outputSchema, annotations) **meaning changed** no new version (still 0.1.0)
  - before: Convert a MAC address to its IPv6 EUI-64 link-local (fe80::) address, or extract the MAC address from an EUI-64 IPv6 address. Via middle.network. Cost: 1 unit.
  - after: Convert a MAC address offline to IPv6 EUI-64 (plus solicited-node multicast) or extract the MAC from an EUI-64/multicast IPv6 address. text accepts colon, hyphen, Cisco-dot, or bare 12-hex MACs (to IPv6) or any IPv6 (to MAC); optional prefix overrides fe80::/64 and is ignored during IPv6-to-MAC extraction. Use for EUI-64 math, not privacy/randomized SLAAC IPv6 addresses (no embedded MAC) or vendor lookup (mac_vendor). Offline; non-EUI-64 IPv6 returns kind="random" and mac=null, ff00::/8 maps to 33:33:, and invalid input returns isError=true. Requires middle.network auth; uses 1 daily quota unit.
- 2026-11-28 `mac_vendor` changed (description, outputSchema) **meaning changed** no new version (still 0.1.0)
  - before: Look up a MAC address hardware manufacturer (IEEE OUI / MA-L / MA-M / MA-S vendor registry) and unicast/multicast/LAA flags. Via middle.network. Cost: 1 unit.
  - after: Look up a MAC address or 6-hex OUI prefix offline against the bundled IEEE OUI (MA-L/MA-M/MA-S) registry with unicast/multicast/LAA flags. text strips non-hex separators (:, -, .) and requires exactly 6 hex digits (OUI) or 12 hex digits (full MAC). Use to identify NIC manufacturers, not derive IPv6 EUI-64 addresses (mac_ipv6). Runs locally; randomized (LAA) and multicast MACs return info findings with vendor=null, and invalid lengths return isError=true. Requires middle.network auth; uses 1 daily quota unit.
- 2026-11-28 `punycode` changed (description, outputSchema) **meaning changed** no new version (still 0.1.0)
  - before: Convert internationalised domain names (IDN / Unicode to xn-- Punycode and back) and flag homograph or confusable look-alike characters. Via middle.network. Cost: 1 unit.
  - after: Convert internationalised domain names (IDN) offline between Unicode and xn-- Punycode while detecting mixed-script homograph spoofing. text accepts a Unicode/Punycode domain, URL (strips scheme/path/port), or email address (preserves local@ while converting the domain). Use for IDN conversion and phishing checks, not Base64/URL/hex/JWT transforms (encoders). Offline; flags Latin/Cyrillic/Greek mixing per label as warn and returns isError=true on invalid domain syntax. Requires middle.network auth; uses 1 daily quota unit.
- 2026-11-28 `ip_convert` changed (description, outputSchema) **meaning changed** no new version (still 0.1.0)
  - before: Convert an IPv4 or IPv6 address between dotted decimal, integer, hex, binary, compressed, expanded, and IPv4-mapped IPv6 forms. Via middle.network. Cost: 1 unit.
  - after: Convert a single IPv4 or IPv6 address offline across dotted decimal, integer, hex, binary, compressed/expanded IPv6, IPv4-mapped, and PTR forms. text strips whitespace and auto-detects dotted IPv4, 32-bit decimal (<=4294967295), 0x hex (1-8 digits = IPv4, 9-32 = IPv6), 32-bit binary, or IPv6. Use for single-IP format conversion, not CIDR math (subnet) or EUI-64 MAC derivation (mac_ipv6). Offline and deterministic; unrecognised or out-of-range inputs return isError=true. Requires middle.network auth; uses 1 daily quota unit.

Full history: https://api.protogrid.dev/v1/servers/io.github.middle-dot-network%2Fmcp/changes

## Remotes

- https://mcp.middle.network/ (streamable-http, auth api_key ${api_key}, reachable true, uptime30d 1)

## Packages

_none_

## Tools (47)

- `asn`: Look up BGP routing prefixes, RPKI ROA validity, upstreams/peers, hijack/leak alerts, and PeeringDB IXPs for an ASN, IP, prefix, or domain. target accepts "AS13335" or bare "13335" (1-4294967295), IPv4/IPv6, CIDR (uses base IP), or hostname. Use for BGP/RPKI and peering context, not RIR abuse contacts (whois_ip), location (geoip), or batch IPs (bulk_ip). Uses Team Cymru DNS with RIPEstat failover; partial outages set limited while invalid targets return isError=true. Requires middle.network auth; uses 4 daily quota units.
- `bimi`: Validate a domain BIMI (default._bimi) TXT record, lint its SVG Tiny PS logo, and inspect its VMC/CMC certificate alongside DMARC enforcement. domain strips URL parts/trailing dots (no IPs); fetches only http(s) l=/a= URLs up to 64 KB each and enforces the 32 KB SVG cap. Use after enforcing DMARC, not for DMARC alone (dmarc) or drafting records (email_generators with type="bimi"). Missing BIMI returns info (non-mail subdomains pass); invalid SVGs, expired certs, or fetch failures return fail/warn findings. Requires middle.network auth; uses 2 daily quota units.
- `blacklist`: Check an IPv4/IPv6 address or domain against major spam blacklists and blocklists (DNSBL and RBL zones: Spamhaus, Barracuda, SpamCop, SURBL, URIBL). target accepts an IP (brackets stripped) or domain (resolves up to 6 IPv4s from web A, top 3 MX, and SPF ip4: rules). Use for reputation triage, not overall auth scoring (email_score) or batch IP enrichment (bulk_ip). Self-tests zones via RFC 5782 canaries; refusing or timed-out lists are reported in limited and never marked clean. Requires middle.network auth; uses 4 daily quota units.
- `bulk_ip`: Batch enrich up to 50 distinct IPv4/IPv6 addresses from raw text with ASN, prefix, country, PTR, organisation, and abuse contact. text scans the first 20,000 chars, auto-refangs obfuscated IPs (1.2.3[.]4, 2001[:]db8::1), deduplicates in order, and caps at 50 IPs (domains alone fail). Use instead of repeated whois_ip, geoip, or asn calls on logs/DMARC IPs, not deep single-IP BGP (asn). Bounded by 20s/15s budgets and 20 new RDAP calls (6h cache); private/over-budget rows return partial data and zero IPs returns isError=true. Requires middle.network auth; uses 8 daily quota units.
- `bulk_sender`: Audit a domain against Gmail, Yahoo, and Outlook bulk-sender DNS rules (SPF, DKIM, DMARC, rua, MX) with per-rule pass/fail findings. domain strips URL parts/trailing dots (no IPs); selector takes comma/whitespace-separated DKIM selectors (omitted auto-probes ~100 common selectors). Use for 5,000+/day compliance checklists, not a weighted 0 to 100 score (email_score). Checks DNS-observable rules only (notes non-DNS rules as info); missing records return findings while invalid domains return isError=true. Requires middle.network auth; uses 4 daily quota units.
- `cert_decoder`: Decode pasted PEM X.509 certificates, chains, or PKCS#10 CSRs offline, checking expiry, weak RSA keys, missing SANs, and CSR signatures. text requires full "-----BEGIN" / "-----END" PEM delimiters and supports concatenated blocks (never send private keys). Use when you have PEM text, not to search public domain certs (ct_logs). Offline; immediately refuses private keys with status="fail" without parsing, and returns isError=true if no valid PEM block is found. Requires middle.network auth; uses 1 daily quota unit.
- `ct_logs`: Search public Certificate Transparency (CT) logs for unexpired SSL/TLS certificates on a domain and its subdomains, plus CAA and 30-day counts. domain strips URL parts/trailing dots (no IPs) and matches apex and subdomain certs. Use for issuance history and CA audits, not pasted PEM/CSR inspection (cert_decoder) or live host discovery (subdomains). Queries crt.sh with Cert Spotter fallback, deduplicates precerts by serial, and returns up to 50 newest certs (no pagination) with full totals; outages return isError=true. Requires middle.network auth; uses 4 daily quota units.
- `dkim`: Look up published DKIM selector TXT/CNAME keys, checking RSA/Ed25519 strength, syntax, revocation, and dangling CNAMEs. domain strips URL parts/trailing dots; selector takes comma/whitespace-separated names, and omitting it auto-probes ~100 common selectors plus the first label (up to 5 CNAME hops). Use to verify live keys, not draft records (email_generators with type="dkim"). Auto-probing bursts parallel DNS queries; missing keys warn (fail if explicit), and weak/broken keys return findings. Requires middle.network auth; uses 2 daily quota units.
- `dmarc`: Inspect a domain _dmarc TXT policy (p, sp, pct, adkim, aspf, rua, ruf) and verify external rua reporting authorization. domain strips URL parts/trailing dots (no IPs); subdomains inherit the registrable organisational domain _dmarc record and apply sp=. Use to audit live DMARC DNS, not parse RUA XML (dmarc_reports) or draft records (email_generators with type="dmarc"). Missing/duplicate records fail and p=none or partial pct warn (not errors); invalid domain returns isError=true. Requires middle.network auth; uses 2 daily quota units.
- `dmarc_reports`: Analyse DMARC aggregate (RUA) reports offline for pass/fail totals, alignment, and failing source IPs. Supply raw RFC 7489 <feedback> XML in text (max 2 MB) or base64 .xml/.gz/.zip in file (max 1 MB binary / 2 MB uncompressed; file overrides text if both sent; filename is optional). Use for RUA triage (follow up with bulk_ip/asn), not live DNS policy (dmarc). Offline with XXE and zip-bomb guards; caps at 5,000 source records (flagged) and returns isError=true on invalid XML or multi-XML ZIPs. Requires middle.network auth; uses 1 daily quota unit.
- `dns_auth_vs_cache`: Compare authoritative nameserver answers against cached public resolvers across global probes to expose stale caches and remaining TTLs. domain strips URL parts/trailing dots; type defaults to "A", resolvers defaults to 4 core resolvers or ["all"], and regions takes probe id/city from list_probes or ["all"] (tier-capped). Use to diagnose stale caches, not general propagation (dns_propagation) or single lookups (dns_record). Multi-second fan-out returns isError=true if no NS exists; probe timeouts stay partial. Requires middle.network auth; uses 3 daily quota units.
- `dns_health`: Audit every authoritative nameserver for a domain: glue resolution, AA authority, SOA serial sync, open recursion, and latency. domain strips URL parts/trailing dots (no IPs); subdomains without NS records inherit and audit their parent zone. Use for nameserver audits, not record values (dns_lookup), DNSSEC (dnssec), or migration diffs (zone_precheck). Queries each NS directly (non-recursive); unreachable, lame, or open-recursive servers return fail/warn findings without aborting. Requires middle.network auth; uses 2 daily quota units.
- `dns_lookup`: Look up all common DNS records (A, AAAA, CNAME, MX, NS, TXT, SOA, CAA) for a domain. domain strips ports, paths, and trailing dots (rejects IPs); compare diffs a second resolver (ignored if equal to resolver) and dnssec=true sets the DO bit (auto for DS/DNSKEY). Use for a full overview, not single types (dns_record), global spread (dns_propagation), or NS audits (dns_health). NXDOMAIN returns a fail finding and per-type timeouts stay partial warnings; invalid domain returns isError=true. Requires middle.network auth; uses 2 daily quota units.
- `dns_propagation`: Check global DNS propagation of one record type across worldwide probes and public resolvers with consensus status. domain strips URL parts/trailing dots; resolvers defaults to 4 core resolvers (Cloudflare, Google, Quad9, OpenDNS) or ["all"], and regions takes probe id/city from list_probes or ["all"] (tier-capped). Use after DNS changes, not single lookups (dns_lookup) or auth diffs (dns_auth_vs_cache). Multi-second fan-out auto-detects CDN/geo-DNS; timed-out probes or SERVFAIL stay partial findings. Requires middle.network auth; uses 3 daily quota units.
- `dns_record`: Query one DNS record type (A, AAAA, CNAME, MX, NS, TXT, CAA, SOA, SRV, DS, DNSKEY, HTTPS, PTR) from a chosen public or authoritative resolver. domain strips ports/paths/trailing dots (no IPs); type defaults to "A", resolver accepts a key or "authoritative", and dnssec=true sets DO (auto for DS/DNSKEY). Use for targeted lookups, not full overviews (dns_lookup) or global spread (dns_propagation). NXDOMAIN/NODATA return structured answers, timeouts return an error finding, and bad input returns isError=true. Requires middle.network auth; uses 2 daily quota units.
- `dnssec`: Validate a domain DNSSEC chain of trust (DS, DNSKEY, RRSIG, AD flag) to verify signing or diagnose SERVFAIL. domain strips URL parts/trailing dots (no IPs); subdomains automatically walk up to validate their parent signed zone. Use for DNSSEC checks before migrations or SERVFAIL triage, not general records (dns_lookup) or NS audits (dns_health). Unsigned zones return an info finding while bogus signatures or DS/DNSKEY mismatches return fail findings; invalid domain returns isError=true. Requires middle.network auth; uses 2 daily quota units.
- `dns_speed`: Benchmark cached and uncached DNS query latency (ms) across public resolvers from global probes. domain strips URL parts/trailing dots; resolvers defaults to 4 core resolvers (Cloudflare, Google, Quad9, OpenDNS) or ["all"], and regions takes probe id/city from list_probes or ["all"] (tier-capped). Use to compare resolver speed, not inspect records (dns_record, dns_lookup). Runs 3 fan-out passes (random label uncached, apex twice cached) over a few seconds; timed-out probes stay partial. Requires middle.network auth; uses 3 daily quota units.
- `domain_age`: Check a domain registration age, creation date, and days until expiry, flagging newly registered (<30d) or expiring (<60d) domains. domain strips URL parts/trailing dots (no IPs); subdomains resolve to their registrable domain. Use for quick trust or renewal triage, not full registrar/EPP/NS records (whois) or availability checks (domain_available). Queries RDAP with WHOIS fallback; registries that omit dates (.au, .de, .eu) return notPublished=true with status="info" rather than failing. Requires middle.network auth; uses 2 daily quota units.
- `domain_available`: Check whether a domain appears unregistered or taken using registry RDAP/WHOIS alongside live NS records. domain strips URL parts/trailing dots (no IPs); subdomains normalise to their registrable domain. Use before registering a domain, not for full metadata on registered domains (whois, domain_age). Queries RDAP with port-43 WHOIS fallback; flags DNS-vs-registry conflicts and premium/reserved caveats, and returns limited info (never false availability) if WHOIS throttles. Requires middle.network auth; uses 2 daily quota units.
- `email_generators`: Generate ready-to-paste DNS TXT records (and MTA-STS policy text) for SPF, DMARC, DKIM, BIMI, or MTA-STS. type (default "spf") picks the family and domain defaults to example.com; structured fields (senders, policy/rua, selector/publicKey, logoUrl, mxHosts/stsMode) always override legacy text shorthand. Use to draft records, not audit live DNS - call sibling audit tools (spf, dmarc, dkim, bimi, mta_sts) instead. Offline except type="mta-sts" (queries live MX if mxHosts/text omitted); refuses private keys with isError=true. Requires middle.network auth; uses 1 daily quota unit.
- `email_headers`: Parse raw RFC 5322 email headers offline to trace Received relay hops, inter-hop delays, and Authentication-Results (SPF, DKIM, DMARC, ARC). text requires raw headers from "Show original" (20 chars to 256 KB); parsing stops at the first blank line so bodies are ignored. Use to debug a specific email, not live domain DNS (spf, dkim, dmarc, email_score). Offline; flags clock skew, >300s delays, and auth failures as warn findings, and returns isError=true if no headers exist. Requires middle.network auth; uses 1 daily quota unit.
- `email_score`: Compute a weighted 0 to 100 email authentication and deliverability score across MX, SPF, DKIM, DMARC, blacklist, MTA-STS, TLS-RPT, and BIMI with prioritized fixes. domain strips URL parts/trailing dots (no IPs); selector takes comma/whitespace-separated DKIM selectors (omitted auto-probes ~100 selectors). Use as the audit starting point, not compliance checklists (bulk_sender) or single-protocol deep dives (spf, dkim, dmarc, mta_sts, blacklist). Non-mail subdomains skip blacklists; sub-check errors degrade only that weight. Requires middle.network auth; uses 4 daily quota units.
- `encoders`: Encode or decode Base64, Base64URL, URL percent-encoding, and hex, or decode JWT headers/claims offline without signature verification. text holds the payload (max 64 KB); type defaults to "auto" (jwt -> %-URL -> >=8-char hex -> printable base64 -> else encode all), and explicit type overrides auto-detection. Use for text encoding or JWT inspection, not PEM certs (cert_decoder) or IDNs (punycode). Offline; flags alg="none" (fail) and expired JWTs (warn), shows binary as hex, and returns isError=true on malformed JWT/URL escapes. Requires middle.network auth; uses 1 daily quota unit.
- `geoip`: Look up approximate IPv4 or IPv6 geolocation (country, city, coordinates) alongside origin ASN and network owner. ip requires a single IPv4 or IPv6 address and rejects hostnames or CIDR blocks. Use for single-IP geographic attribution, not RIR abuse/netblock records (whois_ip), BGP routing (asn), or batch IP lists (bulk_ip). Queries RIPEstat MaxMind GeoLite and ASN; locations are approximate (especially anycast), and GeoLite outages degrade cleanly to ASN-only data with limited set. Requires middle.network auth; uses 2 daily quota units.
- `ip_convert`: Convert a single IPv4 or IPv6 address offline across dotted decimal, integer, hex, binary, compressed/expanded IPv6, IPv4-mapped, and PTR forms. text strips whitespace and auto-detects dotted IPv4, 32-bit decimal (<=4294967295), 0x hex (1-8 digits = IPv4, 9-32 = IPv6), 32-bit binary, or IPv6. Use for single-IP format conversion, not CIDR math (subnet) or EUI-64 MAC derivation (mac_ipv6). Offline and deterministic; unrecognised or out-of-range inputs return isError=true. Requires middle.network auth; uses 1 daily quota unit.
- `ja4`: Decode JA4 and JA4+ fingerprint strings (JA4, JA4_r, JA4S/JA4S_r, JA4H, JA4X, JA4T/JA4TS, JA4SSH) offline into protocol, cipher, extension, and anomaly signals. text must be a single line (case-insensitive, no line breaks, max 4,096 chars); the variant is auto-detected. Use for JA4+ log fingerprints, not PEM certs (cert_decoder) or User-Agent headers (user_agent). Offline against a curated known-client table (exact vs family matches); invalid or multiline strings return isError=true. Requires middle.network auth; uses 1 daily quota unit.
- `list_probes`: Return all available middle.network global probe locations and the caller live probe fan-out tier. Takes no parameters ({}); fan-out tier is derived from the authenticated caller API key. Call first when selecting specific regions for dns_propagation, dns_auth_vs_cache, or dns_speed; skip when using default probes or checking API rate limits (verify_api_key). Reads the server probe registry with no outbound target traffic; requires middle.network auth and uses 0 daily quota units.
- `mac_ipv6`: Convert a MAC address offline to IPv6 EUI-64 (plus solicited-node multicast) or extract the MAC from an EUI-64/multicast IPv6 address. text accepts colon, hyphen, Cisco-dot, or bare 12-hex MACs (to IPv6) or any IPv6 (to MAC); optional prefix overrides fe80::/64 and is ignored during IPv6-to-MAC extraction. Use for EUI-64 math, not privacy/randomized SLAAC IPv6 addresses (no embedded MAC) or vendor lookup (mac_vendor). Offline; non-EUI-64 IPv6 returns kind="random" and mac=null, ff00::/8 maps to 33:33:, and invalid input returns isError=true. Requires middle.network auth; uses 1 daily quota unit.
- `mac_vendor`: Look up a MAC address or 6-hex OUI prefix offline against the bundled IEEE OUI (MA-L/MA-M/MA-S) registry with unicast/multicast/LAA flags. text strips non-hex separators (:, -, .) and requires exactly 6 hex digits (OUI) or 12 hex digits (full MAC). Use to identify NIC manufacturers, not derive IPv6 EUI-64 addresses (mac_ipv6). Runs locally; randomized (LAA) and multicast MACs return info findings with vendor=null, and invalid lengths return isError=true. Requires middle.network auth; uses 1 daily quota unit.
- `mta_sts`: Validate a domain MTA-STS (_mta-sts TXT and HTTPS policy at mta-sts.<domain>/.well-known/mta-sts.txt) for enforced inbound SMTP TLS. domain strips URL parts/trailing dots (no IPs) and targets both DNS TXT and the 64 KB-capped HTTPS fetch. Pair with tls_rpt for mail transport security; do not use to draft policies (email_generators with type="mta-sts") or audit sender auth (spf, dkim, dmarc). Missing TXT returns info (non-mail subdomains pass); missing/malformed policies, bad TLS, or unmatched MX return fail findings. Requires middle.network auth; uses 2 daily quota units.
- `mx`: Look up Mail Exchange (MX) records for a domain, verify A/AAAA resolution and PTR reverse DNS, and identify the mail provider. domain strips URL parts/trailing dots (no IPs); checks CNAME violations and up to 2 IPs per MX host for PTR records. Use for mail-routing diagnostics instead of raw dns_lookup, not full deliverability scoring (email_score). Null MX ("0 .") returns info, non-mail subdomains pass (noMail=true), and missing MX on mail domains returns a fail finding. Requires middle.network auth; uses 2 daily quota units.
- `my_ip`: Return the caller public IPv4 or IPv6 address, version, ASN, ISP, and approximate GeoIP location as seen by middle.network. Takes no parameters ({}); the client IP is read from the authenticated request context. Use when the user asks for their own current IP or ISP, not to inspect third-party IPs (geoip, whois_ip, asn). Runs locally on the request IP with optional GeoIP enrichment, falling back to IP-only if GeoIP is unavailable. Requires middle.network auth; uses 1 daily quota unit.
- `punycode`: Convert internationalised domain names (IDN) offline between Unicode and xn-- Punycode while detecting mixed-script homograph spoofing. text accepts a Unicode/Punycode domain, URL (strips scheme/path/port), or email address (preserves local@ while converting the domain). Use for IDN conversion and phishing checks, not Base64/URL/hex/JWT transforms (encoders). Offline; flags Latin/Cyrillic/Greek mixing per label as warn and returns isError=true on invalid domain syntax. Requires middle.network auth; uses 1 daily quota unit.
- `reverse_dns`: Look up reverse DNS (rDNS / PTR) hostnames for an IPv4 or IPv6 address and verify forward-confirmed rDNS (FCrDNS). ip requires a single IPv4 or IPv6 address and rejects hostnames or CIDR blocks. Use when you already have an IP, not when starting from a domain (reverse_ip) or checking ownership/routing (whois_ip, asn). Missing PTR or failed FCrDNS returns warn findings rather than errors; invalid ip returns isError=true. Requires middle.network auth; uses 2 daily quota units.
- `reverse_ip`: Resolve an IPv4/IPv6 address or domain name to all published reverse DNS (PTR) hostnames on that IP. ip accepts an IP address or domain (domains resolve to their first IPv4, or IPv6 fallback). Use when starting from a domain or listing PTRs on a host IP, not for direct IP FCrDNS verification (reverse_dns) or ownership (whois_ip). Missing PTRs return an empty list with status="info" (not an error); unresolvable domains or bad inputs return isError=true. Requires middle.network auth; uses 2 daily quota units.
- `spf`: Validate a domain live SPF (v=spf1) TXT record by expanding include/redirect chains against the RFC 7208 10-lookup and 2-void limits. domain strips URL parts/trailing dots (no IPs); expansion caps at depth 10 and 30 lookups, adding a flattened draft when lookups >=6. Use to audit live SPF, not draft records (email_generators with type="spf") or full scoring (email_score). Missing/duplicate SPF returns fail findings (protected non-mail subdomains pass); DNS timeouts return isError=true. Requires middle.network auth; uses 2 daily quota units.
- `subdomains`: Discover live subdomains from Certificate Transparency logs and an 85-word prefix list, flagging dangling CNAME takeover risks. domain strips URL parts/trailing dots (no IPs); caps DNS resolution at 400 candidates and HTTP takeover checks at 20 CNAME hosts. Use for live host inventory and takeover triage, not full historical certificate records (ct_logs). Queries crt.sh with Cert Spotter fallback; if both CT sources fail, falls back to the wordlist alone and sets limited. Requires middle.network auth; uses 4 daily quota units.
- `subnet`: Calculate IPv4 or IPv6 CIDR subnet boundaries offline: network, broadcast, usable range, netmask/wildcard, host count, and class. text accepts CIDR (192.0.2.0/24, 2001:db8::/48), IP plus space-separated netmask (10.0.0.5 255.255.255.0), or a bare IP (defaults to /32 or /128). Use for single-block CIDR planning, not IP format conversion (ip_convert) or batch IP enrichment (bulk_ip). Offline; host IPs normalise to network base with info, IPv4 /31-/32 omit broadcast, and invalid prefixes return isError=true. Requires middle.network auth; uses 1 daily quota unit.
- `time_convert`: Convert Unix epoch timestamps, ISO-8601/RFC 2822 dates, and DNS TTL durations offline into UTC, optional IANA timezone, and human-readable formats. text classifies bare numbers by magnitude (|n| >= 1e11 = Unix ms, 1e8 <= |n| < 1e11 = Unix s, < 1e8 = duration s) and accepts s/m/h/d/w TTLs (1h30m) or dates; timezone defaults to UTC. Use for log timestamps and TTL math, not live DNS lookups (dns_record) or text decoding (encoders). Offline and deterministic; bad timezones or unrecognised strings return isError=true. Requires middle.network auth; uses 1 daily quota unit.
- `tls_rpt`: Validate a domain SMTP TLS Reporting (_smtp._tls TXT) record for v=TLSRPTv1 syntax and valid mailto:/https: rua reporting URIs. domain strips URL parts/trailing dots (no IPs) and queries _smtp._tls.<domain> directly. Pair with mta_sts to verify TLS failure reporting; do not use for raw unparsed TXT (dns_record) or inbound policy checks (mta_sts). Missing TLS-RPT returns an info finding (non-mail subdomains pass) and malformed rua URIs return a fail finding, not a tool error. Requires middle.network auth; uses 2 daily quota units.
- `tls_rpt_reports`: Analyse SMTP TLS-RPT (RFC 8460) reports offline for TLS session pass/fail totals, MTA-STS/DANE policy state, and failure codes. Supply raw JSON in text (max 2 MB) or base64 .json/.json.gz/.gz/.zip in file (max 1 MB binary / 2 MB uncompressed; file overrides text; filename optional). Use to read daily TLS-RPT attachments, not live DNS checks (tls_rpt, mta_sts). Offline with zip/gzip-bomb guards; caps at 5,000 failure details and returns isError=true on invalid JSON or DMARC XML. Requires middle.network auth; uses 1 daily quota unit.
- `user_agent`: Identify a browser or crawler User-Agent against Cloudflare Radar verified bots, returning client family, maturity (L0-L5), and verification steps. text strips any leading "User-Agent:" prefix (max 1,000 chars) and accepts full headers or bot/operator names. Use for traffic attribution; do not treat User-Agent alone as proof - verify IPs with asn, whois_ip, or reverse_dns. Fetches live Web Bot Auth key directories only for signing bots; unknown strings return info with suggestions. Requires middle.network auth; uses 1 daily quota unit.
- `verify_api_key`: Verify that the caller middle.network API key or OAuth token is valid and active, returning key metadata, live daily/monthly unit-cost usage, remaining quota, and rate limits. Takes no parameters ({}); validates the Authorization bearer token from the request header. Use for setup verification, unit-cost usage inspection, or diagnosing HTTP 401 errors; do not use to list probe locations (list_probes) or check caller IP (my_ip). Returns isError=true if key verification fails; requires middle.network auth and uses 0 daily quota units.
- `whois`: Look up domain WHOIS and RDAP registration records: registrar, creation/expiry dates, EPP locks, and nameservers. domain strips URL parts/trailing dots (no IPs); subdomains automatically resolve to their registrable domain. Use for full ownership and lock status, not IP ownership (whois_ip), quick age/expiry checks (domain_age), or availability (domain_available). Queries RDAP with port-43 WHOIS fallback; unregistered domains return registered=false, redacted dates are noted, and throttled registries return limited info. Requires middle.network auth; uses 2 daily quota units.
- `whois_ip`: Look up IPv4/IPv6 ownership across ARIN, RIPE, APNIC, LACNIC, and AFRINIC, returning CIDR netblock, organisation, and abuse contact. ip requires a single public IPv4 or IPv6 address (rejects domains, CIDRs, and invalid inputs). Use for single-IP ownership/abuse contacts, not domains (whois), BGP/RPKI (asn), location (geoip), or batch IPs (bulk_ip). Queries RIR RDAP with RIPEstat and port-43 WHOIS failover; missing abuse returns info while unreachable registries or bad IPs return isError=true. Requires middle.network auth; uses 2 daily quota units.
- `zone_format`: Parse, lint, and tidy a BIND DNS zone file offline, flagging missing trailing dots, apex CNAMEs, duplicate SPF, bad IPs, and TTL issues. text accepts BIND syntax (max 1 MB) with ";" comments and multiline parenthesized records; optional domain supplies $ORIGIN only if text has no $ORIGIN directive. Use to validate raw zone text before import, not live NS migration diffs (zone_precheck). Offline; skips AZURE ALIAS with info, reports bad lines as fail findings alongside output, and returns isError=true on empty input. Requires middle.network auth; uses 1 daily quota unit.
- `zone_precheck`: Compare live apex and www DNS records (SOA, NS, A, AAAA, MX, TXT, CAA) against proposed authoritative nameservers before cutover. domain strips URL parts/trailing dots; ns takes up to 8 comma/whitespace-separated hostnames or IPs (trailing dots stripped), and omitting ns audits current nameservers. Use before registrar NS changes, not offline BIND linting (zone_format). Queries each NS directly; unreachable/lame servers or missing records return fail findings without aborting. Requires middle.network auth; uses 2 daily quota units.

## Prompts and resources

### Prompts (4)

- `` audit_dns_migration ``: Verify live DNS records, DNSSEC health, and proposed nameservers before switching a domain to a new DNS provider.
- `` diagnose_email_deliverability ``: Run a full passive email authentication and reputation check (email_score, spf, dmarc, dkim, mx, blacklist) for a domain and produce copy-paste DNS fixes.
- `` inspect_ip_network ``: Look up ASN routing, RPKI status, RDAP ownership, geolocation, reverse DNS, and spam blocklist status for an IP address.
- `` investigate_domain_ownership ``: Collect passive ownership, registration age, certificate transparency, subdomain, and ASN context for vendor due diligence or security triage.

### Resources (3)

- `` middle-network://catalog ``: All tools exposed over MCP, grouped by category, with cost units and execution scope.
- `` middle-network://openapi ``: Complete OpenAPI 3.2 specification for the middle.network /v1 API.
- `` middle-network://probes ``: Live probe locations (id, city, country, continent) for the regions input parameter.
