Skip to main content
Glama

MX lookup

check_mx
Read-onlyIdempotent

List a domain's mail servers (MX records) and which provider handles its email (Google Workspace, Microsoft 365 and others). Use to find who hosts a domain's email or why it cannot receive mail. Returns pass, warn or fail, the record as published, what was found, how to fix it, and a guide link. The value lists the mail servers, highest priority first.

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": "check_mx"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe domain to check, e.g. example.com. A URL or email address also works.

Output Schema

NameRequiredDescriptionDefault
totalYesAlways 1: one record was checked.
domainYesThe domain that was checked.
passedYes1 if the record passed, otherwise 0.
recordsYesOne row for the record checked: pass/warn/fail, the record as published, what was found, the fix and a guide link.
toolUrlYesThe same check as a free web tool on pipefire.ai.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / passed / description
      Previous value: -"How many records passed."New value: +"1 if the record passed, otherwise 0."
    • addedOutput schema / properties / records / description
      Added value: +"One row for the record checked: pass/warn/fail, the record as published, what was found, the fix and a guide link."
    • changedOutput schema / properties / total / description
      Previous value: -"How many records were checked."New value: +"Always 1: one record was checked."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "domain": {
      +      "description": "The domain that was checked.",
      +      "type": "string"
      +    },
      +    "passed": {
      +      "description": "How many records passed.",
      +      "type": "integer"
      +    },
      +    "records": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "finding": {
      +            "description": "What was found, in one sentence.",
      +            "type": "string"
      +          },
      +          "fix": {
      +            "description": "What to change. Empty when nothing needs doing.",
      +            "type": "string"
      +          },
      +          "guide": {
      +            "description": "Pipefire guide that explains this record.",
      +            "type": "string"
      +          },
      +          "record": {
      +            "description": "Which record: MX, SPF, DKIM, DMARC, BIMI or MTA-STS.",
      +            "type": "string"
      +          },
      +          "state": {
      +            "enum": [
      +              "pass",
      +              "warn",
      +              "fail"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "The record as published, or null if there is none.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "record",
      +          "state",
      +          "value",
      +          "finding",
      +          "fix",
      +          "guide"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "toolUrl": {
      +      "description": "The same check as a free web tool on pipefire.ai.",
      +      "type": "string"
      +    },
      +    "total": {
      +      "description": "How many records were checked.",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "domain",
      +    "passed",
      +    "total",
      +    "records",
      +    "toolUrl"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: the check emits pass/warn/fail, reports the published record, what was found, remediation steps, and a guide link. Minor redundancy with the existing output schema, but the pass/warn/fail semantics are useful framing.

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?

The purpose and use case are front-loaded in the first two sentences, which is the right ordering. The final two sentences describing return contents and ordering overlap with the output schema and could be trimmed, but nothing is confusing or padded.

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?

For a single-parameter read-only check with rich annotations and an output schema, the description covers purpose, when to use it, and result semantics. It omits operational caveats such as DNS propagation or caching that could affect a failing result, which is the only meaningful gap.

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 the single 'domain' parameter is already documented in the schema, including the note that a URL or email address also works. The description adds no syntax, format, or normalization details beyond that, so the baseline of 3 applies.

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 names a specific verb and resource ('List a domain's mail servers (MX records)') and extends it with a second concrete capability, identifying the email provider (Google Workspace, Microsoft 365). This is clearly distinguishable from siblings like check_spf, check_dkim, or check_dmarc by resource alone.

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?

It gives explicit use cases: 'find who hosts a domain's email or why it cannot receive mail,' which tells an agent when this check is the right diagnostic. It stops short of naming an alternative or stating exclusions (e.g., use check_domain_email_setup for a full audit), so it is clear context without routing.

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.