Skip to main content
Glama

Check SPF, DKIM and DMARC

check_email_deliverability
Read-onlyIdempotent

Checks, in public DNS, the three records that decide whether mail sent from a domain of the hosting lands in the inbox or in spam: SPF (which servers may send), DKIM (the signature of the hosting server, selector "default") and DMARC (what receivers do with mail that fails both). status is ok, warning or problem; each of spf / dkim / dmarc has its own status and the records found. spf: valid, missing, mismatch (a record exists but does not authorise the hosting server), multiple (several SPF records: receivers reject them all, keep ONE), error. dkim: valid, missing, mismatch (another key is published), malformed, multiple, no_key (the hosting has no key for this domain: open a ticket), error. dmarc: valid (policy says what it asks: none = report only, quarantine, reject), missing, multiple, invalid. unknown = the hosting server or DNS could not be asked, not a fault. cPanel's own Email Deliverability page reports a broken SPF or DKIM as a DMARC error: dmarc.note says so when that is the case. reverse_dns is the sending server's own name check; if it is not valid, that is for Hodi to fix (open a ticket). fixes lists the TXT records to publish and how_to_fix says how: with fix_email_deliverability when this connection has it, else by the user in cPanel (this connection is read only), or at the domain's DNS provider when its name servers are not Hodi's (get_nameservers). An SPF fix keeps what the current record already authorises and adds the hosting; never publish a second SPF record. Tighten DMARC beyond p=none only once SPF and DKIM are valid for every service that sends for the domain. When mx_warning is present the domain's mailboxes are at another provider: that provider's own SPF and DKIM matter for them, and the hosting's only for mail the website sends (forms, order confirmations). Use it for "my emails go to spam" or after a DNS change; list_sent_emails then shows what receivers answered.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_email_deliverability"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoA domain of the hosting account. Default: its main domain.
service_idNoId of a paas or email_hosting service from list_services (unique across all the accounts this connection reaches). Optional when there is a single such service.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / service_id / description
      Previous value: -"Hosting service id from list_services (unique across all the accounts this connection reaches). Optional when there is a single hosting service."New value: +"Id of a paas or email_hosting service from list_services (unique across all the accounts this connection reaches). Optional when there is a single such service."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world, so the description focuses on what they cannot say: the full status vocabulary per record, that unknown means the server or DNS could not be asked and is not a fault, that cPanel's own page misreports broken SPF/DKIM as a DMARC error, and that reverse_dns failures need a ticket. It also warns this connection is read only, which is decisive for choosing a fix path.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and status vocabulary are front-loaded, but the body is a dense run-on paragraph mixing status enumerations, fix routing, DMARC policy advice and the mx_warning exception. All of it is relevant, yet the lack of any structure or separation makes it harder to scan than it needs to be.

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?

For a two-parameter read-only diagnostic with no output schema, the description covers everything an agent needs: status semantics, per-record states, the unknown edge case, misinterpretation by cPanel, reverse_dns ownership, and the exact remediation paths for each situation.

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% with both parameters documented, so the schema carries this dimension. The description adds only indirect meaning, implying the domain must belong to the hosting account and that a service context matters when present, but says nothing specific about service_id or defaulting behavior beyond the schema.

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?

Opens with a specific verb and resource: it checks, in public DNS, the three records (SPF, DKIM, DMARC) that decide deliverability for a domain of the hosting. The parenthetical glosses on each record make the scope unambiguous, and it is clearly distinct from siblings like get_dns_zone or list_sent_emails.

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 triggers ("my emails go to spam" or after a DNS change) and names the follow-up (list_sent_emails shows what receivers answered). It also names alternatives and the condition that selects them: fix_email_deliverability when available, otherwise the user in cPanel, otherwise the domain's DNS provider (get_nameservers).

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