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)
Behavior5/5

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

Even though annotations already declare readOnlyHint, idempotentHint, and destructiveHint, the description adds critical behavioral context: it explicitly says 'No auth, no side effects' and describes the recursive walk behavior and the counting against RFC-7208 limit. This goes beyond annotations, providing operational details like the 10-lookup limit and return of flattening guidance when near the limit.

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 concise and well-structured: two sentences that front-load the purpose, then list outputs and usage guidance. It packs a lot of information without redundancy, and every sentence earns its place. It avoids fluff and is easy to scan, which is ideal for AI parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (recursive walks, count limits), the description fully covers what the tool does, what it returns, and when to use it. With a single parameter fully defined in the schema, and annotations covering safety, the description is complete. No output schema exists, but the description enumerates key outputs ('parsed mechanisms, lookup graph, total count, qualifier, warnings'), so the agent knows what to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already provides 100% coverage for the single parameter 'domain' with a clear description and maxLength. The description reinforces that the input is a domain only, but doesn't add new syntax details beyond the schema. Since schema coverage is high, a score of 4 is appropriate; it doesn't need to repeat parameter details but could add examples or edge cases.

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 states it performs 'read-only SPF parse and validation for a domain', with specific behaviors like recursively walking include/redirect mechanisms and counting DNS lookups. It explicitly distinguishes itself from sibling tools by mentioning check_email_security for broader overview, and other siblings like flatten_spf for flattening guidance. The verb 'check' plus resource 'SPF' is specific and 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 provides explicit usage context: 'Use for SPF auditing or before adding new include: senders' and explicitly contrasts with 'check_email_security for the broader SPF+DKIM+DMARC overview'. This gives clear when-to-use and when-not-to-use guidance, naming an alternative tool, which is exemplary.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RoscoNL/intodns-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server