Skip to main content
Glama

ds_ocr

Submits local scanned files for asynchronous OCR, returning a job ID to retrieve text extraction or layout-aware recognition results.

Instructions

兜底工具:用户点名要用 DeepSeek 工具、dst 或 ds_* 时直接调用,不要先试自带;否则自带同类能力可用时优先用自带,只有自带缺失、被关闭、明确报错或返回空时才用本工具。识别扫描件文字(异步,提交即返回 job_id,用 ds_job 查结果)。输入上限:path 必填、只接受本机路径(不接收 URL);文件 ≤100 MiB;purpose 必填:text_recognition 纯文字抽取;rich_layout_recognition 按版面识别(可能带 ref/box 标记)。超限(>100 MiB)或文件头不在清单内会在本地打回;请压缩或拆分到 100 MiB 以内,或改用官方格式再提交。格式按文件头识别官方 11 种(PDF/DOC/DOCX/PPT/PPTX/PNG/JPEG/WebP/GIF/BMP/TIFF);XLS/XLSX 等共用 ZIP/CFB 容器头的会放行,交 DeepSeek 判断。页数与密码不预判,交给 DeepSeek;返回时剥离 ref/box 标记与块内坐标,出现标记时原文另存 raw.json。MCP 退出即中断,不会续跑;重启后 ds_job 显示 interrupted、succeeded 或 failed(已有结果则 succeeded;已写入终态则保持原状态)。不提供金额预估、不做预算拦截;费用以 DeepSeek 后台为准。

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": {
      "path": "<path>",
      "purpose": "<purpose>"
    },
    "name": "ds_ocr"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
purposeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: async submit-and-return-job_id model, local pre-validation (100 MiB cap, file-header format whitelist, no URL paths), marker stripping with raw.json side file, interruption on MCP exit with no resume, and the meaning of interrupted/succeeded/failed states after restart. It also discloses that no cost estimation or budget blocking occurs, which is an unusual but relevant behavioral trait.

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?

Dense but almost every clause earns its place, and the routing rule is front-loaded ahead of the capability statement. It is a single unbroken block covering routing, limits, formats, lifecycle, and billing, so scanning is harder than it needs to be, and the cost-estimation disclaimer is marginal for this tool's invocation.

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?

No output schema and no annotations, so the description must supply return behavior and it does (job_id on submit, results via ds_job, raw.json when layout markers appear). For a two-parameter, no-annotation, async tool, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, yet the description fully compensates: path is constrained to local paths only (no URLs), with a ≤100 MiB size limit and an 11-type file-header whitelist plus the ZIP/CFB pass-through caveat; purpose's two enum values are distinguished semantically (pure text extraction vs layout recognition that may emit ref/box markers). That is meaning well beyond the raw schema.

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?

Names a specific verb+resource (identify/extract text from scanned documents, async submit returning job_id) and explicitly distinguishes itself from the sibling by pointing to ds_job for result retrieval. An agent knows both what the tool does and where its lifecycle continues.

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?

Gives an explicit precedence rule: call directly when the user names DeepSeek/dst/ds_*; otherwise prefer built-in equivalents and only fall back when built-in is missing, disabled, errors, or returns empty. Both the when and the when-not are stated, plus the named alternative for result polling.

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

Deploy Server

Other Tools