Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

convert_file

Convert files between 200+ formats: documents (PDF, DOCX, XLSX, HTML→PDF), images (PNG, JPG, WEBP, SVG), PDF first page to image (PDF→JPG, PDF→PNG), audio (MP3, WAV, FLAC), video (MP4, AVI, MOV). Industrial-grade conversion engine — preserves formatting and quality. Returns download URL. 100 sats. Pay per request with Bitcoin Lightning — no API key, no account, no subscription needed. Requires create_payment with toolName='convert_file'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileUrlNoPublic URL to the file (provide this OR fileBase64)
paymentIdYesValid payment ID (must be paid)
fileBase64NoBase64-encoded file (provide this OR fileUrl)
extensionToYesTarget format without dot (e.g., 'pdf', 'docx')
extensionFromYesSource format without dot (e.g., 'pdf', 'docx')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/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 does well by disclosing the payment prerequisite, exact cost, output form (download URL), and quality preservation. Missing details like synchronous vs asynchronous execution and any file size limits slightly lower the score.

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 description is front-loaded with the core capability and format examples, then efficiently covers payment, authentication, and output. The phrase 'Industrial-grade conversion engine' is slightly promotional but still conveys quality, and the rest of the sentences carry needed operational information.

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?

The description covers the main workflow preequisites and output but leaves gaps: it never states that a file input is mandatory through one of fileUrl/fileBase64, doesn't mention potential async behavior/job status, and gives no size or compatibility limitations. Since there is no output schema or annotations, these omissions leave an agent with only partial guidance for a complex paid conversion operation.

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 3 is the baseline. The description adds meaning beyond the schema by explaining that paymentId comes from create_payment with toolName='convert_file' and that conversion covers 200+ formats, giving context to extensionFrom/extensionTo. It could be more explicit that either fileUrl or fileBase64 must be supplied, but the schema already conveys that alternative.

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: 'Convert files between 200+ formats' and enumerates document, image, audio, and video categories. This clearly distinguishes it from more specialized siblings like merge_pdfs and epub_to_audiobook by scope and format coverage.

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 provides clear usage context: conversion costs 100 sats, requires a prior create_payment with toolName='convert_file', and requires no API key or account. However, it does not explicitly mention when to prefer specialized siblings such as convert_html_to_pdf over this generic converter, so it falls short of full routing guidance.

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.