Skip to main content
Glama

Read one block of an extraction job's datasheet

datasheetvend_read_document_block
Read-onlyIdempotent

One parsed block whole: type, page, box, text and markdown (each up to 20000 characters), heading, caption, links, its section and heading path, table cells with their boxes (up to 2000) or a drawing's crop box and the exact words inside it with their boxes (up to 400), and how many cross-references it prints or receives. 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_block"
  }
}

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.

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?

Beyond the annotations (readOnly/idempotent/non-destructive/closed-world), the description discloses that it reads a stored parse (parsed_document_v1), calls no model, extracts nothing, costs no credits, requires an API key, and which job visibilities are readable. It also enumerates the exact refusal codes and the caveat that block ids are only stable within a parser_version — none of which the annotations convey.

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?

Content is front-loaded: what a block yields first, then determinism/cost/auth, then refusals, then shared field conventions. The opening sentence is an extremely long run-on list with embedded caps (20000 chars, 2000 cells, 400 words) that would read better as structure, but almost every clause carries distinct information.

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?

There is no output schema, and the description compensates fully by specifying the returned fields, their limits, the box format ([x0,y0,x1,y1] in PDF points, top-left origin), the accompanying parse metadata, and the id-stability rule. Combined with refusal codes and auth/scope notes, an agent has everything needed to call and interpret this tool.

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: job_id's readable scope (own, TEAM-shared, PUBLIC) and the job-state refusals that make an id unusable, plus the parser_version caveat that qualifies block_id's stability. It also pins down the box coordinate system used in returned data, which contextualizes the ids.

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?

The description opens with a concrete verb+resource ('One parsed block whole') and enumerates exactly what a block contains: type, page, box, text/markdown, heading, caption, links, section path, table cells or drawing crop box, and cross-reference counts. An agent can tell this is a single-block granularity read. It never names the adjacent granularity siblings (page/section/table_rows) to sharpen the boundary, so it stops short of a 5.

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?

Usage is implied by granularity ('one block whole') and by the constraint that the id must come from another of these tools, but there is no explicit 'use X instead when you want a whole page/section' routing. The access-scope and refusal notes help an agent decide feasibility rather than choose between tools.

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