Skip to main content
Glama

Read one section of an extraction job's datasheet

datasheetvend_read_document_section
Read-onlyIdempotent

One section's blocks in reading order (text, table cells, drawing crop boxes), each with its block id, page and box, in windows (block_offset / next_block_offset, at most 80 blocks or about 40000 characters). include_subsections adds the blocks of every section below it. Long texts and large tables are cut and say so; datasheetvend_read_document_block returns one block whole. 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>",
      "section_id": "<section_id>"
    },
    "name": "datasheetvend_read_document_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesAn extraction job in your account (or shared with it).
section_idYesA section id from datasheetvend_list_document_sections (the id of the heading block that opens it).
block_limitNoBlocks to return. Default 25, at most 80.
block_offsetNoSkip this many blocks (from next_offset). Default 0.
include_subsectionsNoAlso the blocks of the sections below this one. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent/non-destructive annotations: it states the tool reads a stored parse (parsed_document_v1), calls no model, extracts nothing, and costs no credits. It also discloses truncation behavior, the window size limits, the visibility model (own/TEAM/PUBLIC jobs), the four refusal codes, and the fact that block ids are stable only within one parser_version.

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-loaded with the return shape and window semantics before alternatives, refusals, and per-block metadata. It is dense but nearly every clause carries information; minor redundancy between 'Deterministic' and 'calls no model and extracts nothing' is the only wasted space.

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, the description still specifies the returned structure (blocks with id, page, box in PDF points, quoted text, parse provenance), pagination via next_block_offset, truncation signaling, and error cases. Nothing an agent needs to call it correctly and interpret the response is missing.

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 real meaning: the window is expressed via block_offset / next_block_offset, capped at 80 blocks or roughly 40000 characters, and include_subsections pulls in every section below. The character cap and the next_block_offset chaining detail are not in the schema.

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+resource: reads one section's blocks in reading order, enumerating the block kinds (text, table cells, drawing crop boxes) and the per-block payload (id, page, box). It explicitly distinguishes itself from datasheetvend_read_document_block, which returns a single block whole, so an agent can separate the two without opening either 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?

Gives clear selection logic: use this for a whole section, use read_document_block when you need one block uncut, and use include_subsections when you want everything below. Prerequisites (API key, readable job scope) and refusal conditions are spelled out. It stops short of an explicit when-not-to-use statement such as preferring section listing first, though the section_id schema field covers the id source.

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