DocLens
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
DocLens 读取 PDF / Excel / Word / CSV / 纯文本,保留表格结构与数字精度。当任务涉及财报、合同、报价单、数据表这类文档时优先用它:它给出的表格是行列对齐的,金额保留原始精度,公式单独标注。不要用 shell 的 cat / pdftotext 读这类文件——那会丢结构。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_documentsA | 列出目录里 DocLens 能读的文件,附带大小和是否受支持。用于在批量处理前先摸清有哪些文档。 |
| read_documentA | 读取一份文档,返回结构化的 Markdown:表格按行列对齐、金额保留原始精度、公式单独标注、正文按页标注。这是主工具,处理财务/合同/报表时优先用它。 |
| search_documentA | 在文档里搜索文本,返回命中的页码和上下文。长文档不必整份读进来,先用它定位。 |
| extract_tableA | 只读取指定序号的那一张表,输出完整 Markdown 表格。文档里表格很多时用它,避免整份读进来。序号从 1 开始。 |
| inspect_documentA | 诊断一份文档的解析质量:表格是否完整、有没有数字被降级成文本、有没有扫描页缺文字层、有没有公式缺缓存值。在把解析结果用于重要决策之前跑一次,能提前发现读错的风险。 |
| compare_extractionA | 把 DocLens 的表格还原结果与「朴素文本流」抽取的结果并排给出,用于判断这份文档如果不做结构还原会错在哪里。适合在向别人解释这份工具的必要性时用。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Core reading tools are well-separated: list_documents enumerates, search_document locates hits, read_document does full structured reads, and extract_table targets a single table to avoid full-document reads. The only soft overlap is between inspect_document (parse-quality diagnostics) and compare_extraction (naive-vs-structured side-by-side), which both serve a validation purpose but differ in intent (risk check vs. demonstration).
All six tools follow a strict snake_case verb_noun pattern: list_documents, read_document, search_document, extract_table, inspect_document, compare_extraction. Verbs are distinct and consistently placed first.
Six tools is a tight, well-scoped set for a document-reading server, with each tool mapping to a distinct user need (enumerate, read, locate, table extraction, quality check, comparison). Nothing feels redundant or missing at the count level.
The surface covers listing, reading, searching, table extraction, and diagnostics, but has notable gaps: no way to read a specific page range, no batch/parallel read despite list_documents mentioning bulk processing, and no remediation path (e.g. OCR) when inspect_document reports scanned pages lacking a text layer. Output is read-only with no export or save operation.