Skip to main content
Glama

Step to the next or previous section of an extraction job's datasheet

datasheetvend_neighbor_document_section
Read-onlyIdempotent

The section after (direction next) or before (direction previous) the given one in reading order. scope any: the adjacent heading of any level; same_or_higher_level: skip deeper subsections. at_end=true when there is none. 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>",
      "direction": "<direction>"
    },
    "name": "datasheetvend_neighbor_document_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoDefault any.
job_idYesAn extraction job in your account (or shared with it).
directionYesnext or previous.
section_idYesA section id from datasheetvend_list_document_sections (the id of the heading block that opens it).

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?

Annotations already cover readOnly, idempotent, non-destructive and closed-world, yet the description adds substantial context beyond them: deterministic execution over parsed_document_v1 with no model call and no credit consumption, an API-key requirement, a concrete visibility model (own, TEAM-shared, PUBLIC jobs), and four named refusal codes (NOT_PARSED, PARSE_FAILED, PARSE_EXPIRED, DOCUMENT_TOO_LARGE with the 20,000-block limit). It also discloses a real caveat 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?

The core navigation semantics and terminal at_end state are front-loaded, and the semicolon-separated clauses keep density high with little wasted wording. It drifts into a long tail of return-format and auth detail rendered as one running block, which is information-dense but harder to scan than short labeled sentences.

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 carries the return burden and does so partially: it explains at_end, the refusals, and the per-block payload shape with page, PDF-point box, quoted text and parse metadata. It never states the top-level response shape (e.g. what wraps the returned section or how the caller gets the next section_id), which for a stepping tool is a noticeable gap.

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 coverage is 100%, so the baseline is 3. The description does add real meaning beyond the schema for the scope enum — 'any: the adjacent heading of any level' versus 'same_or_higher_level: skip deeper subsections' — which the schema only labels 'Default any.', while direction is simply paraphrased ('after (direction next) or before (direction previous)').

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?

The first sentence states a specific operation — returning the section after (next) or before (previous) the given one in reading order — and the title names it as a step through an extraction job's datasheet. An agent can distinguish it from read_document_section and list_document_sections purely from the description text.

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 the verb pair ('step to next/previous') and by context that it reads a stored parse with no credits cost, so cheap sequential navigation is clearly the intended pattern. However, it never says explicitly when to choose this over read_document_section or when to stop iterating (only that at_end=true marks termination), and it names no alternatives or exclusions.

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