Skip to main content
Glama

Read data out of documents

tarkle_extract_data

Start reading chosen fields out of up to 10 PDFs or pictures (fileIds from tarkle_list_files): an invoice's supplier, number, dates and total, a contract's parties and terms. Give a ready-made template (invoice, receipt, contract) or your own fields (a name, a type of text, number, date, yes_no, choice or table, with options for a choice and columns for a table; up to 20). The reading continues in the background: this returns a runId and the credits quoted; call tarkle_get_extraction with it a few seconds later (about 3 to 6 seconds a page) for the answers, each with the page it was read from. A value the document does not state is empty, never guessed. THIS SPENDS CREDITS (about 20 a page, charged for each file once read). Up to any number of pages (only the credits limit a run); a password-protected or unreadable file is refused. Only files this person can open are read.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspaceId": "<workspaceId>",
      "fileIds": "<fileIds>"
    },
    "name": "tarkle_extract_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNostandard is used when omitted. deep costs about twice as much and is for hard documents.
fieldsNoYour own fields. Send this or template.
fileIdsYesIds of the files to read, from tarkle_list_files. They must be PDFs or PNG, JPG or TIFF pictures.
templateNoA ready-made set of fields. Send this or fields.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id, from tarkle_list_workspaces.

Output Schema

NameRequiredDescriptionDefault
pagesNo
runIdNo
statusNo
creditsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: it discloses that the call is asynchronous (returns a runId), gives a latency estimate (about 3-6 seconds a page), states the credit cost (about 20 a page, charged once per file read), and warns that password-protected or unreadable files are refused and only files the person can open are read. 'THIS SPENDS CREDITS' is consistent with readOnlyHint=false, so there is no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what it reads and from what, then layers in field specification, async follow-up, cost, and limits in a logical order with zero filler. It is dense in a single paragraph and slightly crowded, but nearly every sentence carries operational information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still explains what comes back (a runId and quoted credits) and how to retrieve answers with page provenance, which is exactly the extra context needed for a two-step async tool. Combined with cost, limits, and failure conditions, nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents mode, fields, template, llm_model, fileIds and workspaceId; the description nonetheless reinforces the meaningful constraints (up to 10 files, up to 20 fields, field kinds, options for choice, columns for table) and ties fileIds to tarkle_list_files. It omits the deep/standard mode distinction and llm_model, but adds enough practical field-shaping guidance to edge above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ("Start reading chosen fields out of up to 10 PDFs or pictures") and immediately grounds it with examples of what gets extracted (invoice supplier, number, dates, total; contract parties and terms). It names its own input source (fileIds from tarkle_list_files) and its continuation tool (tarkle_get_extraction), so an agent can place it in a workflow without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly explains the two paths (ready-made template vs your own fields with types/options/columns) and explicitly tells the agent to follow up with tarkle_get_extraction a few seconds later. It does not, however, contrast itself against other read-style siblings such as tarkle_read_file or tarkle_ask, leaving that boundary to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.