Skip to main content
Glama

Create a conversion job

create_conversion

Queue an asynchronous conversion job from a previously uploaded file id and reserve the required credits. Use mode "standard" for fast Markdown extraction, "ocr" for scanned PDFs or images (1 OCR credit per page), or "pdf" to export Markdown as PDF; returns the created job object with id and status.

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": {
      "uploadId": "<uploadId>",
      "mode": "<mode>"
    },
    "name": "create_conversion"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesConversion pipeline: "standard" extracts Markdown from text PDFs/HTML/documents, "ocr" runs high-accuracy OCR on PDFs or images, and "pdf" renders Markdown/text to PDF.
uploadIdYesUpload UUID returned by upload_remote_file or the upload API (e.g. "550e8400-e29b-41d4-a716-446655440000").
idempotencyKeyNoOptional caller-supplied deduplication key (e.g. "report-2026-ocr-v1"). Reusing the same key with identical uploadId and mode returns the existing job without double-charging credits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Optional caller-supplied deduplication key (e.g. \"report-2026-ocr-v1\"). Reusing the same key with identical uploadId and mode returns the existing job without double-charging credits."
    • addedInput schema / properties / mode / description
      Added value: +"Conversion pipeline: \"standard\" extracts Markdown from text PDFs/HTML/documents, \"ocr\" runs high-accuracy OCR on PDFs or images, and \"pdf\" renders Markdown/text to PDF."
    • addedInput schema / properties / uploadId / description
      Added value: +"Upload UUID returned by upload_remote_file or the upload API (e.g. \"550e8400-e29b-41d4-a716-446655440000\")."
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description does add genuinely useful behavior beyond that: the job is asynchronous, it reserves credits, OCR costs 1 credit per page, and it returns a job object with id and status. It omits what happens if credit reservation fails or whether the job can be cancelled, which matters for a credit-consuming mutation.

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 front-loaded sentence with the action, cost, and return value stated before the mode breakdown; no filler. It loses a point because the mode listing largely restates the enum descriptions already in the schema, which is somewhat redundant text.

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?

There is no output schema, and the description compensates by stating the return shape (job object with id and status). Credits, async semantics, and mode selection are covered. What remains unstated is the follow-up step for retrieving results (get_conversion/read_result) and failure behavior, which a first-time caller would need.

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 100%, so the baseline is 3 and the schema already documents all three parameters. The description nonetheless adds decision-relevant meaning the enum text lacks — the speed trade-off of 'standard' and the per-page OCR credit cost — making mode selection easier. uploadId and idempotencyKey are left entirely to 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?

States a specific verb and resource — 'Queue an asynchronous conversion job' — plus the side effect (reserving credits) and the input provenance (a previously uploaded file id). An agent can distinguish this create/queue operation from the read-side siblings get_conversion and read_result without opening any 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?

Gives clear routing guidance for the mode parameter: 'standard' for fast Markdown extraction, 'ocr' for scanned PDFs or images, 'pdf' to export Markdown as PDF, and the prerequisite that the file must already be uploaded. It stops short of naming the follow-up tool (get_conversion) for polling or stating when not to call it (e.g., re-converting an existing job), so no explicit alternatives are offered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources