Skip to main content
Glama

SPF Record Check (RFC 7208)

spf_record_check
Read-onlyIdempotent

Check an SPF record before you publish it or when mail fails SPF. Send the TXT record text (for example 'v=spf1 include:_spf.example.net mx -all'). Get back every term read the RFC 7208 way (mechanism or modifier, qualifier, what a match returns, target, CIDR length, whether it costs a DNS lookup and whether it is ever evaluated), the DNS-lookup count against the limit of 10, the result when nothing matches, and each problem with its RFC section: syntax errors (permerror), more than 10 lookups, two redirect or exp modifiers, ptr, +all, terms after all, a redirect that all cancels, a missing all, a record too long for one string. The tool makes no DNS query: send the records of include and redirect targets in included_records to count the nested lookups too; any target you do not send is listed and the count is then a minimum. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/spf-record-check). Not legal, tax or financial advice.

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": {
      "record": "<record>"
    },
    "name": "spf_record_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordYesThe SPF TXT record text, starting with v=spf1 (several strings of one TXT record joined without spaces).
included_recordsNoOptional: the SPF records of include: and redirect= targets (and their own targets), so nested lookups are counted. Up to 40.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/openWorld=false annotations: it discloses that no DNS query or network call is made, that unsent include/redirect targets are listed and downgrade the lookup count to a minimum, that there is a 40-target ceiling and an hourly error limit, and that inputs are not stored and answers are signed. These are exactly the constraints an agent needs before invoking.

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 inputs are front-loaded, which is good, but the middle is a sprawling run-on sentence listing problem classes, and the closing "Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify" enumerates names with no explanation of what any of them contain. Compression and structure are functional but not tight.

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?

There is no output schema, so the description must carry return-value burden; it does so partially, naming answer fields and listing error causes (bad input, too large, hourly limit) and the signing/verification path. The bare field-name list leaves an agent guessing at payload shape, which is the main remaining gap for a tool this detailed.

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%, so the baseline is 3, but the description adds real meaning: it shows a sample record string, explains that included_records exists specifically to count nested lookups, and warns that omitting targets changes the answer from exact to a lower bound. That is semantic value the schema does not carry.

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?

States a specific verb and resource ("Check an SPF record") and immediately scopes it as a pre-publication / post-failure check of RFC 7208 compliance. The enumerated outputs (term-by-term parse, DNS-lookup count, no-match result, per-problem RFC sections) make it unmistakable against siblings like dmarc_record_check or domain_health_check.

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?

Names two concrete triggering situations: before publishing a record, and when mail fails SPF. It also gives a clear operational rule for when to pass included_records versus accepting a minimum count. No explicit "do not use this for X, use sibling Y instead" routing, which keeps it below a 5.

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