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.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous 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"
      -}New value: +null
  2. 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"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and open-world, so safety is set. The description adds real context beyond them: the four possible qualifier values with their practical meaning, and that multiple SPF records are treated as an error by receivers, leaving the domain unprotected.

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?

Two compact paragraphs; the key output facts are front-loaded in the first sentence after the header. The opening fragment 'SPF record and how strict it is' is slightly loose but not wasteful.

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?

No output schema exists, so the description must explain returns, and it does: record text, the `all` qualifier and its implication, and the duplicate-record case. Nothing essential for correct invocation appears missing.

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% and the schema already explains domain format including email-address tolerance. The description adds nothing about the parameter, so the baseline 3 for a schema-documented single param applies.

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 ('Returns the SPF TXT record') plus the exact derived fields (qualifier on the `all` mechanism) and the duplicate-record check. This is clearly distinct from get_dmarc_record or get_mx_records by resource alone.

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?

Gives a clear triggering situation: 'Use when diagnosing why mail from a domain is being rejected or marked.' It does not name an alternative or state when not to use it, so it falls short of the explicit routing a 5 requires.

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