Skip to main content
Glama

spfguard_analyze_spf

Audit DNS SPF records against the RFC 7208 Section 4.6.4 10-lookup ceiling, optionally resolve live DNS via DoH, and generate flattened CIDR records + RFC 8461 MTA-STS policies.

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

Input Schema

NameRequiredDescriptionDefault
domainYesDomain name to inspect (e.g., 'example.com').
formatNoOptional output format: 'json' (default) or OASIS 'sarif' v2.1.0.
spf_recordNoOptional raw v=spf1 TXT record string; omit when resolve_live_dns=true.
resolve_live_dnsNoIf true, fetch live DNS TXT via Cloudflare DoH before counting lookups.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose one meaningful trait: live DNS is fetched via Cloudflare DoH, an external network call, and it names the counting rule being applied. But it never says whether the tool is read-only, whether the generated CIDR records and MTA-STS policies are returned in the response or written somewhere, what happens when the 10-lookup ceiling is exceeded, or what the response contains.

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 front-loaded sentence that leads with the audit action and the exact RFC clause, with no filler. It is dense but not padded; the only weakness is cramming three distinct capabilities into one clause chain, which costs a little parseability.

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?

With no output schema and no annotations, the description should explain what comes back and how the advertised CIDR/MTA-STS generation is triggered. It covers the input side adequately and names the outputs, but leaves the delivery mechanism and failure behavior unexplained, which is a real gap for a tool that claims to generate artifacts.

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 description coverage is 100%, so the schema already explains domain, format, spf_record, and resolve_live_dns, including the enum values. The description adds only the DoH mechanism behind resolve_live_dns and nothing about format or spf_record syntax, so it does not meaningfully extend the schema. Baseline 3 applies.

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 names a specific verb and resource ('Audit DNS SPF records') and pins the rule set being checked (RFC 7208 Section 4.6.4 10-lookup ceiling), so the core purpose is unambiguous. It then bolts on two further capabilities (flattened CIDR generation, RFC 8461 MTA-STS policies) that have no corresponding parameter, blurring whether the tool is an auditor or a policy generator. Sibling differentiation is absent, though the name is distinctive enough.

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 only implied: the word 'optionally' signals that live DNS resolution is an opt-in mode, and the schema notes to omit spf_record when resolving live. There is no statement of when an agent should reach for this tool versus a general DNS or audit tool, and no prerequisites (e.g., domain must exist, DoH reachability) are given.

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