Skip to main content
Glama

Read a table's rows from an extraction job's datasheet

datasheetvend_read_document_table_rows
Read-onlyIdempotent

One parsed table's printed rows in print order (row_index 0 = top row; two rows with the same values stay two rows), each with its line text as printed, its cells (cell_id, text, box, row_span, col_span) and the cells spanning down into it (covered_by). A spanning cell is listed once, in its first row. Also the table's caption and its continuation onto other pages. Paged (row_offset / next_row_offset, at most 500 rows). Deterministic: reads the job's stored parse (parsed_document_v1), calls no model and extracts nothing. Costs no credits. Needs a DatasheetVend API key; readable jobs are your own, your workspace's TEAM-shared jobs and PUBLIC jobs, as on the REST API. Refusals: NOT_PARSED / PARSE_FAILED (no usable parse stored for this job), PARSE_EXPIRED (past retention), DOCUMENT_TOO_LARGE (over 20,000 blocks). Every block, cell and word comes with its page, box ([x0, y0, x1, y1] in PDF points, origin top-left), quoted text and parse {document_sha256, parser_version, block_id, cell_id}; block ids are stable only within one parser_version.

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": {
      "job_id": "<job_id>",
      "block_id": "<block_id>"
    },
    "name": "datasheetvend_read_document_table_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesAn extraction job in your account (or shared with it).
block_idYesA block id from another of these tools (e.g. 'p36-b4-1a2b3c'); stable within one parser_version.
row_limitNoRows to return. Default 100, at most 500.
row_offsetNoSkip this many rows (from next_offset). Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/non-destructive annotations: deterministic from a stored parse (parsed_document_v1), no model call, no credit cost, API-key requirement, job visibility scopes, a full refusal taxonomy (NOT_PARSED, PARSE_FAILED, PARSE_EXPIRED, DOCUMENT_TOO_LARGE with the 20,000-block threshold) and the parser_version caveat on block id stability. These are exactly the operational facts an agent needs before committing.

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?

Return shape and ordering constraints are front-loaded, with pagination, cost/safety profile and refusals following in descending priority. Sentences are dense and occasionally overloaded with parenthetical detail, but nearly every clause carries unique information given there is no output schema.

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?

With no output schema and no enum params, the description still fully specifies the return payload (line text, cells with cell_id/text/box/row_span/col_span, covered_by, caption, page continuation) and its coordinate/metadata envelope. Combined with access scopes, pagination and refusal codes, an agent can call this correctly without further discovery.

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 baseline is 3, but the description adds genuine semantics: row order and duplicate-row preservation, the naming of next_row_offset for continuation, the 500-row page cap, and that block ids are only stable within a parser_version. The covering/covered_by rule ('a spanning cell is listed once, in its first row') also clarifies how returned rows relate to each other.

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

Purpose4/5

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

Opens with a specific verb+resource: reading one parsed table's printed rows from an extraction job's datasheet, with explicit scope ('row_index 0 = top row'). It is distinguishable from siblings like read_document_block or read_document_page by the table/rows framing, though it never names those siblings, so differentiation is by inference.

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

Usage Guidelines3/5

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

The description makes the context of use clear (you have a table block id from another tool and want its rows), and the refusals hint at preconditions. But there is no explicit 'use this instead of X when...' routing against read_document_block, read_document_page or search_document_blocks, so the agent must infer when this is the right read.

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.

Resources