Skip to main content
Glama

Follow a block's cross-references in an extraction job's datasheet

datasheetvend_follow_document_reference
Read-onlyIdempotent

The cross-references a block prints ('see Table 9', 'Figure 6', 'on page 41'), each resolved: resolution block (the referenced table, figure or heading, with its id, page, box and a text preview), page (only its page is known) or unresolved; the references elsewhere in the document that point at this block; and for a table, its continuation (the table it continues on an earlier page, the tables continuing it, the chain's pages and the caption printed over its first part). 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_follow_document_reference"
  }
}

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

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/closed-world annotations, it discloses that the tool is deterministic, reads the stored parsed_document_v1 without calling a model, extracts nothing, and costs no credits. It also states auth requirements, access scopes (own, TEAM-shared, PUBLIC), refusal codes (NOT_PARSED, PARSE_FAILED, PARSE_EXPIRED, DOCUMENT_TOO_LARGE), the coordinate convention for boxes, and the stability constraint on block ids.

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?

The content is valuable but the opening is a single dense run-on clause of semicolon-separated fragments that delays the core action. The trailing sentence mixes output-field semantics, coordinate conventions, and id-stability rules, so the agent must parse rather than skim. Nothing is strictly redundant, but front-loading and sentence structure could be much cleaner.

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 carries the return-shape burden and does so: it explains resolution kinds, the fields that accompany every block/cell/word (page, box, quoted text, parse metadata), and the table-continuation payload. Failure modes, auth, and scope are all covered, leaving nothing an agent needs in order to call it correctly.

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% and both parameters are already documented in the schema, including block_id stability within a parser_version. The description reinforces that job_id must be readable by the caller but adds no new syntax, format, or constraint meaning beyond the schema, so the baseline 3 applies.

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 states a specific resource and scope: the forward cross-references a block prints (resolved to a block, page-only, or unresolved), the back-references pointing at the block, and table continuation chains. That is far more specific than the title alone. It does not explicitly contrast with a sibling such as read_document_block, so the agent must infer the boundary, which keeps it below 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 the enumerated cases ('see Table 9', 'Figure 6', 'on page 41'), but there is no explicit when-to-use / when-not-to-use statement or named alternative for following references versus reading a block's content directly. Preconditions (API key, readable jobs, stored parse) are given, which helps, but routing guidance between siblings is absent.

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