Skip to main content
Glama

Read one module's packet of an extraction job's datasheet

datasheetvend_get_module_packet
Read-onlyIdempotent

One extraction module's packet: the blocks of the parsed datasheet that module needs, in reading order, each with its reasons (which heading, caption or content tag put it there, from which block), table cells and drawings as a crop box plus the exact words inside them, each with its box. The header (sections with their block ids, coverage) comes whole; blocks come in windows (block_offset / next_block_offset, at most 200 blocks or about 80000 characters per answer). 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>",
      "module": "<module>"
    },
    "name": "datasheetvend_get_module_packet"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesAn extraction job in your account (or shared with it).
moduleYesThe extraction module.
block_limitNoPacket blocks to return. Default 40, at most 200.
block_offsetNoSkip this many packet blocks (from next_offset). Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/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: it discloses determinism, that no model is called and no credits are spent, the API-key requirement, the exact job-visibility scope (own, TEAM-shared, PUBLIC), pagination windows with a character cap, and four named refusal codes with their meanings. The note that block ids are stable only within one parser_version is a genuinely useful caveat absent from structured fields.

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 the core purpose in the first clause and then layers access, paging and refusal details. It is dense but long-winded in places, with some repetition between the opening inventory of block contents and the closing sentence re-listing page, box, text and parse metadata.

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?

No output schema exists, so the description carries the full return-value burden and does so: block/cell/word structure, coordinate system and origin, parse provenance fields, paging semantics and error codes. Nothing an agent needs to call this correctly and interpret the result 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 baseline is 3, but the description adds meaning the schema lacks: that the header comes whole while blocks come in windows, that block_offset pairs with next_block_offset, and that a window is capped at 200 blocks or roughly 80,000 characters — explaining why a limit below 200 may still truncate.

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 specific verb and resource — 'One extraction module's packet: the blocks of the parsed datasheet that module needs, in reading order' — and immediately describes the payload shape (blocks, reasons, cells, crop boxes). This is clearly distinguishable from sibling list/read tools such as datasheetvend_list_module_packets and datasheetvend_read_document_block.

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 rather than stated: 'Deterministic: reads the job's stored parse... calls no model and extracts nothing. Costs no credits' effectively tells an agent to prefer this over re-running an extraction. However, no sibling is named as an alternative and there is no explicit when-not-to-use condition (e.g. when to use read_document_block or list_module_packets instead).

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