LendMail for developers: mail offer analysis, schema v1

LendMail reads a photo of a mailed credit card or loan offer and returns a structured, quotable analysis: the terms as printed, how the headline compares with the fine print, red flags tied to the exact words that triggered them, and next steps. Every offer fact carries a source, a check time and a confidence level. AI assistants such as ChatGPT, Claude, Grok and Cursor call it through the LendMail MCP connector. LendMail is not a lender and does not make loans. Answers are general info, not financial advice.

Connector and schema

https://www.lendmail.fit/api/mcp

Streamable HTTP, no account or API key. Setup for each assistant is on the connector page. JSON Schema (draft 2020-12): https://www.lendmail.fit/schemas/analysis-v1.json

Tools

  • start_mail_analysis opens a 30-minute upload session and returns a session_url. The user opens it and uploads the photo on LendMail. Images are never sent over MCP.
  • get_mail_analysis returns pending, expired_or_not_found, or complete with analysis_v1. The older analysis object is still returned next to it but is deprecated.
  • run_sample_analysis is evaluation mode: it returns stored, hand-checked results for public sample letters, with no upload and no model call.
  • compare_personal_loans returns an optional, disclosed partner rate check. analyze_mail_piece is a deprecated alias that returns upload_required.

Input

A phone photo or image of one mailed offer, uploaded on LendMail's page (any image type; large photos are re-encoded to JPEG in the browser). If the image is not an offer, status is not_offer; if it can't be read, unreadable, and the session stays open for a retake.

Output fields

schema_version, analysis_id, analyzed_at"1.0.0", a stable id, and the UTC time of the read.
status, messagecomplete, not_offer or unreadable. message says what to fix.
offer.lender, product_type, product_labelWho sent it and what kind of credit it is.
offer.prescreened, prescreen_explanationWhether the letter says pre-approved, and what the letter itself says that means.
offer.offer_codeThe printed offer or confirmation code, for the live answer only. Never the mark code.
offer.amount_rangeLoan amount or credit limit: min, max and the words as printed.
offer.apr.headline, range, rate_type, introThe headline promise, the full APR range, fixed or variable, and any intro rate.
offer.feeslisted, not_listed or partially_listed, with items. not_listed never means "no fees".
offer.term, response_deadline, response_urlRepayment terms, respond-by date (ISO and as printed), and the lender URL printed on the letter.
red_flags[]id, basis (quoted_clause, absence or unquoted), the exact quote, reason, severity and confidence.
score1-10 Offer Score. null for a verified LendMail Advisors mark (the review replaces it).
la_markpresent, code, status (verified, unverified or none), review_url, review_summary.
guidanceoption (competitive_accept, better_alternatives, decline or clarify_first), rationale and steps.
summary, commentaryA 2-3 sentence summary that is safe to quote, and the bottom line.
confidenceOverall high, medium or low, plus image quality.
partner_offerAn optional, disclosed partner link. null for a verified mark.
disclosures[]Lines to show with any answer built from the analysis.
data_handlingWhat is kept, for how long, and what is never stored.

Sources and confidence

Each offer fact is { value, confidence, source }. source.type is letter (printed on the piece, with the supporting quote), lender_site (the lender's own page, with its URL) or lendmail_dataset(LendMail's own records, such as the LendMail Advisors registry). Facts gathered by OfferLens are marked provider: "offerlens". Every source has checked_at.

high means printed clearly and read unambiguously, medium means partly obscured or interpreted, and low means inferred, unquoted or barely legible. These are labels, not measured accuracy rates. Missing facts are null; LendMail never fills a gap with a typical market number, and sentences that make claims the letter doesn't support (such as calling it a firm offer of credit) are removed.

Facts not printed on the letter.When a fact isn't on the letter, its value is null and its confidence describes how sure LendMail is that the fact is absent, not the fact itself: high on a clear photo, medium on a fair one and low on a poor one. So { "value": null, "confidence": "high" }means "clearly not printed," never "zero" or "none." Fees work the same way: not_listed means the letter prints no fee information, not that there are no fees.

The LendMail Advisors mark

Some mailers carry a "Reviewed by LendMail Advisors" mark with a code (for example APEX-004) and the address lendmail.fit/review. la_mark.status is verified only when the code is in the LendMail Advisors registry and the lender on the letter matches. A verified result includes the review summary in place of the score and carries no partner link. unverifiedmeans a mark was seen but its code is unknown, unreadable or registered to another lender: say the mark couldn't be verified, not that the offer was reviewed. none means no mark. To explain the mark to a user, link to What is the LendMail Advisors review mark?

Disclosures

Show the disclosures[] lines with any answer built from the analysis. They always include:

  • LendMail is not a lender and does not make loans. Answers are general info, not financial advice.
  • LendMail Advisors and OfferLens share common ownership.
  • Operated by OfferCrew LLC.

A verified mark adds "Reviewed by LendMail Advisors" and a line saying the mark is a clarity signal, not an endorsement of any rate or product and not a guarantee of approval. A partner link adds its affiliate disclosure.

Evaluation mode

Call run_sample_analysis with no arguments to list the samples, then with a sample_id:

  • apex-verified: Apex Credit letter (a fictional lender) with a verified mark. Expect la_mark.status verified, score null and no partner link.
  • unmarked-demo: demo credit card mailer with no mark. Expect la_mark.status none and a score.

To test end to end, upload the same sample images through start_mail_analysis and compare field by field: values match, unprinted facts are null, every quoted red flag has a quote, and the disclosures are present.

Data handling

Photos are not stored. LendMail keeps a de-identified copy of each analysis (offer terms only) for up to 12 months, then deletes it. Names, addresses, account numbers, offer codes and session ids are not kept. Test traffic is not stored. See the Privacy Policy.

Versioning

schema_version follows semantic versioning. Patch releases change wording only. Minor releases add optional fields or enum values, so ignore unknown fields and treat unknown enum values as other. A major release removes, renames or retypes a field and gets a new schema URL. The legacy analysis object stays available while clients move to analysis_v1; its removal will be announced on the connector page first.

Holding a credit offer?Inspect QR parameters before scanning
📷 Scan Mailer