Click2Mail MCP by usefulapi
v1.20.1Read Click2Mail credit, jobs, costs and tracking; upload documents, create and submit mail jobs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
click2mail_get_credit Get account credit
The prepaid credit balance of the Click2Mail account (`balance`) and whether the balance may go negative (`allowNegative`). Check it before submitting a job paid with User Credit. GET /molpro/credit.
click2mail_list_return_addresses List saved account addresses
The addresses of one type saved on the account (return addresses, billing, business reply, courtesy reply, EDDM mailer addresses) with their ids; use an id as `return_address_id` when creating a job. GET /molpro/account/addresses.
| Parameter | Type | Description |
|---|---|---|
address_type * | string | Required by Click2Mail. The type, e.g. "Return Address", "Billing Address", "Business Reply", "Courtesy reply address", "Eddm Mailer Address". |
click2mail_get_product_options Get product options
The mail products and valid option combinations (document class, layout, production time, envelope, color, paper, print option, mail class) for the account. Use the exact strings from this reply in click2mail_create_job and click2mail_estimate_cost. GET /molpro/productOptions.
| Parameter | Type | Description |
|---|---|---|
document_class | string | Only this product, e.g. "Letter 8.5 x 11" or "Postcard 4.25 x 6". |
skip_bulk_print | boolean | Leave out bulk-print-only options. |
click2mail_estimate_cost Estimate mailing cost
Estimate the cost of a mailing from its print options and quantity without creating anything (nothing is charged). Use the exact option strings from click2mail_get_product_options. GET /molpro/costEstimate.
| Parameter | Type | Description |
|---|---|---|
color * | string | "Black and White" or "Full Color". |
document_class * | string | e.g. "Letter 8.5 x 11". |
layout * | string | e.g. "Address on Separate Page". |
mail_class * | string | e.g. "First Class". |
paper_type * | string | e.g. "White 24#". |
print_option * | string | e.g. "Printing One side". |
production_time * | string | e.g. "Next Day". |
quantity * | integer | Number of mail pieces. |
envelope | string | e.g. "#10 Double Window"; "None" for postcards. |
international_quantity | integer | How many pieces go abroad (optional). |
non_standard_quantity | integer | How many pieces are non-standard (optional). |
number_of_pages | integer | Pages per piece. |
payment_type | string | Default "User Credit". |
click2mail_list_documents List documents
List the documents uploaded to the account (id, name, class, pages), most recent first. Use a document id when creating a job. GET /molpro/documents.
| Parameter | Type | Description |
|---|---|---|
document_class | string | Only this class, e.g. "Letter 8.5 x 11". |
number_of_documents | integer | How many documents to return, 1-100 (vendor default applies when omitted). |
offset | integer | Zero-based offset into the result list (default 0). Add the page size to page on. |
click2mail_get_address_list Get address list status
Status of an uploaded address list: processing state (3 = CASS-standardized and ready for a job), name and counts. GET /molpro/addressLists/{id}.
| Parameter | Type | Description |
|---|---|---|
address_list_id * | integer | Address list id from click2mail_create_address_list. |
click2mail_get_address_list_info Get address list details
Details of an address list: its addresses with the standardization result of each. Click2Mail returns 10 addresses by default: page with limit and offset. GET /molpro/addressLists/info.
| Parameter | Type | Description |
|---|---|---|
address_list_id * | integer | Address list id. |
limit | integer | How many addresses to return (vendor default 10). |
offset | integer | Zero-based offset into the result list (default 0). Add the page size to page on. |
click2mail_check_addresses Check and correct addresses
Validate and standardize up to 100 US postal addresses (USPS/CASS correction) before mailing. Read-only: nothing is saved or sent. POST /molpro/addressCorrection.
| Parameter | Type | Description |
|---|---|---|
addresses * | array |
click2mail_create_address_list Create address list
WRITE: upload a recipient address list (up to 500 addresses) to the account. The list is standardized (CASS) by Click2Mail; poll click2mail_get_address_list until status 3, then use its id in click2mail_create_job. Creates data only; nothing is mailed or charged. POST /molpro/addressLists.
| Parameter | Type | Description |
|---|---|---|
addresses * | array | |
name * | string | A name for the list. |
click2mail_upload_document_from_url Upload document from URL
WRITE: have Click2Mail fetch a PDF (or other supported file) from a public http(s) URL and store it as a document on the account. Returns the document id for click2mail_create_job. Creates data only; nothing is mailed or charged. POST /molpro/documents/url.
| Parameter | Type | Description |
|---|---|---|
document_name * | string | A name for the document (must be unique on the account). |
url * | string | Public URL of the file. |
document_class | string | The product the document is for, e.g. "Letter 8.5 x 11", "Postcard 4.25 x 6". |
document_format | string | File format, default "PDF". |
click2mail_list_projects List projects
List the account's projects (jobs are grouped by project; jobs without one are grouped by month, e.g. "March 2022"), most recently updated first. Use a project name with click2mail_list_project_jobs. GET /molpro/projects.
| Parameter | Type | Description |
|---|---|---|
number_of_projects | integer | How many projects to return, 1-100 (vendor default applies when omitted). |
offset | integer | Zero-based offset into the result list (default 0). Add the page size to page on. |
click2mail_list_project_jobs List jobs in a project
List the mailing jobs of one project (id, status, description). This is how to see the account's jobs: pick a project from click2mail_list_projects. GET /molpro/projects/jobs.
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Exact project name, e.g. "March 2022". |
number_of_jobs | integer | How many jobs to return, 1-100 (vendor default applies when omitted). |
offset | integer | Zero-based offset into the result list (default 0). Add the page size to page on. |
click2mail_list_jobs_by_app_signature List jobs by app signature
List the jobs that were created with a given `appSignature` (the label an integration puts on its jobs; click2mail_create_job sets it). GET /molpro/jobs/appSignature.
| Parameter | Type | Description |
|---|---|---|
app_signature * | string | The appSignature value. |
ignore_tracking_data | boolean | Skip tracking data (faster). |
number_of_jobs | integer | How many jobs to return, 1-100 (vendor default applies when omitted). |
offset | integer | Zero-based offset into the result list (default 0). Add the page size to page on. |
click2mail_get_job_status Get job status
Status of a job: numeric `status` and its `description` (for example 9 = Editing) plus the status URL. GET /molpro/jobs/{id}.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Click2Mail job id. |
click2mail_get_job_info Get job details
Full details of a job: print options, document, address list, dates, cost and payment. GET /molpro/jobs/info/{id}.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Click2Mail job id. |
click2mail_get_job_tracking Get job tracking
USPS tracking for a submitted job: per mail piece barcode, address, status, date and location. Tracking updates once a day, so one call per day is enough; nothing is tracked on staging. GET /molpro/jobs/{id}/tracking.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Click2Mail job id. |
bar_code | string | Only this one barcode. |
tracking_detail | boolean | Include the full scan history of each piece. |
tracking_type | string | IMB (Intelligent Mail barcode, default) or IMPB (package). |
click2mail_get_job_cost Get job cost
The exact cost of a created job (postage, printing, fees) for a payment type. Read it before click2mail_submit_job. GET /molpro/jobs/{id}/cost.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Click2Mail job id. |
coupon_code | string | |
details | boolean | Include the itemized breakdown. |
payment_type | string | Default "Credit Card" at the vendor; use "User Credit" for account credit. |
click2mail_create_job Create job (draft)
WRITE: create a mailing job from an uploaded document and an address list. The job stays a draft (status Editing): nothing is printed, mailed or charged until click2mail_submit_job. Use the exact option strings from click2mail_get_product_options. Returns the job id. POST /molpro/jobs.
| Parameter | Type | Description |
|---|---|---|
address_list_id * | integer | Address list id (click2mail_create_address_list), status 3. |
color * | string | "Black and White" or "Full Color". |
document_class * | string | e.g. "Letter 8.5 x 11", "Postcard 4.25 x 6". |
document_id * | integer | Document id (click2mail_upload_document_from_url / click2mail_list_documents). |
layout * | string | e.g. "Address on Separate Page", "Double Sided Postcard". |
mail_class * | string | e.g. "First Class". |
paper_type * | string | e.g. "White 24#". |
print_option * | string | e.g. "Printing One side", "Printing both sides". |
production_time * | string | e.g. "Next Day". |
app_signature | string | Label to find the job again with click2mail_list_jobs_by_app_signature. |
endorsement | string | e.g. "Forwarding Service Requested". |
envelope | string | e.g. "#10 Double Window"; empty or "NONE" for postcards. |
mailing_date | string | A date, yyyymmdd. |
project_id | integer | Project id to file the job in. |
return_address_id | integer | Saved return address id (click2mail_list_return_addresses). |
click2mail_request_job_proof Request job proof
WRITE: ask Click2Mail to render a proof (preview PDF) of a draft job. Free; nothing is mailed or charged. The reply names the proof; it takes a moment to render. POST /molpro/jobs/{id}/proof.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Click2Mail job id (a draft). |
click2mail_submit_job Submit job (spends money)
WRITE, SPENDS MONEY, NOT REVERSIBLE: submit a draft job for printing and USPS mailing. This charges postage and printing to the account (User Credit = prepaid balance, or Invoice) and the physical mail is sent to every recipient. Before calling: read click2mail_get_job_cost and click2mail_get_credit, and get the user's explicit go-ahead for this job and amount. `confirm` must be true. Cancellation is only possible for Invoice jobs, before processing starts. POST /molpro/jobs/{id}/submit.
| Parameter | Type | Description |
|---|---|---|
billing_type * | string | "User Credit" charges the prepaid balance; "Invoice" bills the account. Card payments are not supported here. |
confirm * | boolean | Must be true: the user approved submitting this job and its cost. |
job_id * | integer | Click2Mail job id (a draft). |
click2mail_cancel_job Cancel submitted job
WRITE: cancel a SUBMITTED job. The vendor documents this only for jobs paid by invoice and only before processing for mailing has started; otherwise it fails. The mailing is stopped for good, so get the user's explicit go-ahead first; `confirm` must be true. To remove a draft use click2mail_delete_job. POST /molpro/jobs/{id}/cancel.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user approved cancelling this submitted job. |
job_id * | integer | Click2Mail job id. |
click2mail_delete_job Delete draft job
WRITE: delete a job that has not been submitted (status Editing or PendingProofAcceptence). Submitted jobs cannot be deleted; use click2mail_cancel_job. POST /molpro/jobs/{id}/delete.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Click2Mail job id (an unsubmitted draft). |