Skip to main content
Glama

List the sections of an extraction job's datasheet

datasheetvend_list_document_sections
Read-onlyIdempotent

The section tree of the job's parsed datasheet: each section's id (its heading block), heading text, level and printed number, page and box of the heading, parent section, heading path, block and subsection counts and page span. Paged (offset / next_offset, at most 300); filter by max_level and page range. 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>"
    },
    "name": "datasheetvend_list_document_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoSections to return. Default 100, at most 300.
job_idYesAn extraction job in your account (or shared with it).
offsetNoSkip this many sections (from next_offset). Default 0.
page_toNoOnly sections whose heading is on this page or earlier.
max_levelNoOnly sections at this heading level or above (1 = top level).
page_fromNoOnly sections whose heading is on this page or later.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

Goes well past the annotations (which already state readOnly/idempotent/non-destructive/closed-world) by disclosing that the call is deterministic, reads the stored parsed_document_v1, calls no model, extracts nothing, and costs no credits. It also spells out auth requirements, the readable-job scope (own/TEAM/PUBLIC, matching REST), and the concrete refusal codes NOT_PARSED, PARSE_FAILED, PARSE_EXPIRED, DOCUMENT_TOO_LARGE with their meanings.

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

Conciseness3/5

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

Front-loaded with the right information, but the prose is a dense run-on that blends return fields, paging, cost, auth and error codes into single sentences. The closing sentence about 'every block, cell and word' carrying page/box/quoted text and parser_version block ids relates to block-level data, not section listings, and risks misleading an agent about what this tool returns.

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

Completeness4/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 does the heavy lifting well: it enumerates the returned section fields, describes pagination and filtering, and lists refusal conditions. The only shortfall is the extraneous block/cell/word sentence, which muddies rather than completes the picture of a section-tree listing tool.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already defines limit, offset, page_from, page_to and max_level. The description largely restates those ('filter by max_level and page range', 'at most 300') but does add one non-schema detail: that offsets continue from the returned next_offset. That is a real but marginal increment over the schema, keeping it at baseline.

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 concrete verb+resource framing: 'the section tree of the job's parsed datasheet', then enumerates exactly which fields each section carries (id, heading text, level, printed number, parent, path, counts, page span). An agent knows precisely what it gets back. It does not, however, name or differentiate itself from siblings like read_document_section or neighbor_document_section, so the 'list vs. read' distinction must be inferred from the name alone.

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?

Gives useful operating context — paged via offset/next_offset capped at 300, filterable by max_level and page range — which implies how to walk the tree. But there is no explicit when-to-use/when-not statement and no pointer to the alternative tool for fetching a single section's content, so the agent must infer the boundary from the tool name.

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