list_workflows | Lists your organization’s workflows, newest first. Takes query: { limit, cursor }; limit is 1 to 100, default 20. Keyset-paginated: pass the response’s next_cursor back as cursor until it is null. | List workflows | read |
get_workflow | Returns a workflow with its complete typed graph inline: the latest version by default, or the one named by an optional version (a version_id from list_workflow_versions). Takes workflow_id. The { name, description, nodes, edges } sub-shape is what update_workflow accepts. | Get workflow | read |
list_workflow_versions | Lists a workflow’s versions, newest first; item 0 of the first page is the version a run uses by default. Takes workflow_id and query: { limit, cursor }. Keyset-paginated like list_workflows. Versions are read-only, for comparison and audit: read one with get_workflow and its version, or run on it with run_document_packet and its workflow_version_id. | List workflow versions | read |
get_workflow_usage | Returns { pages, error_pages, credits }: what a workflow’s document runs were billed for, and the pages of its runs that ended in error, as the usage page counts them. Credits spent without a document, such as knowledge asks, are not counted. Takes workflow_id and query: { date_from, date_to }, inclusive YYYY-MM-DD days in UTC; omit both for the whole history. | Get workflow usage | read |
create_workflow | Creates a workflow from an explicit typed graph. Takes body: { name, description, nodes, edges }; omit persistent_id on every field. An invalid topology is rejected with TOPOLOGY_INVALID and a detail.violations[] list naming the rules broken. | Create workflow | write |
update_workflow | Replaces a workflow’s typed graph atomically. Takes workflow_id and body. Echo each existing field’s persistent_id unchanged, including across renames; omit it only for new fields. | Update workflow | write |
delete_workflow | Deletes a workflow and all its document packets and runs. Takes workflow_id. Irreversible. Returns { "deleted": "<workflow_id>" }. | Delete workflow | write |
stage_files | Turns files on the caller’s machine into references the other tools accept. Takes body: { files: [{ filename, declared_size, content_type }] } (1 to 10) and returns, per file, a presigned upload form for the bytes plus a short object_id to refer to them by. Staged bytes belong to no workflow and expire within a day. | Agents over MCP | write |
upload_documents | Imports files into one document packet, without running it. Takes workflow_id and body: { urls, staged_files }: HTTPS URLs fetched server-side, { object_id, filename } references from stage_files, or a mix, 1 to 100 in total. A URL-fetched file is named by its response’s Content-Disposition, else by the URL’s path; a staged file by its filename. The packet is registered only after every fetch succeeded. | Upload from URL | write |
run_document_packet | Runs, or re-runs, a packet on the latest version of its workflow, or on the version workflow_version_id names (a version_id from list_workflow_versions). Takes document_packet_id, an optional idempotency_key and an optional workflow_version_id; every call without a key starts a new billed run. A keyed retry replays the original run with its current status, so a run that already finished answers processed. | Run a document packet | write |
run_workflow | Runs a workflow that starts at an Input node, on values alone. Takes workflow_id and metadata, the values keyed by each field’s result key, plus optional idempotency_key and workflow_version_id. No file is staged. A value that is not what its field takes refuses the run with INPUT_VALUES_REFUSED, naming each key in params.keys and what it takes in params.expected. | Run on values | write |
parse_document | Parses one document with the fast lite parse. It is a quick one-off, not a production pipeline. Takes body: { url } with an HTTPS URL, or body: { object_id, filename } from stage_files. Returns a run reference. Once the run is processed, the markdown is at results.parse.markdown. Save it yourself: quick-parse output is not retained. | Parse from URL | write |
get_run | Returns one run with its results inline; results is null until status is processed. Takes run_id, an optional wait_seconds from 0 to 60, and an optional parse_output. With wait_seconds, the tool polls every 2 seconds until the run is processed, error or cancelled, or until the budget runs out. parse_output selects how much of the parsed document comes back: markdown by default (the markdown only), none (no parse), blocks (pages of blocks, each with its text, no markdown) or all (markdown and blocks). none is by far the smallest response when only the extracted fields matter. Whatever the option, results above 8 MiB are not loaded: results is null and results_url holds a presigned URL to download. With none that happens only when the extracted results alone are that large. | Get run | read |
list_workflow_runs | Lists a workflow’s runs, newest first. Takes workflow_id and query: { limit, cursor, document_packet_created_after, document_packet_created_before }. Keyset-paginated like list_workflows. | List runs | read |
list_workflow_document_packets | Lists a workflow’s document packets, newest first. Takes workflow_id and query: { limit, cursor }. Keyset-paginated like list_workflows. | List document packets | read |
get_document_packet | Returns one packet: status, timestamps, its files and latest_run_id, which is null until the packet has been run. Each file carries download_url, a presigned link to its original bytes valid until download_url_expires_at; possession of the URL is read permission until it expires. Takes document_packet_id. | Get document packet | read |
delete_document_packet | Deletes a packet and all its files. Takes document_packet_id. Irreversible. Returns { "deleted": "<document_packet_id>" }. | Delete document packet | write |
list_deletion_certificates | Lists a workflow’s deletion certificates, one per purged packet, newest issued first, and answers after the workflow is deleted. Takes workflow_id and query: { limit, cursor }. Zero-data-retention organizations only. | List deletion certificates | read |
get_deletion_certificate | Returns one deletion certificate with its signed XML document and detached signature, both base64. Takes certificate_id. Zero-data-retention organizations only. | Get deletion certificate | read |
ask_knowledge | Asks a question about the content of a workflow’s documents and returns an answer with citations, each resolved to a page and a region of the source PDF. Takes workflow_id and body: { question, thread_id }; a thread_id you mint (prefix kb-) keeps follow-ups in context. The workflow needs a Knowledge node (KNOWLEDGE_NOT_ENABLED otherwise). KNOWLEDGE_NOT_READY means no usable snapshot is available. Wait when indexing is in progress; otherwise a member indexes or updates in the app’s Knowledge tab. MCP exposes no indexing action. KNOWLEDGE_THREAD_MISMATCH means thread_id belongs to a different workflow — use a new one or ask the workflow that owns it. KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT means the published snapshot is in a format this deployment no longer reads, permanent until an operator republishes it. Every question is billed and can take a few minutes. | Ask the knowledge base | write |
list_knowledge | Lists a workflow’s knowledge corpus tree: every source document, sorted by path. Takes workflow_id, an optional folder narrowing to entries directly in it or beneath it, and an optional cursor. Keyset-paginated: pass the response’s next_cursor back as cursor until it is null. Same KNOWLEDGE_NOT_ENABLED/KNOWLEDGE_NOT_READY/KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT conditions as ask_knowledge, but never billed. | List knowledge entries | read |
search_knowledge | Ranks a workflow’s knowledge corpus by relevance to query (full-text search over the documents’ blocks) — for a topic-style question, not an exact string. Takes workflow_id, query (1 to 512 characters), an optional folder narrowing to one top-level source folder, and an optional limit (1 to 50, default 10). An unrecognized folder is NOT_FOUND. Each hit carries a relevance rank, a snippet (the text of the best-matching block), that block’s block_id and a content_url presigned for the whole document (15 minutes); content_url is null when the document changed after the snapshot was published. Same KNOWLEDGE_NOT_ENABLED/KNOWLEDGE_NOT_READY/KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT conditions as ask_knowledge, but never billed. | Search knowledge | read |
read_knowledge | Reads one document’s text from a workflow’s knowledge corpus. Takes workflow_id, path (from list_knowledge or search_knowledge) and an optional as_url. content is capped; truncated is true when it was cut off. With as_url=true, content_url is a presigned URL of the whole body (15 minutes) and content is empty. An unknown path is NOT_FOUND. Same KNOWLEDGE_NOT_ENABLED/KNOWLEDGE_NOT_READY/KNOWLEDGE_UNSUPPORTED_SNAPSHOT_FORMAT conditions as ask_knowledge, but never billed. | Read knowledge | read |
download_knowledge | Returns a presigned URL for a workflow’s whole knowledge corpus, as a tar. Possession of the URL is read permission for the corpus until it expires (15 minutes) — prefer list_knowledge/read_knowledge for anything that stays inside this API. Takes only workflow_id. Same KNOWLEDGE_NOT_ENABLED/KNOWLEDGE_NOT_READY conditions as ask_knowledge, but never billed. The first call after a publish answers KNOWLEDGE_NOT_READY while the archive is being built; retry shortly. KNOWLEDGE_DOWNLOAD_UNAVAILABLE means this corpus version’s archive can never be built: do not retry. | Download knowledge | read |
launch_eval | Launches an eval: extracts every dataset document on a workflow version and grades it against ground truth. Takes workflow_id, body: { version_id, dataset_tag_ids, untagged } and an optional idempotency_key; omit version_id for the current version, and both tag fields for the whole dataset; an empty dataset_tag_ids without untagged: true is a VALIDATION_ERROR. Billed per document, like runs; every call without a key launches a new eval. With a key, pass the same body and an explicit version_id: without one, a retry after a new version is published returns IDEMPOTENCY_KEY_REUSED, whose params.resource_id is the original eval’s id for get_eval. EMPTY_EVAL means nothing was enqueued; DATASET_INVALID_REQUEST means a tag is not one of the workflow’s. | Launch eval | write |
get_eval | Returns one eval’s headline: its status, and its accuracy once status leaves in_progress. Takes workflow_id and eval_id. Poll it after launch_eval. error means at least one document’s extraction failed or was cancelled; the headline still covers the documents that finished. | Get eval | read |
list_evals | Lists a workflow’s evals, newest first, each in the shape get_eval returns. Takes workflow_id and query: { limit, cursor }. Check it before launching again when you no longer hold an eval_id. | List evals | read |
get_eval_accuracy | Returns an eval’s accuracy per field, per document and per dataset tag. Takes workflow_id and eval_id. Partial while get_eval reports in_progress. | Get eval accuracy | read |
get_eval_document_packet_fields | Returns one eval document’s extracted values beside its ground truth. Takes workflow_id, eval_id and document_packet_id, the dataset copy’s id from get_eval_accuracy. | Get eval document fields | read |
list_dataset_tags | Returns the workflow’s dataset tags, ordered by name. Takes only workflow_id. A tag’s id is what dataset_tag_ids takes in launch_eval, and what by_dataset_tag[].dataset_tag_id names in get_eval_accuracy. | List dataset tags | read |
start_optimization | Starts an optimization of a workflow’s field descriptions. Takes workflow_id, body and an optional idempotency_key. body: { kind: "extraction", max_rounds } is a measured run scored against ground truth (max_rounds 1 to 10, default 3; GT_INVALID without ground truth). body: { kind: "extraction_oneshot", user_context } is one unmeasured round that needs no ground truth (user_context up to 4000 characters; ONESHOT_SIGNALS_MISSING when the dataset has no extraction and there is no user_context). One optimization runs per workflow: OPTIMIZATION_ALREADY_RUNNING means one still runs, and list_optimizations finds it. Billed per dataset document on a measured run. A key replays the original optimization on retry. | Start optimization | write |
get_optimization | Returns one optimization with its credits cost so far, its rounds and per-field scores. Takes workflow_id and optimization_id. Poll it after start_optimization until status is done or failed. result_version_id names the version that holds the optimized descriptions. | Get optimization | read |
list_optimizations | Lists a workflow’s optimizations, newest first, each in the shape get_optimization returns (credits included) but with empty per_field. Takes workflow_id and query: { kind, limit, cursor }. Check it before starting again when you no longer hold an optimization_id. | List optimizations | read |
list_edit_references | Lists a workflow’s reference documents, the standing data an Edit node fills forms from, each with its status: ready, pending while a PDF is parsed, or failed with an error. Takes only workflow_id. Poll it after an upload until no reference is pending. | Edit node: reference documents | read |
upload_edit_references | Uploads reference documents to a workflow. Takes workflow_id and staged_files: [{ object_id, filename }] from stage_files, 1 to 10 .csv, .txt, .md, .rst or .pdf files. Put each returned id in the Edit node’s reference_document_ids with update_workflow. A text file is ready at once; a PDF is parsed at upload, and the parse is billed. A run whose Edit node names a reference that is not ready is refused. Not idempotent: a retried call creates new references and bills their parse again, so check list_edit_references before retrying. | Edit node: reference documents | write |
upload_report_template | Uploads the Word (.docx) document a Report generator node fills. Takes workflow_id and staged_file: { object_id, filename } from stage_files. Put the returned id in the node’s template_file_id with update_workflow; placeholders lists the field keys the document reads. Alpha. Not idempotent: a retried call stores a second template. | Report generator | write |
get_report_template | Reads one Word template of a workflow: its name, its size and its placeholders. Takes workflow_id and template_id. | Report generator | read |
delete_edit_reference | Deletes a reference document and its stored objects. Takes workflow_id and document_id. Remove the id from the Edit node in the same change, or its runs are refused. Irreversible. Returns { "deleted": "<document_id>" }. | Edit node: reference documents | write |
get_ground_truth | Returns a dataset document’s ground truth, keyed by field persistent_id, with the version_id and node_id it belongs to. Takes document_packet_id, the dataset copy’s id, and an optional version and node_id; omit version for the current version. ground_truth is null until it is first set; a production packet is refused with NOT_IN_DATASET. | Get ground truth | read |
set_ground_truth | Creates or replaces a dataset document’s complete ground truth and returns the stored document. Takes document_packet_id and body: { ground_truth, version_id, node_id }; every field must be present. A production packet is refused with NOT_IN_DATASET; GT_INVALID lists each offending key in detail as { type, loc, msg }. | Set ground truth | write |
edit_field | Corrects the value of one field of an extraction. Takes extraction_id, the id of an entry of get_run’s results.extractions, and body: { sanitized_name | persistent_id, value, column?, row_index? }: name the field by its key in the results or by persistent_id, a table cell with row_index and column. value is null for an empty value. A field the extraction lacks is refused with NOT_FOUND, another assigned verifier with NOT_ASSIGNED_VERIFIER. On a dataset document whose extraction the edit leaves fully verified, it rewrites the ground truth: the description asks the agent to call request_approval first. | Edit field | write |
add_row | Inserts an empty row into a table of an extraction. Takes extraction_id and body: { sanitized_name | persistent_id, index }; index runs from 0 to the number of rows. Not idempotent: a retry inserts another row. | Add row | write |
delete_row | Deletes one row of a table of an extraction, with its values. Takes extraction_id and body: { sanitized_name | persistent_id, index }. Not idempotent: a retry deletes the next row. | Delete row | write |
verify_extraction | Marks every field of an extraction as verified, leaving edited values as they are. Takes extraction_id. An extraction with no fields, such as a split run’s main one, verifies nothing and still succeeds. On a dataset document, a verify that leaves the extraction fully verified rewrites the ground truth: the description asks the agent to call request_approval first. | Verify extraction | write |
choose_organization | Chooses the organization later calls act in, for a signed-in session only (an API key does not list it). Takes an optional name, part of the organization’s name in any case: one match is remembered and returned as { organization_id, name }, several or none ask you or list your organizations. Calls no endpoint for a membership; for a support agent it mints a support key, searches the organizations that opted in, and asks for a grant for the one picked. Every other tool takes an optional organization_id, required by a write when you have several organizations or are a support agent; a support agent may pass the picked organization’s id. | none | read |
request_approval | Shows you an approval card with a summary, optional details and Approve/Reject buttons, then makes the agent wait for your click. Calls no endpoint and changes nothing on anyformat; the delete tools ask the agent to call it first. | none | none |