Skip to main content
Glama

email_spf_check

Read-only

SPF record checker (10-lookup limit) — Resolves a domain's SPF record and walks every include: and redirect= recursively over DNS-over-HTTPS to count DNS lookups against the RFC 7208 limit of 10 (over 10 = PermError, mail fails SPF). Flags multiple SPF records, includes with no SPF, void lookups, +all/?all, missing all, deprecated ptr, huge ip4 ranges, unknown terms. Returns verdict PASS/WARN/PERMERROR/FAIL, policy (-all strict, ~all softfail...), lookups used and remaining, every include with its own lookup cost, flattened ip4/ip6 lists and the full include tree. Pass domain= (an email address also works). Price: $0.004 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
domainYesgoogle.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, open-world and non-destructive behavior, but the description adds substantial context beyond them: the DNS-over-HTTPS transport, the RFC 7208 lookup ceiling and what exceeding it means (PermError, mail fails SPF), the verdict vocabulary, and the x402 payment of $0.004 USDC. That payment requirement is a genuine operational fact an agent needs before calling; the only gap is no mention of latency or failure behavior if DNS resolution itself fails.

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 the 10-lookup constraint are front-loaded, and the enumerated flag list and return fields are dense but each earns its place. It is a single long run-on paragraph, though, so the verdicts, policy meanings and return values would scan faster as separated sentences or a short list.

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?

There is no output schema, so the description carries the burden of explaining returns, and it does so thoroughly: verdict enum, policy interpretation (-all vs ~all), lookups used/remaining, per-include cost, flattened ip4/ip6 lists and the include tree. Combined with annotations covering safety and a fully documented single parameter, an agent has everything needed to call it correctly.

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 100% for the single required parameter, so the baseline is 3, and the description earns an increment by stating that an email address is also accepted in place of a bare domain — a flexibility the schema's 'google.com' example does not convey.

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+resource ('Resolves a domain's SPF record') and then states the exact mechanism (recursive include:/redirect= walk over DNS-over-HTTPS) and the RFC 7208 10-lookup rule it measures against. That precision separates it from email_dkim_check and email_mta_sts, which cover different email-authentication records.

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 rather than stated: an agent can infer this is the tool for SPF validation, and 'Pass domain= (an email address also works)' clarifies input. However, there is no explicit when-to-use versus when-not guidance and no named alternative for cases like DKIM or MTA-STS checks, so routing between siblings is left to inference.

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