Skip to main content
Glama

HTTPfy network & DNS tools

SPF validation

spf_validate
Read-onlyIdempotent

Validate the SPF record of a domain: RFC 7208 syntax, single-record rule, DNS lookup count across includes and redirect (limit 10, a static estimate), void lookups, include loops and the all mechanism.

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

Input Schema

NameRequiredDescriptionDefault
domainYesDomain (Enter domain)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description only needs to add context. It does: it discloses that the DNS lookup count is 'a static estimate' against a limit of 10, which is exactly the kind of accuracy caveat an agent needs to interpret results honestly.

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?

A single dense sentence with the verb and resource front-loaded and the checklist following in priority order. Every clause names a distinct check; nothing is padding, though the list format makes it slightly harder to scan than a short structured layout.

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

Completeness3/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 would ideally hint at what a validation response contains (pass/fail per rule, lookup breakdown). It names the checks but not the result shape, leaving a gap for an agent deciding whether one call suffices for a full SPF diagnosis.

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 required parameter with 100% schema description coverage, so the schema already carries the burden and the baseline is 3. The description adds nothing about the domain argument (e.g. apex vs subdomain, whether a full record can be passed), so it does not exceed the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Validate the SPF record of a domain') and then enumerates the exact checks performed (RFC 7208 syntax, single-record rule, lookup count, void lookups, include loops, all mechanism). This clearly separates it from a plain record fetch like spf_lookup, though it never names a sibling to make the distinction explicit.

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

Usage Guidelines3/5

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

Usage is implied by the check list: an agent can infer this is the diagnostic tool rather than the raw-lookup tool. However, there is no explicit when-to-use statement, no prerequisites, and no guidance on when spf_lookup or dmarc_check would be the better call.

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.