Skip to main content
Glama

Convert Uploaded Document

convert_file

Offload a document conversion to Botverse using an already-uploaded file. Workflow: (1) call get_upload_url to get a presigned upload form, (2) POST the file to that URL as multipart/form-data (all upload_fields first, then the file), (3) call convert_file with the object_key — Botverse handles the rest server-side. Returns a job_id immediately so you can continue with other tasks while conversion runs. Supported inputs: md, html, rst, txt, docx, doc, xlsx, pptx, ppt. Supported outputs: docx, pdf, html, txt, md, rst, xlsx. Office inputs render to PDF with their real page layout (Excel honors print areas); PowerPoint inputs convert to pdf only. Poll get_job_status until complete, then get_download_url. Flat fee $0.05 per file. If you are in a sandboxed environment where the get_upload_url POST is blocked, do not use this tool — use convert_content (inline content under 4 MB) or convert_from_url (public URL) instead; no upload needed.

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": {
      "object_key": "<object_key>",
      "output_format": "<output_format>"
    },
    "name": "convert_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
object_keyYesThe object_key returned by get_upload_url.
output_formatYesTarget format: docx | html | txt | md | rst | pdf | xlsx
single_page_sheetsNoExcel to PDF only: scale each sheet onto exactly one PDF page. Default false (the workbook's own print areas and page setup are used).

Output Schema

NameRequiredDescriptionDefault
job_idYesUnique identifier for this job. Pass to get_job_status and get_download_url.
statusYesInitial job state — always queued or processing immediately after submission.
estimated_secondsNoRough estimated processing time in seconds. Actual time may vary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / single_page_sheets
      Added value: +{
      +  "description": "Excel to PDF only: scale each sheet onto exactly one PDF page. Default false (the workbook's own print areas and page setup are used).",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), the description discloses that a job_id returns immediately and conversion is asynchronous, states a flat $0.05 fee, and notes Office inputs render with real page layout while PowerPoint converts to PDF only. That is meaningful context the structured fields do not carry; what it does not cover is failure/timeout behavior or whether a failed job is charged.

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?

Front-loaded with purpose then workflow, which is the right ordering for an agent. It is somewhat long and repeats some of what get_upload_url's own definition will cover, but each paragraph (formats, async semantics, pricing, sandbox fallback) carries distinct decision-relevant information.

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

Completeness5/5

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

Given an output schema, full annotations, and an already-rich multi-step description, an agent has everything needed: prerequisites, required parameters, async polling path, pricing, format constraints, and a fallback plan. Nothing material is left to inference for this tool's complexity.

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. The description earns extra credit by tying object_key to its origin (the get_upload_url response) and by explaining that single_page_sheets interacts with the default 'real print area' page layout behavior for Excel→PDF, plus constraining output_format against the supported input/output matrix.

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 opens with a concrete verb+resource ('Offload a document conversion to Botverse') scoped to an already-uploaded file, which immediately separates it from the inline-content (convert_content) and public-URL (convert_from_url) siblings. Supported input and output format lists further pin down exactly what this tool does.

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 spells out the full three-step prerequisite workflow (get_upload_url, multipart POST, then convert_file with object_key) and explicitly names when NOT to use it: in sandboxed environments where the POST is blocked, use convert_content or convert_from_url instead. It also tells the agent to poll get_job_status and then call get_download_url, so the surrounding orchestration is unambiguous.

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