Skip to main content
Glama
Jack-mi
by Jack-mi

read_pages

Reads a page range from a case volume, applying local OCR to scanned or garbled pages to yield readable text with page numbers. Flags pages needing visual recognition when OCR fails.

Instructions

读取指定卷宗的某一页码区间文本,每页标注页码。扫描件/乱码页会自动经本地中文OCR提取文字,故大多数页面可直接拿到可读文本。仅当某页仍提示 needs_ocr(OCR失败/空白页)时,才需改用 get_page_image 视觉识别(若环境支持视觉)或如实标注内容无法识别。所有引用须以 见《卷名》P起-止 的格式回溯到此处读取的页码。

参数结构(args 字段): {volume(必填): 卷宗名称(见 list_volumes 的名称,如:刑事侦查案卷); start_page(必填): 起始页码(1-based,含); end_page(必填): 结束页码(1-based,含)}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo
case_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses automatic OCR handling for scans/garbled pages, the needs_ocr sentinel, and the fallback options. It stops short of confirming read-only/no-side-effects behavior or error handling for invalid volumes/ranges, but the main behavioral surprises are covered.

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

Conciseness5/5

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

Every sentence carries operational value: main action, OCR behavior, explicit fallback condition, citation rule, and a clear parameter block. The structure is dense but well-organized and not padded.

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?

For a read tool with no annotations, this covers purpose, OCR behavior, fallback routing, citation requirements, and parameter constraints; the presence of an output schema covers return-format details. The missing case_id mention and lack of invalid-input/error behavior keep it from being fully complete.

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?

The description adds rich meaning to volme, start_page, and end_page: requiredness, 1-based inclusive semantics, and where valid volume names come from. However, it omits the top-level required case_id that appears in the input schema, and the schema's args is free-form, so the exact mapping between description and invocation structure is not fully seamless.

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: read a page-range from a named volume, with each page labeled by page number. It also differentiates from get_page_image by framing that tool as the OCR-failure fallback, and from list_volumes/search_volumes as the source and search prequels.

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 says when to use read_pages (whenever text from a volume page range is needed) and when not to: only switch to get_page_image when a page still shows needs_ocr. It also references list_volumes for valid volume names and gives a required citation format.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.