Skip to main content
Glama

Get Spf Record

get_spf_record
Read-onlyIdempotent

SPF record and how strict it is.

Returns the SPF TXT record, the qualifier on its all mechanism (fail / softfail / neutral / pass) and what that means in practice, plus whether more than one SPF record exists — which receivers treat as an error, leaving the domain unprotected. Use when diagnosing why mail from a domain is being rejected or marked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain to check, e.g. "example.com". A full email address is accepted and the domain is taken from it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
foundNo
domainYes
recordNoThe raw SPF TXT record, or null when absent.
strictNoTrue only for `-all`, the one strict answer.
meaningNoWhat the qualifier means in practice.
qualifierNoThe qualifier on the `all` mechanism.
multiple_recordsNoMore than one SPF record: receivers treat this as permerror, so SPF effectively fails.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds non-obvious behavioral context—specifically that multiple SPF records cause receivers to treat the domain as unprotected—which enriches the agent's understanding beyond a simple read operation.

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?

At roughly 65 words, the description is reasonably tight and front-loads the core purpose ('SPF record and how strict it is') before explaining the return values and usage. The opening fragment is slightly informal and could be trimmed, but overall every sentence 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?

Given the low complexity (one parameter, read-only lookup) and the existence of an output schema, the description is thorough. It covers the purpose, key return values, an error condition, and the primary use case. No critical behavioral detail is missing for an agent to call this correctly.

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 a well-documented `domain` parameter, including a helpful note that a full email address is accepted. The description adds no parameter-specific detail beyond the schema, so a baseline of 3 is appropriate since the schema carries the load.

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 states a specific verb ('Returns') with a clear resource (SPF TXT record, `all` qualifier, multi-record status). It clearly differentiates from siblings like get_dmarc_record and get_mx_records by focusing specifically on SPF semantics and its strictness qualifier, so an agent can tell them apart without opening schemas.

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?

Explicitly says 'Use when diagnosing why mail from a domain is being rejected or marked,' giving clear context for invocation. It stops short of naming sibling alternatives and when NOT to use this tool, but the usage context is concrete and actionable.

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.

TDQS

A4.3/5.0
Disambiguation4/5

check_email_domain is the comprehensive composite, while get_dmarc_record, get_mx_records, and get_spf_record target distinct record types. However, check_email_domain overlaps somewhat with each of the single-record tools, though the descriptions clearly state when to use each.

Naming Consistency4/5

Three tools follow the get_<record>_records pattern, and one uses check_<noun>_domain. The verbs are consistent (check/get) and the object is always a domain-related resource, making the naming clear. The slight variation in verb (check vs get) is minor and justified by the composite nature.

Tool Count5/5

Four tools cover the domain email checking domain well: a composite plus the three constituent lookups. This is a tight, purposeful set without redundancy or bloat, appropriate for a focused MCP server.

Completeness4/5

The set covers MX, SPF, DMARC, and a combined check, which is comprehensive for email posture. There is no tool for DKIM or other email authentication records, but DKIM is less commonly checked and the existing tools provide a thorough overview. Missing a tool to check for other SPF-like mechanisms (e.g., TXT related) is minor.

Resources