Skip to main content
Glama

Sendfinery

Check a domain's SPF record

check_spf
Read-only

Check a domain's SPF record, the DNS TXT record (starting with v=spf1) that lists the servers allowed to send email for the domain.

It checks that the domain has exactly one SPF record, parses it, follows every include: and redirect= into a tree, and counts the DNS lookups a receiver makes against RFC 7208's limit of 10 and the void lookups (lookups that find nothing) against the limit of 2. Above either limit receivers fail SPF for every message. It also flags +all (any server may send as the domain), ?all, a missing all, ptr, syntax errors and include loops.

Returns {"domain", "record" (the record text, null without exactly one), "tree" (each node: domain, via, status, record, children), "lookups", "lookups_exact" (false when counting stopped past the limit, so lookups is a lower bound), "void_lookups", "findings" (each {"level": "ok"|"info"|"warn"|"error", "code", "text"}; "info" is a note that grades nothing), "grade" (the worst level)}. Show the user the findings' text.

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

Input Schema

NameRequiredDescriptionDefault
domainYesThe domain to check, such as example.com. A URL or an email address works too: the tool takes the domain from it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes far beyond them, disclosing that lookup counting may stop past the limit so "lookups" is a lower bound ("lookups_exact"), that exceeding 10 lookups or 2 void lookups causes receivers to fail SPF for every message, the four finding severity levels and that "info" grades nothing, and the cost of "1 per call." These are exactly the operational facts an agent cannot infer from annotations.

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 text is front-loaded: what SPF is, then what is checked, then what is returned, then cost. It is longer than strictly needed — the multi-field return enumeration largely restates the output schema — but every paragraph is organized and the "Show the user the findings' text" directive earns its place.

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 diagnostic with an output schema, this covers behavior, failure semantics, severity model, and cost. The one gap is the absence of any explicit routing guidance relative to sibling checkers, which leaves the agent to infer when this is the right tool.

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?

There is a single parameter at 100% schema description coverage, and the schema already states that URLs and email addresses are accepted and the domain extracted. The description adds no further meaning about the domain argument, so the baseline of 3 applies — the schema does the work here.

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 ("Check a domain's SPF record") and immediately defines the artifact as "the DNS TXT record (starting with v=spf1) that lists the servers allowed to send email for the domain." That definition alone distinguishes it from DKIM/DMARC-style checks, so an agent knows exactly what class of resource it operates on.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the resource definition — you call it to validate a domain's SPF configuration — but there is no explicit when-to-use framing, no mention of when to prefer a sibling such as a general domain check, and no stated prerequisites or exclusions. The diagnostic scope (lookup limits, +all, loops) hints at the intended use case without ever stating it.

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.