# Truvek > Tools for AI agents that send email. Build email HTML, check it displays properly in every inbox, check the words against spam and privacy law, then set up sending. Every tool returns the same shape: verdict (pass, review, block, or info for reference tools), findings (each with rule, title, scope, line and fix) and next_tool (the tool to call next, or null at the end). ## Connect - All tools, one endpoint (Streamable HTTP MCP): https://truvek.io/mcp - Install in Claude Code: claude mcp add --transport http truvek https://truvek.io/mcp - Comply only: https://truvek.io/comply/mcp (tools without the comply_ prefix) - Design only: https://design.truvek.io/mcp - Plain HTTP content check: POST https://truvek.io/check with subject, body, channel, consent, sender_identified - Rate limit: 120 requests a minute per IP on every endpoint. No account needed. ## The loop 1. Build: design_compile. Describe the email as a layout. Get HTML for your platform. 2. Check the design: design_lint. Check any email HTML for what breaks in Outlook, Gmail, on phones and in dark mode. 3. Check the words: comply_check_message. Check the words against spam and privacy law. 4. Set up sending: deliver_send_requirements. Get the headers and DNS your sender needs. ## Tools - design_get_guide: Procedural guidance on where generated email breaks and how to avoid it. Inputs: topic (screenshot-to-layout or outlook or gmail or dark-mode or accessibility or sending-from-your-app or why-truvek). Returns: The guide text for one topic: where generated email breaks and how to avoid it. Next: design_get_schema - design_get_schema: Returns the JSON Schema for a Truvek email layout, the module catalogue, supported sending dialects and a worked example. Inputs: none. Returns: The layout JSON schema and the list of modules (header, hero, columns, footer and the rest). Next: design_compile - design_extract_brand: Fetches a public https page and returns likely brand colours, font stack and logo candidates to use as layout.brand. Inputs: url (string). Returns: Brand colours, fonts and logo candidates from the user's own https site, with warnings. Next: design_compile - design_compile: Compiles a Truvek layout into email HTML, a plain-text part and (for dialect 'app') a TypeScript render() module, then lints the result. Inputs: layout (object), dialect (app or handlebars or sfmc or braze or klaviyo or shopify, default app, optional), include_html (boolean, default true, optional), verbosity (full or compact, default full, optional). Returns: Email HTML for the chosen platform, a plain-text version and a summary of the checks. Next: design_autofix or design_compile while blocked, then comply_check_message for marketing email or deliver_send_requirements for transactional - design_lint: Checks any email HTML (hand-written, AI-generated, from an ESP or a CRM) against 51 rules covering Outlook, Gmail, mobile, dark mode, accessibility, merge tags, links, images, deliverability, Spam Act basics and code-generation leftovers (unrendered ${}, 'undefined', JSX attributes, Tailwind classes, localhost links). Inputs: html (string), stage (template or rendered, default template, optional), kind (marketing or transactional, default marketing, optional), verbosity (full or compact, default full, optional). Returns: Findings for existing email HTML, each with the rule, the line and the fix. Next: design_autofix for fixable errors, design_lint after fixing by hand, then comply_check_message for marketing email or deliver_send_requirements for transactional - design_autofix: Applies deterministic fixes that never change how the email looks in good clients (doctype, lang, meta tags, role=presentation, table resets, display:block images, removing scripts) and returns the fixed HTML with the remaining lint findings that need judgement. Inputs: html (string), lang (string, optional), title (string, optional), kind (marketing or transactional, default marketing, optional). Returns: The HTML with mechanical issues fixed, what changed, and what is left to fix by hand. Next: design_lint - design_explain_rule: Full reasoning, affected clients, fix and examples for a rule id from design_lint. Inputs: rule_id (string, optional). Returns: Why a lint rule exists, which clients it affects and how to fix it. Next: design_lint - deliver_send_requirements: For CRMs that send through Resend, SES, Postmark, SendGrid, Nodemailer or Mailgun directly. Inputs: provider (resend or ses or postmark or sendgrid or nodemailer or mailgun), kind (marketing or transactional, default marketing, optional). Returns: Headers, DNS records and a code snippet for sending through Resend, SES, Postmark, SendGrid, Nodemailer or Mailgun. Next: None. This is the end of the loop. - comply_check_message: Run email/SMS compliance checks before sending. Inputs: subject (string), body (string), channel (string, default email, optional), consent (string, default unknown, optional), sender_identified (boolean, default false, optional), recipient (string, optional), campaign_id (string, optional), jurisdiction (string, default all, optional). Returns: Findings by law (Spam Act, CAN-SPAM, CASL, GDPR and ePrivacy, TCPA), the message classification and a check_id. Next: comply_check_message after fixing a block, otherwise deliver_send_requirements - comply_classify_message: Classify a message as marketing, transactional, transactional_with_promotion, or unclear. Inputs: subject (string), body (string), channel (string, default email, optional). Returns: Whether the message counts as marketing, transactional or transactional with promotion, and why. Next: comply_check_message - comply_explain_rule: Look up a specific compliance rule by its ID. Inputs: rule_id (string). Returns: The law section, what it requires and how to fix it, for one rule. Next: comply_check_message - comply_list_rules: Return all compliance rules known to SendCheck. Inputs: none. Returns: Every compliance rule with its law, jurisdictions and severity. Next: comply_check_message ## Docs - Tool reference: https://truvek.io/tools - Truvek Comply: https://truvek.io/comply - Truvek Design: https://truvek.io/design - Source (MIT): https://github.com/Truckling/truvek-comply and https://github.com/Truckling/truvek-design Truvek checks are a pre-send aid, not legal advice.