Skip to main content
Glama

check_spf

Read-onlyIdempotent

Audit SPF for a domain by parsing mechanisms, recursively following includes/redirects, and counting DNS lookups against the RFC-7208 10-limit to flag when flattening is needed.

Instructions

Read-only SPF parse and validation for a domain. Recursively walks include/redirect mechanisms to build the full lookup graph, counts DNS lookups against the RFC-7208 10-lookup limit, and returns flattening guidance when the count is close to or over the limit. Returns parsed mechanisms, lookup graph, total count, qualifier (~all / -all / +all), and warnings. Use for SPF auditing or before adding new include: senders; use check_email_security for the broader SPF+DKIM+DMARC overview. No auth, no side effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name only, e.g. example.com (no URL, path, or port)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.10.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / domain / description
      Previous value: -"Domain name, e.g. example.com"New value: +"Domain name only, e.g. example.com (no URL, path, or port)"
    • addedInput schema / properties / domain / maxLength
      Added value: +253
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

While annotations already declare readOnlyHint=true and destructiveHint=false, the description adds valuable behavioral context beyond that: it recursively traces the entire SPF lookup graph, counts DNS lookups against the RFC-7208 limit, and presents flattening guidance when over the limit. This enriches the agent's understanding of the tool's computational behavior and outputs, though it stops short of detailing exact return structure or pagination. Since annotations already cover safety, a high score is justified.

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?

The description is a single, dense paragraph that front-loads the core purpose ('Read-only SPF parse and validation'), then packs behavioral details (recursive walking, DNS count, RFC limit) and usage guidance in an efficient manner. Every sentence adds value, with no fluff or redundancy. It is appropriately sized for the tool's complexity.

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?

For a tool with only one parameter, a clear schema, and safety annotations, the description covers the essential behavioral aspects: what it does (parsing/validation), what it returns (mechanisms, graph, count, qualifier, warnings), and edge-case behavior (close to/over limit). It does not explicitly mention error cases (e.g., invalid domain syntax), but given the tool's read-only nature and the presence of an output schema-less environment, this is a minor gap. The description is sufficiently complete for an agent to make a confident selection.

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?

The schema provides a full description of the single 'domain' parameter, including format constraints (no URL/path/port) and a maximum length. The description adds no new parameter-level information beyond what the schema already captures, but it does contextually imply the parameter is a domain needed for SPF lookup. With 100% schema coverage, the baseline is 3, and the description does not detract from it.

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 clearly identifies the tool as a read-only SPF parser and validator for a domain, with a specific verb ('parse and validate') and resource ('SPF records of a domain'). It distinguishes itself from sibling tools like check_email_security and flatten_spf by detailing its unique recursive include/redirect walk and DNS lookup counting, making its purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool ('for SPF auditing or before adding new include: senders') and provides a clear alternative ('use check_email_security for the broader SPF+DKIM+DMARC overview'). This gives the agent concrete decision-making guidance, distinguishing it from a generic 'use for SPF' statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.