Skip to main content
Glama

Sendfinery

Look up a domain's mail servers (MX)

lookup_mx
Read-only

Look up where a domain receives email: its MX records, sorted by preference, and the IPv4/IPv6 addresses of each mail server.

Use it to answer "which mail provider does this domain use", "why does mail to this domain bounce" or "is this domain's MX set up right". The result is {"domain", "hosts": [{"preference", "host", "addresses", "cname"}], "null_mx", "fallback", "findings": [{"level", "code", "text"}], "grade"}. null_mx true means the domain says it receives no mail (RFC 7505). An empty hosts with a non-empty fallback means the domain has no MX record and senders deliver to those addresses instead. Relay the findings texts to the user: they say what is wrong and what to change.

Credits: 1 per call.

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

Input Schema

NameRequiredDescriptionDefault
domainYesThe domain, such as example.com. A URL or an email address works too: only its domain is used.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses the cost (1 credit per call) and explains the semantic edge cases an agent must interpret for the user: null_mx meaning RFC 7505 no-mail, and empty hosts with a fallback list meaning implicit MX. It also instructs the agent to relay findings text, which is behavioral guidance annotations cannot carry.

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?

Purpose and use cases are front-loaded, then interpretation rules, then cost. Every sentence carries a distinct payload; the inline result shape is long but is immediately followed by the field semantics that make it usable.

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 one well-documented parameter, full annotations, and an output schema, the remaining ambiguity is interpretive rather than structural, and the description resolves exactly that (null_mx, fallback, findings, grade). Nothing an agent needs in order to call and report correctly is missing.

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 schema already documents that a URL or email address is accepted and normalized to its domain, so the description adds no parameter-level meaning. The baseline 3 applies since the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 where a domain receives email: its MX records') and scopes the output (preference-sorted hosts plus their IPv4/IPv6 addresses). It is clearly MX-specific, which implicitly separates it from lookup_dns, but it never names a sibling or states what it does not cover, so it stops short of a 5.

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?

Gives concrete use cases in question form ('which mail provider does this domain use', 'why does mail bounce', 'is the MX set up right'), which tells the agent when the tool fits. It offers no exclusions and no pointer to the neighboring tools (check_spf, lookup_dns, get_domain_report) for adjacent questions.

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.