Skip to main content
Glama

Check Microsoft 365 DNS records

lw_m365_dns_check
Read-onlyIdempotent

Compare a domain's DNS records to Microsoft 365 requirements and output the exact MX, SPF, DKIM, autodiscover and verification records to add or fix, formatted for Liquid Web DNS or Cloudflare.

Instructions

Compare a domain's live DNS against the records Microsoft 365 expects and output the exact records to add or fix, formatted for Liquid Web DNS (lw_record_create parameters) and for Cloudflare. Checks MX (.mail.protection.outlook.com, or the DNSSEC form ending in mx.microsoft), autodiscover CNAME to autodiscover.outlook.com, one SPF record with include:spf.protection.outlook.com (merged into any existing SPF), DKIM selector1/selector2 CNAMEs, the MS=ms######## verification TXT, and optionally Intune (enterpriseregistration, enterpriseenrollment) and legacy Teams/Skype records (sip, lyncdiscover, _sipfederationtls._tcp SRV). Also flags old MX hosts left beside Microsoft 365 and an msoid CNAME. The MX token and DKIM targets are tenant-specific: pass mx_value, dkim_selector1/dkim_selector2 and verification_txt from the Microsoft 365 admin center or Defender portal for an exact comparison; otherwise the tool checks the pattern and marks values to confirm. Based on Microsoft Learn: https://learn.microsoft.com/microsoft-365/enterprise/external-domain-name-system-records and https://learn.microsoft.com/defender-office-365/email-authentication-dkim-configure (checked 2026-11-23). Domain names are sent to the public RDAP service and DNS-over-HTTPS resolvers (Cloudflare by default, Google for comparisons). No Liquid Web credentials are used.

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

Input Schema

NameRequiredDescriptionDefault
domainYesCustom domain added to Microsoft 365, e.g. contoso.com.
dns_hostNoWhich format to output records in (default auto: picked from the domain's nameservers; both if unknown).
mx_valueNoExact MX target from the admin center, e.g. contoso-com.mail.protection.outlook.com.
tenant_prefixNoThe tenant's initial domain prefix (contoso for contoso.onmicrosoft.com). Used to check DKIM targets.
dkim_selector1NoExact Selector1CNAME value from the Defender portal or Get-DkimSigningConfig.
dkim_selector2NoExact Selector2CNAME value.
include_intuneNoAlso check Intune enrollment CNAMEs (default false).
verification_txtNoDomain verification TXT from the admin center, e.g. MS=ms12345678. Only needed while adding the domain.
include_teams_legacyNoAlso check legacy Teams/Skype for Business records: sip and lyncdiscover CNAMEs and the SIP federation SRV (default false).

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses that domain names are sent to public RDAP and DNS-over-HTTPS resolvers (Cloudflare by default, Google for comparisons) and that no Liquid Web credentials are used, which is exactly the privacy and side-effect context an agent needs. It also explains the degradation behavior (pattern check plus 'confirm' markers) when tenant-specific values are omitted.

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 exact-vs-pattern distinction are front-loaded, and the enumerated record list is dense rather than padded. It is on the long side for a tool description, but nearly every clause carries operational information; only the trailing doc links and 'checked' date are marginal.

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 9 parameters, an output schema present, and a rich annotation set, the description supplies everything else an agent needs: what is checked, what the two output formats mean, how to get exact comparisons, optional scope flags, and the external-service exposure. Return-value formatting is correctly left to the output schema.

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 already 100%, so the baseline is 3, but the description adds real meaning: it explains that MX and DKIM targets are tenant-specific, where to source them, that tenant_prefix drives DKIM target checking, and what include_intune and include_teams_legacy expand to. This goes past the per-field schema text rather than repeating it.

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 opens with a specific verb and resource: compare a domain's live DNS against the records Microsoft 365 expects and output the exact records to add or fix. It then enumerates the record types checked (MX, autodiscover, SPF, DKIM, verification TXT, optional Intune/Teams), which distinguishes it from generic lookup or email-auth siblings.

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 clearly states that mx_value, dkim_selector1/dkim_selector2 and verification_txt should be passed from the admin center or Defender portal for an exact comparison, and that otherwise the tool only pattern-checks and marks values to confirm — a meaningful use-mode distinction. It does not explicitly route the agent away from siblings such as lw_email_auth_check or lw_verification_txt_check, so the alternatives gap is only partly closed.

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

Deploy Server

Other Tools