DocuPost MCP
docupost_mcpPrice, send, track and cancel physical letters and postcards through DocuPost's hosted MCP server.
Acciones disponibles (7)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Cancel mailingDOCUPOST_MCP_CANCEL_MAILINGAcciónCancels a letter, postcard or check that hasn't been printed yet. Queued pieces can always be canceled and were never charged; accepted pieces can be canceled during their cancellation window and are refunded.
DOCUPOST_MCP_CANCEL_MAILINGAcciónCancels a letter, postcard or check that hasn't been printed yet. Queued pieces can always be canceled and were never charged; accepted pieces can be canceled during their cancellation window and are refunded.
Parámetros de entrada
idstringObligatorioThe ID from a previous result, e.g. "letter_01JD4Q8Z...", "postcard_...", "check_...".
Parámetros de salida
Sin parámetros.
Get accountDOCUPOST_MCP_GET_ACCOUNTAcciónReturns the DocuPost account's current balance in USD.
DOCUPOST_MCP_GET_ACCOUNTAcciónReturns the DocuPost account's current balance in USD.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
Sin parámetros.
Get mailingDOCUPOST_MCP_GET_MAILINGAcciónReturns one letter, postcard or check by ID: its status (queued, processing, accepted, failed, canceled), cost, delivery progress and tracking, and a dashboard_url link to it. Mail sent from the DocuPost dashboard can be looked up as "letter_<dashboard id>" (likewise postcard_, check_).
DOCUPOST_MCP_GET_MAILINGAcciónReturns one letter, postcard or check by ID: its status (queued, processing, accepted, failed, canceled), cost, delivery progress and tracking, and a dashboard_url link to it. Mail sent from the DocuPost dashboard can be looked up as "letter_<dashboard id>" (likewise postcard_, check_).
Parámetros de entrada
idstringObligatorioThe ID from a previous result, e.g. "letter_01JD4Q8Z...", "postcard_...", "check_...".
Parámetros de salida
Sin parámetros.
List lettersDOCUPOST_MCP_LIST_LETTERSAcciónLists the account's letters, newest first, including ones sent from the DocuPost dashboard, with each letter's recipient, status and date. Filter by date with created_after; page with cursor.
DOCUPOST_MCP_LIST_LETTERSAcciónLists the account's letters, newest first, including ones sent from the DocuPost dashboard, with each letter's recipient, status and date. Filter by date with created_after; page with cursor.
Parámetros de entrada
limitintegerDefault 25.
cursorstringnext_cursor from the previous page.
created_afterstringISO 8601 date-time. Default: 30 days ago. Earliest 2024-04-27.
Parámetros de salida
Sin parámetros.
Quote priceDOCUPOST_MCP_QUOTE_PRICEAcciónPrices a letter, postcard or check with the same calculator as the DocuPost dashboard. Nothing is sent or charged. Option combinations that can't be mailed return an error listing each problem. Letters are priced by page count (roughly 3,000 characters of text per single-sided page); a sent letter is charged for the pages its document actually prints.
DOCUPOST_MCP_QUOTE_PRICEAcciónPrices a letter, postcard or check with the same calculator as the DocuPost dashboard. Nothing is sent or charged. Option combinations that can't be mailed return an error listing each problem. Letters are priced by page count (roughly 3,000 characters of text per single-sided page); a sent letter is charged for the pages its document actually prints.
Parámetros de entrada
sizestringenumPostcards. Default 4x6.
4x66x9typestringObligatorioenumletterpostcardcheckcolorbooleanLetters. Default false. FedEx Overnight is always color.
pagesintegerLetters: required. Pages in the document.
countrystringLetters and postcards: recipient country, 2-letter ISO code. Default US.
quantityintegerHow many pieces to price. Default 1.
mail_classstringenumLetters: usps_first_class, usps_standard, usps_priority, usps_priority_express, fedex_overnight. Checks: usps_first_class, usps_first_class_tracked, usps_priority, fedex_overnight. Default usps_first_class.
usps_first_classusps_standardusps_priorityusps_priority_expressfedex_overnightusps_first_class_trackeddouble_sidedbooleanLetters. Default true.
extra_servicestringenumLetters, usps_first_class only.
certifiedcertified_return_receiptreturn_envelopestringenumLetters. Default none.
nonestandardprepaidattachment_pagesintegerChecks: pages in the attached PDF, if any.
Parámetros de salida
Sin parámetros.
Send letterDOCUPOST_MCP_SEND_LETTERAcciónMails a letter through USPS (or FedEx Overnight), printed from HTML or a public PDF link. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. The letter is queued and submitted within seconds; its status then becomes accepted (with its cost) or failed (with a reason). HTML must be simple, print-friendly markup (headings, paragraphs, lists, tables, inline styles), at most 9,000 characters, without scripts or external fonts.
DOCUPOST_MCP_SEND_LETTERAcciónMails a letter through USPS (or FedEx Overnight), printed from HTML or a public PDF link. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. The letter is queued and submitted within seconds; its status then becomes accepted (with its cost) or failed (with a reason). HTML must be simple, print-friendly markup (headings, paragraphs, lists, tables, inline styles), at most 9,000 characters, without scripts or external fonts.
Parámetros de entrada
toobjectObligatorioRecipient.
fromobjectObligatorioSender and return address (US). No company.
colorbooleanDefault false.
documentobjectObligatorioExactly one of "html" or "url".
mail_classstringenumDefault usps_first_class. fedex_overnight: US only.
usps_first_classusps_standardusps_priorityusps_priority_expressfedex_overnightdescriptionstringPrivate note shown in the dashboard, never printed.
double_sidedbooleanDefault true.
extra_servicestringenumCertified mail. usps_first_class only.
certifiedcertified_return_receiptidempotency_keystringOptional. Without it, an identical request made within 10 minutes is treated as a retry and returns the first piece instead of mailing another. A new unique value mails an identical second copy.
return_envelopestringenumDefault none.
nonestandardprepaidenvelope_logo_urlstringLogo image on the envelope (DocuPost Premium).
custom_envelope_idstringOnly if the user gives you one; DocuPost provides these.
Parámetros de salida
Sin parámetros.
Send postcardDOCUPOST_MCP_SEND_POSTCARDAcciónMails a 4x6 or 6x9 postcard, USPS First Class, from two public image links. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. Image size: 1875x1275 px for 4x6, 2775x1875 px for 6x9; other aspect ratios are stretched. The back needs a clear area for the address and postage.
DOCUPOST_MCP_SEND_POSTCARDAcciónMails a 4x6 or 6x9 postcard, USPS First Class, from two public image links. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. Image size: 1875x1275 px for 4x6, 2775x1875 px for 6x9; other aspect ratios are stretched. The back needs a clear area for the address and postage.
Parámetros de entrada
toobjectObligatorioRecipient.
fromobjectObligatorioSender (US). No company.
sizestringenumDefault 4x6.
4x66x9descriptionstringPrivate note shown in the dashboard, never printed.
back_image_urlstringObligatoriofront_image_urlstringObligatorioidempotency_keystringOptional. Without it, an identical request made within 10 minutes is treated as a retry and returns the first piece instead of mailing another. A new unique value mails an identical second copy.
Parámetros de salida
Sin parámetros.