Skip to main content
Glama

doc2x_parse_pdf_submit

Create a Doc2x PDF parse task for a local file and return {uid}. Prefer calling doc2x_parse_pdf_status to monitor progress/result; only call doc2x_parse_pdf_wait_text if the user explicitly asks to wait/return merged text.

Instructions

Create a Doc2x PDF parse task for a local file and return {uid}. Prefer calling doc2x_parse_pdf_status to monitor progress/result; only call doc2x_parse_pdf_wait_text if the user explicitly asks to wait/return merged text.

Input Schema

NameRequiredDescriptionDefault
modelNoOptional parse model. Supported values: 'v2' and 'v3-2026'. Omit this field to use default v2.
pdf_pathYesAbsolute path to a local PDF file. Use an absolute path (relative paths are resolved from the MCP server process cwd, which may be '/'). Must end with '.pdf'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.7
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Optional parse model. Supported values: 'v2' and 'v3-2026'. Omit this field to use default v2.",
      +  "enum": [
      +    "v2",
      +    "v3-2026"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.2

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It usefully says this creates a task, returns a uid, and that progress should be monitored via status, but it does not mention permissions, upload side effects, failure behavior, or whether duplicate submissions are handled.

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?

Two sentences are front-loaded with the core action, return value, and sibling routing. There is no wasted text, and the usage caveat about doc2x_parse_pdf_wait_text is placed after the primary action.

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 simple two-parameter async submit tool with full schema coverage and no output schema, the description gives the essential action, return value, and next-step routing. It could be slightly more complete by explicitly tying the returned uid to doc2x_parse_pdf_status, but it is otherwise sufficient.

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 100%, so both pdf_path and model are already well documented in the schema. The description adds only that this is for a local file and that the result is a uid, without adding parameter-level meaning beyond the 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?

The description states a specific verb and resource: create a Doc2x PDF parse task for a local file. It also states the immediate return value ({uid}) and explicitly distinguishes this submit step from monitoring via doc2x_parse_pdf_status and doc2x_parse_pdf_wait_text.

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?

It explicitly routes monitoring to doc2x_parse_pdf_status and restricts doc2x_parse_pdf_wait_text to cases where the user explicitly asks to wait or return merged text. The intended use is clear: submit the local PDF first, then monitor through the named alternatives.

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