Skip to main content
Glama

Proxy Mail QA

Check an email

check_email

Checks the newest matching email at the address (or email_id, from count_emails): SPF, DKIM and DMARC, links to localhost or plain http, where its sign-in, verify, reset or invite link goes (expect_host), whether that link goes back to the site the test started on (link_site: expect_site, or the address's site; a localhost link from a hosted site, another site, a preview instead of the published app or the other way, plain http, or Bubble's live app instead of version-test fail), whether it says when its sign-in code or link expires and when a coupon ends, a plain-text part, its size against Gmail's 102 KB limit, image-only emails, whether it fits a phone (fixed widths, alt text, tiny text), and, when asked, whether it contains given phrases (expect_text), is in a given language (expect_language) arrived soon enough after since (expect_within, such as 5m) and has the attachments expected (expect_attachment, such as .pdf). A marketing email also gets list_unsubscribe (a List-Unsubscribe header with an https address), one_click_unsubscribe (List-Unsubscribe-Post, covered by a DKIM signature that verified), unsubscribe_link (one in the email), preheader (preview text) and after_unsubscribe (it came after the address unsubscribed from its sender, see mark_unsubscribed); other emails skip them. A coupon also gets offer_reuse: it fails when the sender already sent a coupon to another version of the address (name+promo1@…, capitals); and coupon_result, once record_coupon_result has said what checkout did with it. Marketing email is also judged by the rules where the persona lives (see record_consent): marketing_consent, prechecked_consent, double_opt_in, unsubscribe_deadline, postal_address, sender_identity, minor_marketing, misleading_subject (a fake Re: or a deadline the email contradicts) and ad_label (Singapore's ). Every email also gets harmful_attachment (a file type Gmail blocks, such as .exe or a program named like a .pdf, fails; macros, HTML pages and archives warn) and spam_risk, an inbox score out of 10 where 10 is good (inbox_score, with the markers that each take points off it; score, the spam points, is deprecated) of whether inboxes would reject it or file it as spam (5 or below fails), might (8.5 or below warns) or wouldn't (pass). Each check passes, fails, warns or is skipped, with a one-line reason. Verdicts only: never the email's text or links. Wait for the email first. The marketing and coupon checks need the project to test Offers or Marketing, and harmful_attachment and spam_risk need the project's spam checks on (update_project, or Project settings → What you test); checks of a feature the project has off are left out.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "check_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
testNoWith run_id: the test or step this call belongs to, shown beside what it saw in the report.
typeNoOnly emails with a code, or with a link.
sinceNoOnly email received at or after this time, such as when the test submitted the form.
run_idNoA run from start_run: what this call sees is added to its report.
addressYesA test address in this project. A variant works too (capitals, or a +tag such as name+o'brien@…): it acts on the plain address, and a wait on a +tag variant only finds mail sent to it.
serviceNoOnly email from this sender, by service name or domain.
subtypeNoWith type, comma-separated: otp or coupon for codes; verify, magic_signin, invite, reset, other, unsubscribe or list_unsubscribe for links; or any (for links, the sign-in kinds and other).
categoryNoOnly sign-in emails (auth), receipts and notices (transactional), or offers and newsletters (marketing). For "an unsubscribed user gets no marketing", use marketing: receipts should still arrive.
email_idNoThe email to check, as count_emails gives it. Default: the newest that matches.
expect_hostNoThe site its links should go to, such as staging.example.com (subdomains count). Without it, that check is skipped. Links to a host marked with mark_dev_host pass the local-links check.
expect_siteNoThe site the test started on, such as staging.example.com, localhost:3000 or myapp.bubbleapps.io/version-test. Default: the site the address was created with. link_site compares the email's verify, sign-in or reset link with it.
expect_textNoPhrases the subject or body should contain, such as the user's first name. Case, curly quotes and spacing don't matter. The answer names only the missing ones.
expect_withinNoWith since: how soon after it the email should arrive, such as 90s, 5m or 2h (arrival_time). For example, a coupon after signing up for an offer.
expect_languageNoThe language it should be in, such as de or pt-BR.
expect_attachmentNoAttachments it should have: a type (application/pdf, image/*), an extension (.ics) or a file name with * (invoice-*.pdf). The answer names only the missing patterns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / expect_site
      Added value: +{
      +  "description": "The site the test started on, such as staging.example.com, localhost:3000 or myapp.bubbleapps.io/version-test. Default: the site the address was created with. link_site compares the email's verify, sign-in or reset link with it.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
    • changedInput schema / properties / expect_within / description
      Previous value: -"With since: how soon after it the email should arrive, such as 90s, 5m or 2h (arrival_time). For a coupon after signing up for an offer, say."New value: +"With since: how soon after it the email should arrive, such as 90s, 5m or 2h (arrival_time). For example, a coupon after signing up for an offer."
  2. Changed8 schema fields changed
    • addedInput schema / properties / address / maxLength
      Added value: +254
    • addedInput schema / properties / email_id / maxLength
      Added value: +36
    • addedInput schema / properties / expect_host / maxLength
      Added value: +268
    • addedInput schema / properties / expect_language / maxLength
      Added value: +12
    • addedInput schema / properties / expect_within / maxLength
      Added value: +8
    • addedInput schema / properties / run_id / maxLength
      Added value: +36
    • addedInput schema / properties / service / maxLength
      Added value: +253
    • addedInput schema / properties / since / maxLength
      Added value: +35
  3. Changed4 schema fields changed
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "Only sign-in emails (auth), receipts and notices (transactional), or offers and newsletters (marketing). For \"an unsubscribed user gets no marketing\", use marketing: receipts should still arrive.",
      +  "enum": [
      +    "auth",
      +    "transactional",
      +    "marketing"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / expect_attachment
      Added value: +{
      +  "description": "Attachments it should have: a type (application/pdf, image/*), an extension (.ics) or a file name with * (invoice-*.pdf). The answer names only the missing patterns.",
      +  "items": {
      +    "maxLength": 100,
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • addedInput schema / properties / expect_within
      Added value: +{
      +  "description": "With since: how soon after it the email should arrive, such as 90s, 5m or 2h (arrival_time). For a coupon after signing up for an offer, say.",
      +  "type": "string"
      +}
    • changedInput schema / properties / subtype / description
      Previous value: -"With type, comma-separated: otp or coupon for codes; verify, magic_signin, invite, reset or other for links; or any."New value: +"With type, comma-separated: otp or coupon for codes; verify, magic_signin, invite, reset, other, unsubscribe or list_unsubscribe for links; or any (for links, the sign-in kinds and other)."
  4. Changed1 schema field changed
    • changedInput schema / properties / expect_host / description
      Previous value: -"The site its links should go to, such as staging.example.com (subdomains count). Without it, that check is skipped."New value: +"The site its links should go to, such as staging.example.com (subdomains count). Without it, that check is skipped. Links to a host marked with mark_dev_host pass the local-links check."
  5. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, it explains that results are verdicts only and never expose the email's text or links, that each check is pass/fail/warn/skipped with a one-line reason, and it gives detailed scoring behavior for spam_risk and coupon reuse. The report side effect implied by readOnlyHint=false is consistent with the run_id/test reporting behavior described in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is front-loaded, but the remainder is a very dense paragraph stringing together check families, scoring thresholds, feature prerequisites, and parameter interactions. The content is relevant, but the run-on structure makes it hard to scan and would benefit from grouping or bullets.

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?

For a 15-parameter check tool with no output schema, the description covers result categories, scoring thresholds, skipped-check behavior, feature prerequisites, and the need to wait for the email first. It leaves little ambiguity about what the tool evaluates or how to interpret its verdicts.

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 description embeds some cross-parameter behavior, such as expect_host controlling the local-link check, expect_site being compared by link_site, and expect_within pairing with since. However, schema description coverage is 100% and the schema already explains these parameter meanings in detail, so the description adds only modest value beyond the structured fields.

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 opening states the specific verb and resource: it checks the newest matching email at an address or by email_id, and explicitly names count_emails as the source for email_id. The body enumerates the exact check categories, including SPF/DKIM/DMARC, link destinations, content checks, attachments, spam risk, and marketing/coupon checks, so it is clearly distinguishable from retrieval/counting siblings.

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?

It gives clear preconditions: wait for the email first, supply address or email_id, and ensure the project has Offers/Marketing or spam checks enabled before expecting those checks. It identifies count_emails as the tool that provides email_id and notes that checks for disabled features are omitted, though it does not explicitly compare itself to every possible alternative sibling.

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.

Resources