Skip to main content
Glama

ds_job

Query an OCR scan job's status and results by job_id to check running, succeeded, failed, or interrupted states, including error details and output paths.

Instructions

任务查询工具:按 job_id 查一个扫描件任务的状态与结果;只读本地、不发请求。查询本身成功时 ok:true;任务成败看 data.status。status 为 running / succeeded / failed / interrupted;失败时 data.error 是 {status,code,message,next};message 可能来自上游或本地,已脱敏、超 8 KiB 截断。结果超长会给落盘路径;job_id 必填,就是 ds_ocr 返回的任务号。

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>"
    },
    "name": "ds_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it clarifies that ok:true means only that the query succeeded, that task outcome must be read from data.status (running/succeeded/failed/interrupted), that failures carry a {status,code,message,next} error object, and that messages are sanitized and truncated at 8 KiB. It also warns that oversized results are written to a file path, which an agent would otherwise misread as a missing result.

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?

A single dense paragraph that front-loads purpose, then semantics of the return, then parameter constraints. Every clause carries information, though the packed semicolon-separated phrasing makes it slightly harder to scan than a short bulleted structure would.

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?

No output schema and no annotations exist, yet the description documents the response envelope (ok), the status vocabulary, the error object shape, truncation behavior, and the spill-to-file case. Remaining gaps are minor, such as whether a running job should be re-polled and what the output looks like for succeeded jobs beyond 'status and result'.

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?

Schema coverage is 0% and the schema only encodes a regex pattern with no prose, so the description must compensate. It does by declaring job_id required and explaining its provenance (the task number returned by ds_ocr), which gives the agent a way to obtain a valid value beyond the pattern itself.

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?

States a specific verb and resource: query a scan (OCR) job's status and result by job_id, and notes it is local read-only with no network request. It implicitly distinguishes itself from the plural listing sibling ds_jobs by operating on a single job_id, but never names ds_jobs or any alternative explicitly.

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?

It does tell the agent where the required job_id comes from ('ds_ocr 返回的任务号'), which is genuine routing guidance for a follow-up call. However, there is no explicit when-to-use/when-not-to-use framing and no pointer to ds_jobs for listing or to any polling pattern for running jobs.

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