Skip to main content
Glama

MailX Email Deliverability

SPF Generator

spf_generate
Idempotent

Generate an SPF DNS record for a domain based on the email provider being used. Returns the record name, value, and type ready to be added to DNS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesThe mail provider identifier, e.g. google, mailgun, sendgrid, postmark, amazon-ses
domain_nameYesThe domain to generate an SPF record for, e.g. example.com
hard_fail_booleanYesIf true, uses strict -all policy (reject unauthorized senders). If false, uses soft ~all (mark but deliver).

TDQS

A4.2/5.0
Behavior4/5

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

Annotations provide idempotency and non-destructiveness, and the description adds that the tool returns the record name, value, and type ready for DNS, which is useful given no output schema. It does not detail behavior for unsupported providers or external dependencies, but the openWorldHint annotation already suggests reliance on provider data.

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?

Two sentences with no fluff; the main action and output are stated first, making the description immediately understandable.

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?

The description covers the core purpose, the basis for generation (provider), and the output format, which is essential since there is no output schema. It lacks explicit error conditions for unknown providers, but the parameter descriptions cover the inputs adequately for a simple generator.

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 input schema contains 100% parameter descriptions, so the baseline is 3. The description adds no additional parameter semantics beyond restating the provider-based logic, and the schema already defines domain and hard_fail_boolean clearly.

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 uses the specific verb 'Generate' with a clear resource ('SPF DNS record') and scope ('based on the email provider being used'), distinguishing it from sibling check tools like spf_check and from dmarc_generate by naming the record type explicitly.

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

Usage Guidelines4/5

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

The description clearly indicates when to use the tool ('based on the email provider being used') and what it produces. However, it does not explicitly mention alternative tools or exclusions, such as 'use dmarc_generate for DMARC records,' so it falls short of full usage guidance.

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

A3.7/5.0
Disambiguation4/5

Each tool has a specific purpose, but dns_lookup overlaps with cname/mx/ptr/txt lookups since it returns all record types. The 'check' tools validate records while 'lookup' tools merely retrieve them, which helps differentiate, but an agent could still confuse e.g., txt_lookup with dkim_check.

Naming Consistency3/5

Naming follows a noun_action pattern (e.g., bimi_check, mx_lookup) but uses inconsistent actions: check, lookup, finder, and generate. 'imap_finder' and 'smtp_finder' break the noun_verb pattern, and there is no uniform verb choice.

Tool Count4/5

With 16 tools, the count is at the upper edge of reasonable for an email deliverability domain. The individual DNS checks and server tests are justified, but some consolidation (e.g., a single lookup tool with record type parameter) could reduce redundancy.

Completeness4/5

Covers critical authentication checks (SPF, DKIM, DMARC, BIMI), blacklist checks, DNS lookups, and SMTP/IMAP connection tests. Missing DKIM generation and deeper reputation tools, but core deliverability verification is well-covered.

Resources