Click2Mail MCP by usefulapi

v1.20.1
io.usefulapi/click2mail Checked 2 days ago Published 23 hours ago

Read 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.

ParameterTypeDescription
address_type *stringRequired 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.

ParameterTypeDescription
document_classstringOnly this product, e.g. "Letter 8.5 x 11" or "Postcard 4.25 x 6".
skip_bulk_printbooleanLeave 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.

ParameterTypeDescription
color *string"Black and White" or "Full Color".
document_class *stringe.g. "Letter 8.5 x 11".
layout *stringe.g. "Address on Separate Page".
mail_class *stringe.g. "First Class".
paper_type *stringe.g. "White 24#".
print_option *stringe.g. "Printing One side".
production_time *stringe.g. "Next Day".
quantity *integerNumber of mail pieces.
envelopestringe.g. "#10 Double Window"; "None" for postcards.
international_quantityintegerHow many pieces go abroad (optional).
non_standard_quantityintegerHow many pieces are non-standard (optional).
number_of_pagesintegerPages per piece.
payment_typestringDefault "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.

ParameterTypeDescription
document_classstringOnly this class, e.g. "Letter 8.5 x 11".
number_of_documentsintegerHow many documents to return, 1-100 (vendor default applies when omitted).
offsetintegerZero-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}.

ParameterTypeDescription
address_list_id *integerAddress 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.

ParameterTypeDescription
address_list_id *integerAddress list id.
limitintegerHow many addresses to return (vendor default 10).
offsetintegerZero-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.

ParameterTypeDescription
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.

ParameterTypeDescription
addresses *array
name *stringA 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.

ParameterTypeDescription
document_name *stringA name for the document (must be unique on the account).
url *stringPublic URL of the file.
document_classstringThe product the document is for, e.g. "Letter 8.5 x 11", "Postcard 4.25 x 6".
document_formatstringFile 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.

ParameterTypeDescription
number_of_projectsintegerHow many projects to return, 1-100 (vendor default applies when omitted).
offsetintegerZero-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.

ParameterTypeDescription
project_name *stringExact project name, e.g. "March 2022".
number_of_jobsintegerHow many jobs to return, 1-100 (vendor default applies when omitted).
offsetintegerZero-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.

ParameterTypeDescription
app_signature *stringThe appSignature value.
ignore_tracking_databooleanSkip tracking data (faster).
number_of_jobsintegerHow many jobs to return, 1-100 (vendor default applies when omitted).
offsetintegerZero-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}.

ParameterTypeDescription
job_id *integerClick2Mail 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}.

ParameterTypeDescription
job_id *integerClick2Mail 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.

ParameterTypeDescription
job_id *integerClick2Mail job id.
bar_codestringOnly this one barcode.
tracking_detailbooleanInclude the full scan history of each piece.
tracking_typestringIMB (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.

ParameterTypeDescription
job_id *integerClick2Mail job id.
coupon_codestring
detailsbooleanInclude the itemized breakdown.
payment_typestringDefault "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.

ParameterTypeDescription
address_list_id *integerAddress list id (click2mail_create_address_list), status 3.
color *string"Black and White" or "Full Color".
document_class *stringe.g. "Letter 8.5 x 11", "Postcard 4.25 x 6".
document_id *integerDocument id (click2mail_upload_document_from_url / click2mail_list_documents).
layout *stringe.g. "Address on Separate Page", "Double Sided Postcard".
mail_class *stringe.g. "First Class".
paper_type *stringe.g. "White 24#".
print_option *stringe.g. "Printing One side", "Printing both sides".
production_time *stringe.g. "Next Day".
app_signaturestringLabel to find the job again with click2mail_list_jobs_by_app_signature.
endorsementstringe.g. "Forwarding Service Requested".
envelopestringe.g. "#10 Double Window"; empty or "NONE" for postcards.
mailing_datestringA date, yyyymmdd.
project_idintegerProject id to file the job in.
return_address_idintegerSaved 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.

ParameterTypeDescription
job_id *integerClick2Mail 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.

ParameterTypeDescription
billing_type *string"User Credit" charges the prepaid balance; "Invoice" bills the account. Card payments are not supported here.
confirm *booleanMust be true: the user approved submitting this job and its cost.
job_id *integerClick2Mail 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.

ParameterTypeDescription
confirm *booleanMust be true: the user approved cancelling this submitted job.
job_id *integerClick2Mail 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.

ParameterTypeDescription
job_id *integerClick2Mail job id (an unsubmitted draft).