unfold. by Preview: unfold. is in Preview: credits and limits apply

Docs

Docs

MCP reference

Tools of the MCP server, with their scopes, inputs and outputs.

This reference is generated from the tool list of the MCP server.

Server: untern-lens-portal, version 2.9.0.

Tools

ToolScope
cancel_jobdocuments:write
estimate_creditsdocuments:read
extract_fieldsdocuments:write
get_chunksdocuments:read
get_document_pagesdocuments:read
get_extractiondocuments:read
get_jobdocuments:read
get_usagedocuments:read
list_jobsdocuments:read
list_schemasdocuments:read
parse_documentdocuments:write
read_resultdocuments:read
wait_for_jobdocuments:read
whoamiAny valid credential

cancel_job

Cancel a job that has not started yet. A running job cannot be cancelled.

  • Title: Cancel a job
  • Scope: documents:write
  • Read only: No
  • Destructive: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
job_idstringYesJob id

Output

PropertyTypeRequiredDescription
cache_hitbooleanNoDefault: false.
created_atstring (date-time)Yes
creditsJobCredits or nullNoCredits of this task; null while billing is off Default: null.
errorJobError or nullNoDefault: null.
file_idstringYes
idstringYesTask id (task_id of POST /api/files/process)
modestring or nullNoParsing mode Default: null.
pagesstring or nullNoRequested pages, normalised Default: null.
response_formatstring or nullNoDefault: null.
result_idstring or nullNoSet once the task has completed Default: null.
retryablebooleanNoDefault: false.
sourceJobSourceNo
statusstring, one of pending, processing, completed, failedYes
terminalbooleanYesTrue for completed and failed
updated_atstring (date-time)Yes

Definitions

JobCredits

Credits of one task (billing on); the same numbers as the X-Credits-* headers.

PropertyTypeRequiredDescription
chargedinteger or nullNoCharged once the task is terminal Default: null.
refundedinteger or nullNoReleased back (failed pages, own cache, estimate above actual) Default: null.
reservedinteger or nullNoCredits held when the task was created Default: null.

JobError

PropertyTypeRequiredDescription
codestringYesFailure code of the task (closed list of the API)
messagestring or nullNoShort reason; no document content Default: null.
retryablebooleanYesTrue when submitting the same work again may succeed

JobSource

PropertyTypeRequiredDescription
md5string or nullNoMD5 of the uploaded bytes Default: null.
namestring or nullNoName of the uploaded file Default: null.
size_bytesinteger or nullNoSize of the stored source, if known Default: null.

estimate_credits

The most credits parsing these files can cost, before uploading anything. Pass metadata only (mime, size_bytes, page_count, ...) or the file_id of an uploaded file. Nothing is held or charged.

  • Title: Estimate credits
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
itemsarray of EstimateFile or EstimateFileRefYesFiles to price, 1 to 100
modestring or nullNofast, auto, precise or expert Default: null.
pagesstring or nullNoPage selection, e.g. 1-3,7 Default: null.

Output

PropertyTypeRequiredDescription
completebooleanYesFalse when an item could not be priced (see its error)
credits_remaininginteger or nullNoDefault: null.
itemsarray of EstimateItemYes
kind"estimate"NoDefault: estimate.
quote_expires_atstring (date-time)YesUntil when these rates apply (15 minutes); estimate again after it
rates_versionstringYes
schema_version"1"NoDefault: 1.
total_creditsintegerYes
within_balanceboolean or nullNoDefault: null.

Definitions

EstimateFile

Metadata of a file that is not uploaded yet (never its bytes; the name is not used).

PropertyTypeRequiredDescription
mimestringYesMedia type, e.g. application/pdf
namestring or nullNoAccepted, never stored Default: null.
page_countinteger or nullNoPDF pages or slides Default: null.
sha256string or nullNoAccepted, not used yet Default: null.
sheet_cellsarray of integer or nullNoNon-empty cells per sheet (XLSX) Default: null.
size_bytesinteger or nullNoDefault: null.
text_charsinteger or nullNoCharacters of text (DOCX, TXT) Default: null.
text_pagesinteger or nullNoPages with a usable text layer, when known Default: null.

EstimateFileRef

A file already uploaded by the caller.

PropertyTypeRequiredDescription
file_idstringYes

EstimateItem

PropertyTypeRequiredDescription
basisstring or nullNoHow the credits were computed Default: null.
cachedbooleanNoDefault: false.
creditsinteger or nullYesThe ceiling: the most this item can cost
credits_expectedinteger or nullNoThe likely cost: pages whose text layer is not known are priced as text pages (where the mode has a text rate); equal to credits when every page is known Default: null.
errorEstimateItemError or nullNoDefault: null.
exactnessstring, one of exact, upper_bound or nullNoDefault: null.
modestring or nullNoDefault: null.
pagesinteger or nullNoDefault: null.

EstimateItemError

PropertyTypeRequiredDescription
codestringYes
messagestring or nullNoDefault: null.

extract_fields

Extract the fields of a JSON Schema (or a server schema NAME@VERSION from list_schemas) from a finished result. Pass job_id or result_id. Each value comes with quotes found in the document; with require_evidence (default) a value without one is dropped. Waits up to wait_s seconds for the result.

  • Title: Extract fields
  • Scope: documents:write
  • Read only: No
  • Destructive: No
  • Idempotent: No
  • Open world: No

Input

PropertyTypeRequiredDescription
idempotency_keystring or nullNoReuse it on retries: the same key returns the first extraction Default: null.
instructionsstring or nullNoExtra guidance Default: null.
job_idstring or nullNoJob id from parse_document Default: null.
max_creditsinteger or nullNoRefuse above this Default: null.
require_evidencebooleanNoDrop values without a quote Default: true.
result_idstring or nullNoResult id of a finished job Default: null.
schemamap of JsonValue or nullNoJSON Schema in the subset Default: null.
schema_refstring or nullNoServer schema NAME@VERSION Default: null.
wait_sintegerNoSeconds to wait for the result From 0 to 50. Default: 30.

Output

PropertyTypeRequiredDescription
datamap of JsonValue or nullNoDefault: null.
errorServerError or nullNoDefault: null.
errorsarray of stringNo
fieldsmap of ExtractedFieldNo
idstringYes
job_idstring or nullYes
kind"extraction"NoDefault: extraction.
needs_reviewarray of stringNo
prompt_refstring or nullNoDefault: null.
result_idstringYes
schema_refstringYes"invoice@1" or "inline:sha256:<12 hex>"
schema_version"1"NoDefault: 1.
statusstring, one of pending, processing, completed, failedYes
terminalbooleanYes

Definitions

DocumentBBox

Axis-aligned box, top-left origin, in the page's unit.

PropertyTypeRequiredDescription
x0numberYes
x1numberYes
y0numberYes
y1numberYes

Evidence

A quote that was found in the document (untern_docai.extract.Evidence).

PropertyTypeRequiredDescription
bboxDocumentBBox or nullNoDefault: null.
block_idstringYes
pageintegerYes
quotestringYes
reanchoredbooleanNoFound in another block than the cited one Default: false.

ExtractedField

PropertyTypeRequiredDescription
confidencenumberYesFrom 0 to 1.
evidencearray of EvidenceNo
messagestring or nullNoDefault: null.
namestringYes
statusstring, one of ok, missing, unsupported, invalidYes
valueJsonValueNoDefault: null.

JsonValue

Type: any.

ServerError

PropertyTypeRequiredDescription
codestringYes
messagestringYes
retryablebooleanNoDefault: false.

get_chunks

Heading-aware chunks of a finished result (text, heading path, pages, block ids and boxes) for retrieval or citation. Pass job_id or result_id; read on with cursor = next_cursor until it is null.

  • Title: Read retrieval chunks
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
cursorstring or nullNonext_cursor of the previous page Default: null.
job_idstring or nullNoJob id from parse_document Default: null.
limitintegerNoChunks per page From 1 to 50. Default: 20.
max_charsintegerNoLargest chunk in characters From 200 to 4000. Default: 1500.
result_idstring or nullNoResult id of a finished job Default: null.

Output

PropertyTypeRequiredDescription
itemsarray of objectYes
kind"chunk_page"NoDefault: chunk_page.
next_cursorstring or nullYesPass as cursor to read on; null at the end
result_idstringYes
schema_version"1"NoDefault: 1.

get_document_pages

Up to 10 pages of a finished result as a structured Document (blocks with type, text, heading level and bounding box). Pass job_id or result_id and from_page; read on from to_page + 1 until it equals page_count.

  • Title: Read document pages
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
from_pageintegerNoFirst page, 1-based At least 1. Default: 1.
job_idstring or nullNoJob id from parse_document Default: null.
result_idstring or nullNoResult id of a finished job Default: null.
to_pageinteger or nullNoLast page, at most from_page + 9 Default: null.

Output

PropertyTypeRequiredDescription
documentDocumentYes
from_pageintegerYes
kind"document_window"NoDefault: document_window.
page_countintegerYesPages in the whole document
result_idstringYes
schema_version"1"NoDefault: 1.
to_pageintegerYesLast page in this window; read on from to_page + 1

Definitions

Document

A parsed document: pages with their blocks and boxes (untern_docai.Document 1.0).

metadata (strings only) carries file_id, result_id, parsing_mode, parser_version, page_count, page_image:<n> (path of page n's image, relative to the API base) for every page that has one, and page_size_unknown (comma-separated page numbers whose size the bundle did not record; those pages report 1 x 1).

PropertyTypeRequiredDescription
idstringYes
metadatamap of stringNo
pagesarray of DocumentPageNo
schema_version"1.0"NoDefault: 1.0.
sourceDocumentSourceYes

DocumentBBox

Axis-aligned box, top-left origin, in the page's unit.

PropertyTypeRequiredDescription
x0numberYes
x1numberYes
y0numberYes
y1numberYes

DocumentBlock

One layout element. A table block (and only it) carries table; its text is the table's Markdown.

PropertyTypeRequiredDescription
bboxDocumentBBox or nullNoDefault: null.
childrenarray of DocumentBlockNo
confidencenumber or nullNoDefault: null.
idstringNoDefault: ``.
keystring or nullNoDefault: null.
levelinteger or nullNoDefault: null.
pageintegerYesAt least 1.
tableDocumentTable or nullNoDefault: null.
textstringNoDefault: ``.
typestring, one of heading, paragraph, list, list_item, table, figure, key_value, signature, stampYes
valuestring or nullNoDefault: null.

DocumentPage

A page; its rendered image (when the bundle has one) is named in Document.metadata.

PropertyTypeRequiredDescription
blocksarray of DocumentBlockNo
dpinumber or nullNoDefault: null.
enginestringYes
heightnumberYes
numberintegerYesAt least 1.
rotationinteger, one of 0, 90, 180, 270NoDefault: 0.
unitstring, one of pt, pxNoDefault: pt.
widthnumberYes

DocumentSource

PropertyTypeRequiredDescription
mime_typestringYes
namestringYes
size_bytesinteger or nullNoDefault: null.

DocumentTable

A grid of cells; spanned positions are covered by exactly one anchor cell.

PropertyTypeRequiredDescription
cellsarray of DocumentTableCellNo
n_colsintegerYesAt least 0.
n_rowsintegerYesAt least 0.

DocumentTableCell

PropertyTypeRequiredDescription
bboxDocumentBBox or nullNoDefault: null.
colintegerYesAt least 0.
col_spanintegerNoAt least 1. Default: 1.
confidencenumber or nullNoDefault: null.
is_headerbooleanNoDefault: false.
rowintegerYesAt least 0.
row_spanintegerNoAt least 1. Default: 1.
textstringNoDefault: ``.

get_extraction

An extraction by id; wait_s (up to 50) waits for it to finish.

  • Title: Get an extraction
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
extraction_idstringYesExtraction id
wait_sintegerNoSeconds to wait for the result From 0 to 50. Default: 0.

Output

PropertyTypeRequiredDescription
datamap of JsonValue or nullNoDefault: null.
errorServerError or nullNoDefault: null.
errorsarray of stringNo
fieldsmap of ExtractedFieldNo
idstringYes
job_idstring or nullYes
kind"extraction"NoDefault: extraction.
needs_reviewarray of stringNo
prompt_refstring or nullNoDefault: null.
result_idstringYes
schema_refstringYes"invoice@1" or "inline:sha256:<12 hex>"
schema_version"1"NoDefault: 1.
statusstring, one of pending, processing, completed, failedYes
terminalbooleanYes

Definitions

DocumentBBox

Axis-aligned box, top-left origin, in the page's unit.

PropertyTypeRequiredDescription
x0numberYes
x1numberYes
y0numberYes
y1numberYes

Evidence

A quote that was found in the document (untern_docai.extract.Evidence).

PropertyTypeRequiredDescription
bboxDocumentBBox or nullNoDefault: null.
block_idstringYes
pageintegerYes
quotestringYes
reanchoredbooleanNoFound in another block than the cited one Default: false.

ExtractedField

PropertyTypeRequiredDescription
confidencenumberYesFrom 0 to 1.
evidencearray of EvidenceNo
messagestring or nullNoDefault: null.
namestringYes
statusstring, one of ok, missing, unsupported, invalidYes
valueJsonValueNoDefault: null.

JsonValue

Type: any.

ServerError

PropertyTypeRequiredDescription
codestringYes
messagestringYes
retryablebooleanNoDefault: false.

get_job

The current state of one parse job.

  • Title: Get a job
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
job_idstringYesJob id

Output

PropertyTypeRequiredDescription
cache_hitbooleanNoDefault: false.
created_atstring (date-time)Yes
creditsJobCredits or nullNoCredits of this task; null while billing is off Default: null.
errorJobError or nullNoDefault: null.
file_idstringYes
idstringYesTask id (task_id of POST /api/files/process)
modestring or nullNoParsing mode Default: null.
pagesstring or nullNoRequested pages, normalised Default: null.
response_formatstring or nullNoDefault: null.
result_idstring or nullNoSet once the task has completed Default: null.
retryablebooleanNoDefault: false.
sourceJobSourceNo
statusstring, one of pending, processing, completed, failedYes
terminalbooleanYesTrue for completed and failed
updated_atstring (date-time)Yes

Definitions

JobCredits

Credits of one task (billing on); the same numbers as the X-Credits-* headers.

PropertyTypeRequiredDescription
chargedinteger or nullNoCharged once the task is terminal Default: null.
refundedinteger or nullNoReleased back (failed pages, own cache, estimate above actual) Default: null.
reservedinteger or nullNoCredits held when the task was created Default: null.

JobError

PropertyTypeRequiredDescription
codestringYesFailure code of the task (closed list of the API)
messagestring or nullNoShort reason; no document content Default: null.
retryablebooleanYesTrue when submitting the same work again may succeed

JobSource

PropertyTypeRequiredDescription
md5string or nullNoMD5 of the uploaded bytes Default: null.
namestring or nullNoName of the uploaded file Default: null.
size_bytesinteger or nullNoSize of the stored source, if known Default: null.

get_usage

The plan of this token's account and its credits for the current or previous period (included, used, remaining, pages left on page-capped plans, the token's own budget).

  • Title: Credits and plan
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
periodstring, one of current, previousNoBilling period Default: current.

Output

PropertyTypeRequiredDescription
as_ofstring (date-time)Yes
credits_includedintegerYes
credits_remainingintegerYesAvailable now (holds taken off), without overage
credits_topup_remainingintegerYes
credits_usedintegerYes
kind"usage"NoDefault: usage.
overage_allowedbooleanYes
overage_capinteger or nullNoDefault: null.
overage_usedintegerYes
pages_includedinteger or nullNoPage cap of the period (Free: 50); null without a page cap Default: null.
pages_remaininginteger or nullNoDefault: null.
pages_usedinteger or nullNoPages used, open holds included Default: null.
period_endstring (date-time)Yes
period_startstring (date-time)Yes
planPlanRefYes
previewUsagePreview or nullNoDefault: null.
schema_version"1"NoDefault: 1.
token_budgetTokenBudget or nullNoThe calling key's own budget, when one is set Default: null.

Definitions

PlanRef

PropertyTypeRequiredDescription
idstringYes
modes_allowedarray of string or nullNoModes the plan includes; null means every mode Default: null.
namestringYes
statusstringYesproposal until the founder approves the plan (G11)
upgrade_tostring or nullNoThe plan that includes more (modes, pages), if any Default: null.

TokenBudget

PropertyTypeRequiredDescription
limitintegerYes
periodstringYes
remainingintegerYes
usedintegerYes

UsagePreview

PropertyTypeRequiredDescription
enabledbooleanYesTrue while the product is in Preview
poolstring or nullNoThe capacity pool (tier) of the account Default: null.

list_jobs

Your parse jobs, newest first; pass next_cursor back as cursor to page.

  • Title: List jobs
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
cursorstring or nullNoDefault: null.
limitintegerNoFrom 1 to 50. Default: 20.
statusarray of string, one of pending, processing, completed, failed or nullNoOnly these statuses Default: null.

Output

PropertyTypeRequiredDescription
itemsarray of JobYes
next_cursorstring or nullNoOpaque; pass as cursor for the next page, null at the end Default: null.

Definitions

Job

PropertyTypeRequiredDescription
cache_hitbooleanNoDefault: false.
created_atstring (date-time)Yes
creditsJobCredits or nullNoCredits of this task; null while billing is off Default: null.
errorJobError or nullNoDefault: null.
file_idstringYes
idstringYesTask id (task_id of POST /api/files/process)
modestring or nullNoParsing mode Default: null.
pagesstring or nullNoRequested pages, normalised Default: null.
response_formatstring or nullNoDefault: null.
result_idstring or nullNoSet once the task has completed Default: null.
retryablebooleanNoDefault: false.
sourceJobSourceNo
statusstring, one of pending, processing, completed, failedYes
terminalbooleanYesTrue for completed and failed
updated_atstring (date-time)Yes

JobCredits

Credits of one task (billing on); the same numbers as the X-Credits-* headers.

PropertyTypeRequiredDescription
chargedinteger or nullNoCharged once the task is terminal Default: null.
refundedinteger or nullNoReleased back (failed pages, own cache, estimate above actual) Default: null.
reservedinteger or nullNoCredits held when the task was created Default: null.

JobError

PropertyTypeRequiredDescription
codestringYesFailure code of the task (closed list of the API)
messagestring or nullNoShort reason; no document content Default: null.
retryablebooleanYesTrue when submitting the same work again may succeed

JobSource

PropertyTypeRequiredDescription
md5string or nullNoMD5 of the uploaded bytes Default: null.
namestring or nullNoName of the uploaded file Default: null.
size_bytesinteger or nullNoSize of the stored source, if known Default: null.

list_schemas

Server schemas usable as schema_ref in extract_fields.

  • Title: List extraction schemas
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

No input.

Output

PropertyTypeRequiredDescription
itemsarray of SchemaInfoYes

Definitions

JsonValue

Type: any.

SchemaInfo

PropertyTypeRequiredDescription
descriptionstringYes
json_schemamap of JsonValueYes
refstringYes
titlestringYes

parse_document

Start parsing a small document the model already holds (content_base64 + file_name, at most 4 MiB). Returns the job; pass wait_s (up to 50) to wait for it. For local files use the untern-parsing CLI: untern-parsing parse FILE --json.

  • Title: Parse a document
  • Scope: documents:write
  • Read only: No
  • Destructive: No
  • Idempotent: No
  • Open world: No

Input

PropertyTypeRequiredDescription
force_reparsebooleanNoDefault: false.
groupstring or nullNoDefault: null.
max_creditsinteger or nullNoRefuse the parse (max_credits_exceeded) above this many credits Default: null.
modestring, one of fast, auto, precise, expert, Local, Normal, Multimodal, Agentic, QuickNoParsing mode; the available ones are listed by GET /api/files/modes Default: Local.
pagesstring or nullNoe.g. 1-3,7 Default: null.
presetstring or nullNoDocument-type preset; sets the mode, never the price Default: null.
projectstring or nullNoDefault: null.
sourceInlineSource or FileIdSource or UrlSourceYesWhere the document comes from
version_checkbooleanNoDefault: false.
wait_sintegerNoFrom 0 to 50. Default: 0.

Output

PropertyTypeRequiredDescription
cache_hitbooleanNoDefault: false.
created_atstring (date-time)Yes
creditsJobCredits or nullNoCredits of this task; null while billing is off Default: null.
errorJobError or nullNoDefault: null.
file_idstringYes
idstringYesTask id (task_id of POST /api/files/process)
modestring or nullNoParsing mode Default: null.
pagesstring or nullNoRequested pages, normalised Default: null.
response_formatstring or nullNoDefault: null.
result_idstring or nullNoSet once the task has completed Default: null.
retryablebooleanNoDefault: false.
sourceJobSourceNo
statusstring, one of pending, processing, completed, failedYes
terminalbooleanYesTrue for completed and failed
updated_atstring (date-time)Yes

Definitions

FileIdSource

PropertyTypeRequiredDescription
file_idstringYesA file you uploaded earlier (portal, CLI or a previous call)

InlineSource

PropertyTypeRequiredDescription
content_base64stringYesThe file, base64-encoded; at most 4 MiB decoded
file_namestringYesName with its extension

JobCredits

Credits of one task (billing on); the same numbers as the X-Credits-* headers.

PropertyTypeRequiredDescription
chargedinteger or nullNoCharged once the task is terminal Default: null.
refundedinteger or nullNoReleased back (failed pages, own cache, estimate above actual) Default: null.
reservedinteger or nullNoCredits held when the task was created Default: null.

JobError

PropertyTypeRequiredDescription
codestringYesFailure code of the task (closed list of the API)
messagestring or nullNoShort reason; no document content Default: null.
retryablebooleanYesTrue when submitting the same work again may succeed

JobSource

PropertyTypeRequiredDescription
md5string or nullNoMD5 of the uploaded bytes Default: null.
namestring or nullNoName of the uploaded file Default: null.
size_bytesinteger or nullNoSize of the stored source, if known Default: null.

UrlSource

PropertyTypeRequiredDescription
urlstringYeshttps URL of the document

read_result

A window of a finished result's Markdown. Pass job_id or result_id; read on with offset = next_offset until it is null. HTML is not available yet.

  • Title: Read a result
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
formatstring, one of markdown, htmlNohtml is not available yet Default: markdown.
job_idstring or nullNoJob id from parse_document Default: null.
langstringNoHTML only; ignored for Markdown Default: en.
max_charsintegerNoWindow size in characters From 1000 to 50000. Default: 20000.
offsetintegerNoFirst character, default 0 At least 0. Default: 0.
result_idstring or nullNoResult id of a finished job Default: null.

Output

PropertyTypeRequiredDescription
contentstringYes
formatstring, one of markdown, htmlYes
kind"result_window"NoDefault: result_window.
next_offsetinteger or nullYesPass as offset to read on; null at the end
offsetintegerYes
result_idstringYes
schema_version"1"NoDefault: 1.
total_charsintegerYes
truncatedbooleanYes

wait_for_job

Wait up to timeout_s seconds (at most 50) for a job to finish. If terminal is false in the answer, call it again.

  • Title: Wait for a job
  • Scope: documents:read
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

PropertyTypeRequiredDescription
job_idstringYesJob id
timeout_sintegerNoFrom 1 to 50. Default: 30.

Output

PropertyTypeRequiredDescription
cache_hitbooleanNoDefault: false.
created_atstring (date-time)Yes
creditsJobCredits or nullNoCredits of this task; null while billing is off Default: null.
errorJobError or nullNoDefault: null.
file_idstringYes
idstringYesTask id (task_id of POST /api/files/process)
modestring or nullNoParsing mode Default: null.
pagesstring or nullNoRequested pages, normalised Default: null.
response_formatstring or nullNoDefault: null.
result_idstring or nullNoSet once the task has completed Default: null.
retryablebooleanNoDefault: false.
sourceJobSourceNo
statusstring, one of pending, processing, completed, failedYes
terminalbooleanYesTrue for completed and failed
updated_atstring (date-time)Yes

Definitions

JobCredits

Credits of one task (billing on); the same numbers as the X-Credits-* headers.

PropertyTypeRequiredDescription
chargedinteger or nullNoCharged once the task is terminal Default: null.
refundedinteger or nullNoReleased back (failed pages, own cache, estimate above actual) Default: null.
reservedinteger or nullNoCredits held when the task was created Default: null.

JobError

PropertyTypeRequiredDescription
codestringYesFailure code of the task (closed list of the API)
messagestring or nullNoShort reason; no document content Default: null.
retryablebooleanYesTrue when submitting the same work again may succeed

JobSource

PropertyTypeRequiredDescription
md5string or nullNoMD5 of the uploaded bytes Default: null.
namestring or nullNoName of the uploaded file Default: null.
size_bytesinteger or nullNoSize of the stored source, if known Default: null.

whoami

The identity, access and limits of the token this server was given. Call it first to check the setup; it never shows the token.

  • Title: Who am I
  • Scope: Any valid credential
  • Read only: Yes
  • Idempotent: Yes
  • Open world: No

Input

No input.

Output

PropertyTypeRequiredDescription
api_urlstringYes
authenticatedbooleanYes
credentialstring, one of api_key, oidc, unknown or nullNoDefault: null.
emailstring or nullNoDefault: null.
expires_atstring (date-time) or nullNoDefault: null.
issuerstring or nullNoDefault: null.
key_hintstring or nullNoDefault: null.
kind"auth_status"NoDefault: auth_status.
limitsLimitsYes
namestring or nullNoDefault: null.
principalstring or nullNoDefault: null.
profilestringNoDefault: mcp.
rolesarray of stringNoDefault: [].
schema_version"1"NoDefault: 1.
scopesarray of stringNoDefault: [].
source"token"NoDefault: token.

Definitions

Limits

Limits of this MCP server, so an agent can plan its calls.

PropertyTypeRequiredDescription
burstintegerYesTool calls a credential may make at once
calls_per_minutenumberYesSustained tool calls per credential
max_inline_bytesintegerYesLargest content_base64 file, decoded
max_wait_sintegerYesLongest wait_s / timeout_s a tool accepts
max_window_charsintegerYesMost characters one read_result call returns