Skip to main content
Glama

Submit Document Task

submit_document_task

Submit a PDF (up to 200 MB and 500 pages) for page-by-page OCR/recognition, suitable for scanned contracts, books, and reports; poll results with get_document_task.

Instructions

提交 PDF 文档识别任务(≤200MB、≤500 页,逐页识别整本)。适合扫描合同/书籍/报告。 提交后用 get_document_task 轮询结果。prompt 仅精准档生效。计费按页。

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": {
      "document_url": "<document_url>",
      "tier": "<tier>"
    },
    "name": "submit_document_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierYes
promptNo
file_nameNo
document_urlYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare the write-ish profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false), while the description adds genuinely useful behavior: the 200MB/500-page caps, that billing is per page, that processing is asynchronous and must be polled, and that prompt is only honored in the accurate tier. It still does not say what happens on duplicate submissions or failures, which matters given idempotentHint=false.

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?

Four short, front-loaded sentences: task + limits first, suitability second, follow-up flow third, then the tier/billing caveats. Every clause carries distinct information with no restatement of the title or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the async polling loop is covered. However, for a 4-parameter tool with 0% schema coverage, the undefined document_url format and file_name purpose are gaps an agent must guess at before it can reliably invoke the tool.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry parameter meaning, and it only partially does: it explains that prompt is effective solely in the accurate tier, which maps the tier/prompt interaction. It says nothing about document_url (URL vs. base64) or file_name, leaving two of four parameters undefined anywhere.

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?

The description names a concrete verb and resource ('提交 PDF 文档识别任务' - submit a PDF document recognition task) and adds meaningful scope: whole-book, page-by-page recognition with size/page limits. It also distinguishes itself from the polling sibling by naming get_document_task, so an agent can tell the submit step from the retrieve step without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear positive guidance on when to use it ('适合扫描合同/书籍/报告' - suitable for scanned contracts/books/reports) and prescribes the follow-up flow with get_document_task. It stops short of explicit exclusions (e.g., when to prefer recognize_image or a speech/transcription sibling), so alternatives are only partially addressed.

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