Skip to main content
Glama

Get Document Task

get_document_task
Read-only

Query the status of a PDF document recognition task, including processing progress, a result download link, or error details.

Instructions

查询 PDF 文档识别任务状态。status:queued/running(看 doneUnits/totalUnits 进度)、 success(resultUrl 为聚合结果下载链接)、failed(errorMsg)。任务终态保留 72 小时。

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": {
      "task_no": "<task_no>"
    },
    "name": "get_document_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_noYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already cover the safety profile with readOnlyHint=true, and an output schema exists, so the description is not obligated to document return fields. It does add real value by interpreting each status value (queued/running with doneUnits/totalUnits progress, success with resultUrl, failed with errorMsg) and by disclosing the 72-hour retention of terminal states, which is genuine behavioral context.

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?

Extremely compact and front-loaded: the purpose leads, followed by a status enumeration and a retention note. Every clause carries information; there is no filler.

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 single-parameter polling tool whose annotations declare read-only and which has an output schema, the description is nearly complete — status semantics and the retention window are the key things an agent needs. The only real omission is any explanation of task_no.

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

Parameters2/5

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

Schema description coverage is 0% and the single parameter task_no is never mentioned in the description — no format, no origin (presumably returned by submit_document_task), no validity constraints. With zero schema documentation, the description should have compensated and does not.

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?

The description states a specific verb and resource — querying the status of a PDF document recognition task — and the 'PDF document recognition' qualifier implicitly separates it from the speech/transcription siblings. It stops short of explicitly naming which sibling to use for other modalities, so it is clear but not fully differentiating.

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?

Usage is only implied: an agent can infer this is called after submit_document_task to poll progress, and that terminal tasks are queryable for 72 hours. There is no explicit when-to-use or when-not-to-use statement, and no guidance on polling cadence or what to do after the 72-hour window expires.

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