{"uid":"cap_u3HUB1_xNywORnOf9GYfH","slug":"swift-bot-labs-toolbox-dns-spf-lookup-fc475809","name":"Swift Bot Labs Toolbox – DNS SPF Lookup","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/dns/spf?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"dns-spf","result":{"found":true,"domain":"github.com","issues":[],"policy":"softfail","record":"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com ~all","dnsLookups":8,"lookupLimitExceeded":false}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1tcQ6rRWva1U139RyIKF2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and analyzes the SPF (Sender Policy Framework) DNS record for a given domain, reporting the policy, DNS lookup count, and any configuration issues.","exampleAgentPrompt":"Can you check the SPF record for github.com — I want to know what the policy is, how many DNS lookups it uses, and whether there are any configuration issues?","exampleUseCases":[{"title":"Email deliverability audit for new domain","prompt":"We just set up email for acmecorp.com — can you pull the SPF record and tell me if the policy looks correct and whether we're under the 10 DNS lookup limit?"},{"title":"Diagnosing spoofed email reports","prompt":"We're getting reports that emails from newsletter.io are landing in spam. Can you check their SPF record and flag any issues that might be causing authentication failures?"},{"title":"Pre-send domain health check","prompt":"Before we launch the email campaign using sendgrid.net as our sending domain, check the SPF record to confirm the policy is set to fail or softfail and that we haven't exceeded the lookup limit."}],"resultDescription":"Returns a JSON object with: ok (boolean), tool name ('dns-spf'), and a result object containing found (boolean), domain (string), issues (array of problem strings), policy (e.g. 'softfail', 'fail', 'pass'), record (the raw SPF TXT record), dnsLookups (integer count of DNS lookups required), and lookupLimitExceeded (boolean indicating if the 10-lookup RFC limit is breached).","failureModes":["Domain does not exist — returns found: false with empty record","Domain has no SPF record — returns found: false","DNS resolution timeout — may return an error or empty result","Malformed domain input — likely returns an error response","SPF record with more than 10 DNS lookups — reported via lookupLimitExceeded: true and listed in issues"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call SPF record lookup without setting up an account or managing API keys. It is ideal for one-off domain audits, agent-driven email authentication checks, or workflows that need deterministic SPF policy data including lookup-count validation. Prefer it over generic DNS resolvers when you specifically need SPF parsing and issue detection rather than raw DNS records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:09.504Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-dns-spf-lookup-fc475809"}