Skip to main content
Glama

Convert Document from URL

convert_from_url

Offload a document conversion to Botverse — runs server-side in seconds, returns a download link, and frees you to continue with other tasks while it processes. Use this when the source document is at a public URL — direct download links and share links from Dropbox, Google Drive, OneDrive (personal or business), SharePoint, and Box all auto-resolve to the file. If you already have the content as a string, use convert_content instead — no upload step needed. Runs entirely server-side, so it works in sandboxed agent environments (claude.ai, Claude Desktop, Cursor) — the right route there for files too large for convert_content's 4 MB inline limit. Supported inputs: md, html, rst, txt, docx, doc, xlsx, pptx, ppt (inferred from the file extension or the response headers). Supported outputs: docx (Word), pdf, html, txt, md, rst, xlsx (tables extracted). Office inputs (doc, docx, xlsx, ppt, pptx) render to PDF with their real page layout; Excel PDFs honor the workbook's print areas and page setup. PowerPoint inputs convert to pdf only. Returns a job_id immediately. Poll get_job_status every 5s until 'complete', then get_output_content (inline, sandbox-safe) or get_download_url (download link). Flat fee $0.05 per file.

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": {
      "source_url": "<source_url>",
      "output_format": "<output_format>"
    },
    "name": "convert_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_urlYesPublic HTTPS URL of the source document.
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?

Annotations only cover the safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false), and the description adds substantial context beyond them: asynchronous job model with an immediate job_id, the poll-every-5s-then-fetch pattern, a $0.05 per-file fee, and the format conversion matrix (Office to PDF with real layout, PowerPoint to pdf only). The remaining gap is failure behavior — no mention of what happens on unreachable URLs, auth-gated share links, or unsupported extensions.

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?

The routing rule is front-loaded and the format reference is packed into single dense sentences rather than prose. It loses a point for redundancy: server-side execution is asserted twice ('offload ... runs server-side in seconds' and 'Runs entirely server-side, so it works in sandboxed agent environments'), and the supported-format list repeats the enum already in the schema.

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?

For an async conversion tool this is complete: how it runs, what it accepts, what it produces, the cost, and the exact follow-up call chain (get_job_status then get_output_content or get_download_url). Since an output schema exists, the description is not obliged to define return shapes and correctly delegates that.

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 description coverage is 100%, so the parameters are already documented and a 3 would be the baseline. The description earns above that by explaining that input formats are inferred from the file extension or response headers (relevant to source_url usage) and by noting that Excel PDF output honors workbook print areas and page setup, which directly explains the default meaning of single_page_sheets.

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 first sentence states a specific verb and resource ('Offload a document conversion') and the follow-up names the exact input class (public URL, direct links plus Dropbox/Drive/OneDrive/SharePoint/Box share links). It explicitly distinguishes itself from convert_content ('If you already have the content as a string, use convert_content instead'), so an agent can route 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 Guidelines5/5

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

It gives both sides of the decision: use this tool when the source is a URL, skip it in favor of convert_content when the content is inline. It goes further with an environment-based rule (sandboxed agents should use this route for files exceeding convert_content's 4 MB inline limit) and states the follow-up sequence, so when-to-use is fully determined.

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