Skip to main content
Glama

SPF check

check_spf
Read-onlyIdempotent

Check a domain's SPF record: whether it exists, is valid, stays under the 10 DNS lookup limit, and ends with a sensible all mechanism. Use when mail fails SPF or before adding a new sending service. Returns pass, warn or fail, the record as published, what was found, how to fix it, and a guide link.

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

Input Schema

NameRequiredDescriptionDefault
domainYesThe domain to check, e.g. example.com. A URL or email address also works.

Output Schema

NameRequiredDescriptionDefault
totalYesAlways 1: one record was checked.
domainYesThe domain that was checked.
passedYes1 if the record passed, otherwise 0.
recordsYesOne row for the record checked: pass/warn/fail, the record as published, what was found, the fix and a guide link.
toolUrlYesThe same check as a free web tool on pipefire.ai.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / passed / description
      Previous value: -"How many records passed."New value: +"1 if the record passed, otherwise 0."
    • addedOutput schema / properties / records / description
      Added value: +"One row for the record checked: pass/warn/fail, the record as published, what was found, the fix and a guide link."
    • changedOutput schema / properties / total / description
      Previous value: -"How many records were checked."New value: +"Always 1: one record was checked."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "domain": {
      +      "description": "The domain that was checked.",
      +      "type": "string"
      +    },
      +    "passed": {
      +      "description": "How many records passed.",
      +      "type": "integer"
      +    },
      +    "records": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "finding": {
      +            "description": "What was found, in one sentence.",
      +            "type": "string"
      +          },
      +          "fix": {
      +            "description": "What to change. Empty when nothing needs doing.",
      +            "type": "string"
      +          },
      +          "guide": {
      +            "description": "Pipefire guide that explains this record.",
      +            "type": "string"
      +          },
      +          "record": {
      +            "description": "Which record: MX, SPF, DKIM, DMARC, BIMI or MTA-STS.",
      +            "type": "string"
      +          },
      +          "state": {
      +            "enum": [
      +              "pass",
      +              "warn",
      +              "fail"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "The record as published, or null if there is none.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "record",
      +          "state",
      +          "value",
      +          "finding",
      +          "fix",
      +          "guide"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "toolUrl": {
      +      "description": "The same check as a free web tool on pipefire.ai.",
      +      "type": "string"
      +    },
      +    "total": {
      +      "description": "How many records were checked.",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "domain",
      +    "passed",
      +    "total",
      +    "records",
      +    "toolUrl"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, open-world, non-destructive operation, so the safety profile is covered. The description adds value beyond that by disclosing the exact checks performed and the shape of the result (pass/warn/fail plus the published record, findings, fix, and a guide link). It does not mention live DNS queries, latency, or rate limits, which is the main remaining gap for an open-world network tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler: the scope and checks come first, the usage triggers second, the return shape last. Each clause earns its place and nothing is redundant.

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?

With an output schema present and rich annotations, the description covers what an agent still needs: scope of checks, triggers for use, and result vocabulary. Minor omissions — no note that checks are performed against live DNS and no remediation routing to generate_spf_record — keep it from being fully complete.

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?

There is a single parameter with 100% schema description coverage, and the schema already states that a URL or email address is also accepted. The description adds no format or normalization detail beyond that, so the baseline of 3 applies — the schema carries the meaning here.

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 and resource ("Check a domain's SPF record") and enumerates exactly what is evaluated: existence, validity, the 10 DNS lookup limit, and the all mechanism. That level of specificity lets an agent distinguish it from sibling checks like check_dmarc, check_dkim, or generate_spf_record without opening any schema.

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?

It gives two concrete trigger conditions: "Use when mail fails SPF or before adding a new sending service." That is real when-to-use guidance for a diagnostic tool. It stops short of naming an alternative (e.g. generate_spf_record for remediation) or stating when not to use it, so it is clear context without exclusions.

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.