Skip to main content

process_document

Download a document from a URL and submit it to the FlexOrch pipeline for classification, extraction, PII detection, and quality scoring. Parameters Returns
On error:

get_job_status

Poll a processing job until it completes or fails. Parameters Returns — completed (data_process)
Returns — completed (dataset_build)
Returns — running
Pipeline stages: extractprivacyqualitydataset. Returns — failed

get_extraction_result

Retrieve structured extracted fields from a completed processing job. Returns up to 100 records inline — for larger documents, use export_dataset. Parameters Returns
When more than 100 records exist:
When no dataset is built yet (records array empty):
Masked fields use the [MASKED_TYPE] placeholder format — e.g. [MASKED_NAME], [MASKED_EMAIL], [MASKED_NATIONAL_ID_TR]. Raw PII values are never exposed.

build_dataset

Build a structured, exportable dataset from a completed execution. Parameters Returns
Poll get_job_status until status is "completed" — the response will include dataset_id.

search_documents

Search across all indexed datasets using structured keyword matching or semantic vector search. Parameters Returns
mode="semantic" and mode="hybrid" require a Pro plan or above. Trial and Starter plans return a PLAN_UPGRADE_REQUIRED error for these modes. Use mode="auto" to fall back to structured search automatically.

export_dataset

Export a built dataset and return its full content as text. Parameters Supported formats Binary formats (parquet, hf) are not supported via MCP — download them directly from GET /v1/datasets/{id}/export/{format}. Returns

dataset.index

Requires a Pro or Enterprise plan.
Trigger semantic vector indexing for a built dataset. Must be called before dataset.chunks. Indexing is idempotent — calling it again on an already-indexed dataset is safe. Parameters Returns
On plan error:
Indexing typically completes in 10–60 seconds depending on dataset size. There is no async status poll for this tool — wait a few seconds and proceed to dataset.chunks.

dataset.chunks

Requires a Pro or Enterprise plan. Index the dataset first with dataset.index.
Retrieve LangChain/LlamaIndex-ready text chunks from an indexed dataset. Supports quality filtering and pagination. Parameters Returns
On plan error:
RAG workflow with MCP: