Typless MCP by usefulapi

v1.5.0
io.usefulapi/typless Checked 6 hours ago Published 12 days ago

Extract fields from business documents and read extraction results in Typless.

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

typless_list_awaiting_poll List finished extractions

List extraction ids that finished in the last 2 days and were not polled yet. Use typless_get_extraction with each id to read the result. Typless API: GET /api/v1/awaiting-poll.

ParameterTypeDescription
customerstringYour internal customer id. Typless uses it for usage reports and to filter the poll queue.

typless_get_extraction Get an extraction result

Get the status and result of one extraction by extraction_id. status is IN_PROGRESS, SUCCESS, ERROR or EXPIRED; result is empty until the status is SUCCESS. Calling it also removes the id from typless_list_awaiting_poll. The result is deleted 48 hours after processing finishes. Typless API: GET /api/v2/get-extraction-data.

ParameterTypeDescription
extraction_id *stringThe extraction id from typless_extract_data_async or typless_list_awaiting_poll.
ocr_databooleanAlso return OCR text blocks, adjusted file URL and Markdown content, when the document type produces them.

typless_extract_data Extract data from a document

Extract fields from one document and wait for the result in the same call. Send the file as base64. Accepts PDF, JPG, PNG, TIFF and BMP up to 10 MB; use typless_extract_data_async for larger files. The document type must exist in the customer's Typless account. Typless API: POST /api/v1/extract-data.

ParameterTypeDescription
document_type_name *stringName of the document type to extract with, for example line-item-invoice.
file_base64 *stringThe file content as a base64 string (up to 10 MB before encoding).
file_name *stringOriginal file name with its extension, for example invoice.pdf. The extension must match the file content.
customerstringYour internal customer id. Typless uses it for usage reports and to filter the poll queue.

typless_extract_data_async Start an extraction

Start an extraction and return an extraction_id at once (HTTP 202). Send the file as base64 (file_base64) or as a public https URL (file_url), not both. file_url files can be up to 35 MiB and must download within 60 seconds. Read the result later with typless_get_extraction. Typless API: POST /api/v1/extract-data-async.

ParameterTypeDescription
document_type_name *stringName of the document type to extract with, for example line-item-invoice.
file_name *stringOriginal file name with its extension, for example invoice.pdf. The extension must match the file content.
customerstringYour internal customer id. Typless uses it for usage reports and to filter the poll queue.
file_base64stringThe file content as a base64 string. Pass this or file_url.
file_passwordstringPassword of a password-protected PDF.
file_urlstringPublic https URL of the file (redirects are not followed). Pass this or file_base64.