Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as middle.network - DNS, Email, Network, Compliance, Domain and Audit Tools. If you published it, claim ownership there.

MX lookup

mx
Read-onlyIdempotent

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.

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": {
      "domain": "<domain>"
    },
    "name": "mx"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesA domain name, such as example.com. A URL is accepted and its host name is used.

Output Schema

NameRequiredDescriptionDefault
atNoISO-8601 UTC timestamp when the result was generated.
msNoElapsed execution time in milliseconds.
dataYesTool-specific structured payload (records, timings, parsed fields, or scores).
toolYesCatalog tool identifier.
shareNoOptional shareable report link metadata.
statusYesOverall diagnostic verdict (worst finding wins; no findings = pass).
targetYesNormalised domain, IP, or input target.
limitedNoOptional list of upstream data sources that were rate-limited or unavailable.
summaryYesPlain-English and technical one-line summaries.
findingsYesOrdered diagnostic findings with severity and actionable fixes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedOutput schema / properties / at
      Added value: +{
      +  "description": "ISO-8601 UTC timestamp when the result was generated.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / findings / items / properties / level / enum
      Previous value: -[
      -  "ok",
      -  "info",
      -  "warn",
      -  "fail",
      -  "error"
      -]New value: +[
      +  "pass",
      +  "info",
      +  "warn",
      +  "fail",
      +  "error"
      +]
    • addedOutput schema / properties / findings / items / required
      Added value: +[
      +  "level",
      +  "plain",
      +  "tech"
      +]
    • addedOutput schema / properties / ms
      Added value: +{
      +  "description": "Elapsed execution time in milliseconds.",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / status / description
      Previous value: -"Overall diagnostic verdict."New value: +"Overall diagnostic verdict (worst finding wins; no findings = pass)."
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "ok",
      -  "warn",
      -  "fail",
      -  "error",
      -  "info"
      -]New value: +[
      +  "pass",
      +  "warn",
      +  "fail",
      +  "error",
      +  "info"
      +]
    • addedOutput schema / properties / summary / required
      Added value: +[
      +  "plain",
      +  "tech"
      +]
    • addedOutput schema / required
      Added value: +[
      +  "tool",
      +  "target",
      +  "status",
      +  "summary",
      +  "findings",
      +  "data"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Standard middle.network ToolResult envelope returned in structuredContent.",
      +  "properties": {
      +    "data": {
      +      "description": "Tool-specific structured payload (records, timings, parsed fields, or scores).",
      +      "type": "object"
      +    },
      +    "findings": {
      +      "description": "Ordered diagnostic findings with severity and actionable fixes.",
      +      "items": {
      +        "properties": {
      +          "fix": {
      +            "description": "Optional copy-paste fix or next step.",
      +            "type": "string"
      +          },
      +          "level": {
      +            "description": "Finding severity.",
      +            "enum": [
      +              "ok",
      +              "info",
      +              "warn",
      +              "fail",
      +              "error"
      +            ],
      +            "type": "string"
      +          },
      +          "plain": {
      +            "description": "Plain-English explanation.",
      +            "type": "string"
      +          },
      +          "tech": {
      +            "description": "Technical evidence or record value.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "limited": {
      +      "description": "Optional list of upstream data sources that were rate-limited or unavailable.",
      +      "items": {
      +        "properties": {
      +          "reason": {
      +            "description": "Why the upstream result was limited.",
      +            "type": "string"
      +          },
      +          "upstream": {
      +            "description": "Upstream provider name.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "share": {
      +      "description": "Optional shareable report link metadata.",
      +      "properties": {
      +        "at": {
      +          "description": "ISO-8601 timestamp when the share snapshot was created.",
      +          "type": "string"
      +        },
      +        "id": {
      +          "description": "Share identifier at https://share.middle.network/<id>.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "status": {
      +      "description": "Overall diagnostic verdict.",
      +      "enum": [
      +        "ok",
      +        "warn",
      +        "fail",
      +        "error",
      +        "info"
      +      ],
      +      "type": "string"
      +    },
      +    "summary": {
      +      "description": "Plain-English and technical one-line summaries.",
      +      "properties": {
      +        "plain": {
      +          "description": "Plain-English summary for end users.",
      +          "type": "string"
      +        },
      +        "tech": {
      +          "description": "Exact technical summary for engineers.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "target": {
      +      "description": "Normalised domain, IP, or input target.",
      +      "type": "string"
      +    },
      +    "tool": {
      +      "description": "Catalog tool identifier.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (which only cover read-only/idempotent/non-destructive semantics): it discloses input normalization (URL parts and trailing dots stripped, IPs rejected), CNAME violation checks, a cap of 2 IPs per MX host for PTR, auth requirement, and a 2-unit daily quota cost. It also describes non-obvious outcomes: null MX returns info, non-mail subdomains return noMail=true, and missing MX on a mail domain yields a fail finding.

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 action and efficient for the amount of behavior conveyed. It is dense and semicolon-packed, with the quota/auth note trailing at the end, but no sentence is filler.

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 not be spelled out, and the description still covers the tool-specific edge-case outcomes an agent would otherwise misread. Auth and quota constraints are included, leaving nothing material missing for correct invocation.

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 the single param is already documented, so the baseline would be 3. The description adds real meaning beyond the schema by specifying normalization rules and what is rejected ("no IPs"), which the schema does not mention.

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 and resource ("Look up Mail Exchange (MX) records for a domain") and enumerates the concrete sub-checks it performs: A/AAAA resolution, PTR reverse DNS, and mail-provider identification. It is clearly distinguishable from siblings dns_lookup and email_score, which are named.

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 explicit routing guidance: "Use for mail-routing diagnostics instead of raw dns_lookup, not full deliverability scoring (email_score)." Both the positive case and the exclusion are stated with the alternative named, leaving no inference needed.

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