Tool reference

12 tools on one endpoint, https://truvek.io/mcp. Each one lists what it takes, what it returns and the tool to call next.

Every response has the same shape

{
  "verdict": "block",          pass, review, block, or info for reference tools
  "findings": [{
    "rule": "unsubscribe_missing",
    "title": "Unsubscribe link missing",
    "scope": "AU, US, CA, EU",   laws for Comply, client or area for Design
    "line": null,               line in the HTML, when there is one
    "fix": "Add a working unsubscribe link."
  }],
  "next_tool": "comply_check_message"
}

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 tool

    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

    • No inputs

    Returns

    The layout JSON schema and the list of modules (header, hero, columns, footer and the rest).

    Next tool

    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 tool

    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 tool

    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 tool

    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 tool

    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 tool

    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 tool

    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 tool

    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 tool

    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 tool

    comply_check_message

  • comply_list_rules

    Return all compliance rules known to SendCheck.

    Inputs

    • No inputs

    Returns

    Every compliance rule with its law, jurisdictions and severity.

    Next tool

    comply_check_message