Lob MCP by usefulapi

v1.42.1
io.usefulapi/lob Checked 7 hours ago Published 2 days ago

Verify US & international addresses and send physical mail (postcards, letters, checks) via Lob.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lob_verify_us_address Verify a US address

Validate & standardize a US address, returning deliverability, corrected components, and a confidence score. Pass either a single freeform `address` string OR structured `primary_line`/`city`/`state`/`zip_code`. Non-mutating (no mail sent). Lob API: POST /v1/us_verifications.

ParameterTypeDescription
addressstringFreeform single-line address (alternative to the structured fields).
citystring
primary_linestringPrimary delivery line, e.g. '210 King Street'.
secondary_linestringSecondary line, e.g. 'Suite 6100'.
statestring2-letter state code, e.g. 'CA'.
zip_codestring5-digit or ZIP+4.

lob_verify_intl_address Verify an international address

Validate & standardize a non-US address. `country` (2-letter ISO code) is required. Non-mutating (no mail sent). Lob API: POST /v1/intl_verifications.

ParameterTypeDescription
country *string2-letter ISO country code, e.g. 'GB', 'DE', 'CA'.
primary_line *stringPrimary delivery line.
citystring
postal_codestring
secondary_linestring
statestringState / province / region.

lob_us_zip_lookup Look up a US ZIP code

Return the cities and state associated with a US ZIP code. Non-mutating. Lob API: POST /v1/us_zip_lookups.

ParameterTypeDescription
zip_code *stringA 5-digit US ZIP code, e.g. '94107'.

lob_us_autocomplete Autocomplete a US address

Suggest complete US addresses from a partial primary line — useful for address entry. Non-mutating. Lob API: POST /v1/us_autocompletions.

ParameterTypeDescription
address_prefix *stringPartial primary line, e.g. '185 Berr'.
citystringOptional city to narrow suggestions.
statestringOptional 2-letter state to narrow suggestions.
zip_codestringOptional ZIP to narrow suggestions.

lob_list_postcards List postcards

List sent/scheduled postcards, newest first. Lob API: GET /v1/postcards.

ParameterTypeDescription
afterstringCursor for the next page (from a previous response's next_url).
beforestringCursor for the previous page (from a previous response's previous_url).
limitintegerMax results per page (1–100). Default 10.

lob_get_postcard Get a postcard

Retrieve a single postcard by id, including status, PDF url, and expected delivery. Lob API: GET /v1/postcards/{id}.

ParameterTypeDescription
id *stringPostcard id (psc_…).

lob_list_letters List letters

List sent/scheduled letters, newest first. Lob API: GET /v1/letters.

ParameterTypeDescription
afterstringCursor for the next page (from a previous response's next_url).
beforestringCursor for the previous page (from a previous response's previous_url).
limitintegerMax results per page (1–100). Default 10.

lob_get_letter Get a letter

Retrieve a single letter by id, including status, PDF url, and tracking. Lob API: GET /v1/letters/{id}.

ParameterTypeDescription
id *stringLetter id (ltr_…).

lob_list_checks List checks

List sent/scheduled checks, newest first. Lob API: GET /v1/checks.

ParameterTypeDescription
afterstringCursor for the next page (from a previous response's next_url).
beforestringCursor for the previous page (from a previous response's previous_url).
limitintegerMax results per page (1–100). Default 10.

lob_get_check Get a check

Retrieve a single check by id, including amount, status, and check number. Lob API: GET /v1/checks/{id}.

ParameterTypeDescription
id *stringCheck id (chk_…).

lob_list_self_mailers List self-mailers

List sent/scheduled self-mailers, newest first. Lob API: GET /v1/self_mailers.

ParameterTypeDescription
afterstringCursor for the next page (from a previous response's next_url).
beforestringCursor for the previous page (from a previous response's previous_url).
limitintegerMax results per page (1–100). Default 10.

lob_list_addresses List saved addresses

List saved address records, newest first. Lob API: GET /v1/addresses.

ParameterTypeDescription
afterstringCursor for the next page (from a previous response's next_url).
beforestringCursor for the previous page (from a previous response's previous_url).
limitintegerMax results per page (1–100). Default 10.

lob_get_address Get a saved address

Retrieve a single saved address record by id. Lob API: GET /v1/addresses/{id}.

ParameterTypeDescription
id *stringAddress id (adr_…).

lob_list_templates List templates

List saved HTML templates usable as postcard/letter artwork. Lob API: GET /v1/templates.

ParameterTypeDescription
afterstringCursor for the next page (from a previous response's next_url).
beforestringCursor for the previous page (from a previous response's previous_url).
limitintegerMax results per page (1–100). Default 10.

lob_create_address Save an address record

Create a reusable saved address record (does NOT send any mail). Returns an address id (adr_…) usable as `to`/`from` in mail tools. Lob API: POST /v1/addresses.

ParameterTypeDescription
address_line1 *stringPrimary street address.
address_citystring
address_countrystring2-letter ISO country code. Defaults to US.
address_line2stringUnit/suite/apt.
address_statestring2-letter state/province code.
address_zipstringZIP / postal code.
companystring
descriptionstringInternal label for this address.
namestringRecipient name (required unless `company` is set).

lob_create_postcard Send a postcard (COSTS MONEY)

⚠️ SENDS A REAL POSTCARD and charges your Lob account (use a test_ key to avoid real mail/charges). `to` and `from` accept an existing address id (adr_…) or an inline address object. `front`/`back` accept an HTML string, a hosted asset URL, or a template id (tmpl_…). Cancelable only before `send_date`. Lob API: POST /v1/postcards.

ParameterTypeDescription
back *stringBack artwork: HTML string, asset URL, or template id (tmpl_…).
front *stringFront artwork: HTML string, asset URL, or template id (tmpl_…).
to *Either an existing address id (adr_…) or an inline address object.
descriptionstringInternal label.
fromReturn address (id or inline object). Optional.
mail_typestringUSPS mail class.
merge_variablesobjectKey/value data merged into HTML templates.
send_datestringISO-8601 date/time to schedule the send (future). Cancelable until then.
sizestringPostcard size. Default 4x6.
use_typestringLob mail use type: operational (bills, notices, legal letters) or marketing. Lob requires it unless the account has a default use type (Account Settings).

lob_create_letter Send a letter (COSTS MONEY)

⚠️ SENDS A REAL LETTER and charges your Lob account (use a test_ key to avoid real mail/charges). `to`/`from` accept an address id (adr_…) or inline object. `file` accepts an HTML string, a hosted PDF/URL, or a template id (tmpl_…). `color` is required. Cancelable only before `send_date`. Tracked mail: `extra_service` = certified (U.S. addresses: tracking + proof of delivery), certified_return_receipt (certified + the recipient's electronic signature) or registered (international addresses only); extra cost, first class only, not for us_legal size. The tracking number is on the letter…

ParameterTypeDescription
color *booleantrue = color printing, false = black & white.
file *stringLetter body: HTML string, asset/PDF URL, or template id (tmpl_…).
from *Return address (id or inline object). Required for letters.
to *Either an existing address id (adr_…) or an inline address object.
address_placementstringWhere the recipient address is placed.
descriptionstringInternal label.
double_sidedbooleanPrint on both sides. Default true.
extra_servicestringTracked mail (extra cost): certified or certified_return_receipt for U.S. addresses, registered for international ones. Omit for ordinary mail.
mail_typestringUSPS mail class. Default usps_first_class. extra_service needs first class.
merge_variablesobjectKey/value data merged into HTML templates.
send_datestringISO-8601 date/time to schedule the send (future). Cancelable until then.
use_typestringLob mail use type: operational (bills, notices, legal letters) or marketing. Lob requires it unless the account has a default use type (Account Settings).

lob_create_check Send a check (COSTS MONEY)

WRITE: ⚠️ SENDS A REAL CHECK and pays from your Lob bank account (use a test_ key to avoid real money). Ask the user before calling this tool, and set `confirm` to true only after they approve the amount, bank account and recipient. `bank_account` is a verified bank account id (bank_…) from the Lob dashboard; this tool does not create bank accounts. `to` and `from` accept an address id (adr_…) or an inline object with a name or company. Pass the same `idempotency_key` when you retry. Lob API: POST /v1/checks.

ParameterTypeDescription
amount *numberAmount in US dollars, up to 999999.99 (rounded to 2 decimals).
bank_account *stringVerified bank account id (bank_…).
confirm *booleanMust be true. Set it only after the user approved the exact recipient, artwork or amount.
from *An address id (adr_…) or an inline address object.
to *An address id (adr_…) or a US inline address object with a name or a company.
check_bottomstringArtwork at the bottom of the check: HTML string, asset URL, or template id (tmpl_…). Give message or check_bottom, not both.
check_numberintegerCheck number to print (1 to 500000000).
descriptionInternal label.
idempotency_keystringOptional unique key (max 256 printable ASCII characters). Reuse the same key when you retry the same request, so Lob does not create a second one. Keys expire after 24 hours.
memoText on the memo line of the check (max 40 characters).
merge_variablesKey/value data merged into check_bottom HTML or template artwork.
messagestringText at the bottom of the check (max 400 characters). Give message or check_bottom, not both.
send_datestringISO-8601 date/time to schedule the send (future, up to 180 days ahead).
use_typeLob mail use type: operational or marketing. Lob requires it unless the account has a default use type (Account Settings), then null is allowed.

lob_create_self_mailer Send a self-mailer (COSTS MONEY)

WRITE: ⚠️ SENDS A REAL SELF-MAILER and charges your Lob account (use a test_ key to avoid real mail/charges). Ask the user before calling this tool, and set `confirm` to true only after they approve the recipient and artwork. `inside` and `outside` accept an HTML string, a hosted asset URL, or a template id (tmpl_…). `to` and `from` accept an address id (adr_…) or an inline object. Pass the same `idempotency_key` when you retry. Lob API: POST /v1/self_mailers.

ParameterTypeDescription
confirm *booleanMust be true. Set it only after the user approved the exact recipient, artwork or amount.
inside *stringInside artwork: HTML string (under 10,000 characters), asset URL, or template id (tmpl_…).
outside *stringOutside artwork: HTML string (under 10,000 characters), asset URL, or template id (tmpl_…).
to *An address id (adr_…) or an inline address object with a name or a company.
descriptionInternal label (max 255 characters).
fromReturn address (id or inline object). Optional for U.S. recipients; required for international recipients and must then be a U.S. address.
idempotency_keystringOptional unique key (max 256 printable ASCII characters). Reuse the same key when you retry the same request, so Lob does not create a second one. Keys expire after 24 hours.
mail_typestringUSPS mail class.
merge_variablesKey/value data merged into HTML artwork.
send_datestringISO-8601 date/time to schedule the send (future, up to 180 days ahead).
sizestringSelf-mailer size. 17.75x9_trifold is in beta: the account needs Lob beta access.
use_typeLob mail use type: operational or marketing. Lob requires it unless the account has a default use type (Account Settings), then null is allowed.

lob_cancel_postcard Cancel a scheduled postcard

Cancel a postcard before its send_date so it is never mailed (and not billed). Fails if the send window has passed. Lob API: DELETE /v1/postcards/{id}.

ParameterTypeDescription
id *stringPostcard id (psc_…) to cancel.