Skip to main content
Glama

IntoDNS.ai DNS & Email Security Scanner

generate_spf

Read-onlyIdempotent

Build an SPF (Sender Policy Framework) record — the DNS TXT record that lists which servers may send mail for a domain. Pass the senders as mechanisms: include for a provider's own SPF (Google Workspace is _spf.google.com, Microsoft 365 is spf.protection.outlook.com, SendGrid is sendgrid.net), ip4/ip6 for your own servers, plus useMx/useA to authorise the domain's own MX or A records. The policy decides what receivers do with mail from anywhere else: 'fail' (-all, the production choice), 'softfail' (~all, for testing), 'neutral', or 'pass' (+all, which authorises the entire internet and should never be published). SPF is limited to ten DNS-triggering terms during recursive evaluation. This pure builder counts direct mechanisms; include and redirect targets can add nested lookups, so validate the published record with check_spf before treating the count as final. Returns the record, direct lookup count, whether that direct count or the 255-character limit is exceeded, plain-language warnings, and the DNS entry to publish. Use check_spf to resolve and validate a live record, and flatten_spf only when an existing record is over the limit. Nothing is looked up or stored — this is computation only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
useANoAuthorise the domain's own A/AAAA records. Costs one DNS lookup.
useMxNoAuthorise the domain's MX hosts. Costs one DNS lookup.
policyNoWhat receivers do with everything else: fail (-all) for production, softfail (~all) while testing. Defaults to fail.
mechanismsNoSenders to authorise, in the order they should appear in the record

TDQS

A5/5.0
Behavior5/5

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

Annotations already provide readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false. The description adds valuable behavioral context: SPF's ten-term limit, direct vs nested lookup counting, the 255-character limit, and that it is 'computation only' with nothing looked up or stored. No contradiction.

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 information-dense but every sentence serves a purpose: purpose, parameter explanation, constraints, return values, and sibling routing. It front-loads the core concept and packs nuance efficiently without redundancy.

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?

Covers all necessary aspects: what it does, how to use each parameter, limitations (10-term, 255-char), what it returns, and when to use alternatives. Since it has no output schema, it also enumerates the return fields. Nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds substantial meaning to each parameter: concrete examples for include providers, explanations of ip4/ip6, useMx/useA, and the policy enum with real-world guidance (e.g., 'pass...should never be published'). This goes far beyond the schema.

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 states a specific verb ('Build') and a specific resource ('SPF record') and clarifies it is a DNS TXT record. It distinguishes itself from siblings by naming check_spf and flatten_spf as alternatives for different tasks. Purpose is unmistakable.

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?

Explicitly states when to use this tool (building/validating a record) and when not to ('Use check_spf to resolve and validate a live record, and flatten_spf only when an existing record is over the limit'). It also warns to validate with check_spf before relying on the count, and clarifies this is computation only. Clear when/where to use.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Every tool has a clearly distinct purpose, and cross-references between tools (e.g., check_spf vs check_email_security vs check_sender_requirements) explicitly state when to use each one. Overlapping behaviors are carefully delineated (e.g., scan_domain vs get_everything_report vs start_deep_scan) with latency and depth tradeoffs explained. No two tools appear to do the same thing.

Naming Consistency4/5

Nearly all tool names follow a verb_noun snake_case pattern (check_*, generate_*, get_*, create_*, scan_*), with precise verbs matching each action. Minor deviations include 'nis2_quickscan' (no verb) and a few compound names like 'whois_lookup', but these are isolated. The variety of verbs is semantically justified by the broad domain, so the naming is predictable and readable.

Tool Count2/5

At 45 tools, this is far beyond the 16-25 'heavy' range and nearly double the 25 threshold. While the server covers a wide range of DNS, email, and web checks, a 45-tool surface is likely to overwhelm agents and increase selection errors. Many tools could be consolidated (e.g., individual check_* tools into one combined check) without sacrificing clarity.

Completeness5/5

The tool set meticulously covers the domain: DNS (SPF, DKIM, DMARC, DNSSEC, propagation, whois), email security (blacklist, FCrDNS, MTA-STS, SMTP TLS, TLSA, BIMI, raw email analysis, test sessions), web security (headers, CSP, HTTP/3), reporting (PDF, snapshots, badges), and compliance (NIS2, Internet.nl deep scans). There are no obvious gaps for the stated purpose of DNS & email security scanning; every check has a corresponding generator or explainer.