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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "domain": {
      +      "type": "string"
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "meaning": {
      +      "description": "What the qualifier means in practice.",
      +      "type": "string"
      +    },
      +    "multiple_records": {
      +      "description": "More than one SPF record: receivers treat this as permerror, so SPF effectively fails.",
      +      "type": "boolean"
      +    },
      +    "qualifier": {
      +      "description": "The qualifier on the `all` mechanism.",
      +      "enum": [
      +        "fail",
      +        "softfail",
      +        "neutral",
      +        "pass",
      +        "unspecified"
      +      ],
      +      "type": "string"
      +    },
      +    "record": {
      +      "description": "The raw SPF TXT record, or null when absent.",
      +      "type": "string"
      +    },
      +    "strict": {
      +      "description": "True only for `-all`, the one strict answer.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "domain"
      +  ],
      +  "type": "object"
      +}
  2. First observed

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.

Resources