Skip to main content
Glama

Search the parsed blocks of an extraction job's datasheet

datasheetvend_search_document_blocks
Read-onlyIdempotent

Case-insensitive text search over the parsed blocks' text and table cells: each hit gives the block id, page, type, box and a snippet; a table hit also gives the cell's id, row, column and box. Scope it to a section (section_id, or heading_text) and to the job's target package; filter by pages and block types; paged (offset / next_offset, at most 100 hits). Unlike datasheetvend_search_document (raw text lines of the document map), hits here are typed blocks you can read whole with datasheetvend_read_document_block. 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>",
      "query": "<query>"
    },
    "name": "datasheetvend_search_document_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHits to return. Default 20, at most 100.
pagesNoOnly these physical 1-based pages (at most 50).
queryYesThe text to find, 2-120 characters (e.g. 'VDD', 'Absolute Maximum').
typesNoOnly these block types.
job_idYesAn extraction job in your account (or shared with it).
offsetNoSkip this many hits (from next_offset). Default 0.
section_idNoOnly this section and the sections below it.
heading_textNoOnly sections whose heading holds this text, and the sections below them (e.g. 'Pin Description').
target_package_onlyNoSkip blocks printed for another package than the job's target part (the packets' own package scope). Default true; with no known target nothing is skipped and scope.package_scope says target_package_unknown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), but the description goes well beyond them: deterministic reads of the stored parsed_document_v1, no model call, no extraction, no credit cost, API-key requirement, and a job-visibility model (own, TEAM-shared, PUBLIC). It also enumerates failure refusals (NOT_PARSED, PARSE_FAILED, PARSE_EXPIRED, DOCUMENT_TOO_LARGE) and warns that block ids are only stable within a parser_version — all material behavior an agent needs.

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-loaded with what the tool does and how it differs from its nearest sibling, then layered into scoping, determinism/cost, refusals, and result shape. Dense and largely waste-free, though the run-on result-shape clause ('box, quoted text and parse {…}') is heavier than it needs to be.

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 by describing the hit shape (block id, page, type, box, snippet, plus cell id/row/column/box for table hits) and the box coordinate convention in PDF points. Combined with the refusal list, permission model, and page cap, 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.

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 documents every parameter, including the section/heading nesting semantics and the target_package_only default. The description reinforces scope levers and pagination but adds little semantic detail the schema doesn't already carry, so the baseline 3 applies.

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?

Opens with a specific verb+resource: case-insensitive text search over parsed block text and table cells of a datasheet extraction job. It immediately names the sibling it is not (datasheetvend_search_document, raw text lines of the document map) and the sibling that follows it (read_document_block), so the agent can place it precisely.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly contrasts with datasheetvend_search_document on data granularity and pairs with datasheetvend_read_document_block as the follow-up, giving a clear use-then-escalate workflow. Scoping levers (section_id/heading_text, pages, types, target_package_only) are framed as narrowing options, so when to reach for each is visible.

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