Skip to main content
Glama

Convert a file

convert_file

Convert a file to another format, e.g. OFD→PDF, HEIC→JPG, STEP→STL, WEM→MP3, DOCX→PDF. Give either a public file_url or, in ChatGPT, the attached file as file. Downloads the file, converts it, and returns a download link (valid ~4 hours). Most conversions finish within the call; if not, the result has status "processing" and a job_id for get_conversion_status. Up to 50 MB.

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

Input Schema

NameRequiredDescriptionDefault
toYesTarget format extension, e.g. "pdf", "jpg", "stl", "mp3".
fileNoA file the user attached in ChatGPT. ChatGPT fills this in; other clients use file_url.
fromNoSource format extension. Only needed when the URL and filename do not end in one.
file_urlNoPublic http(s) URL of the file to convert. Google Drive and Dropbox share links work. Leave out when passing `file`.
filenameNoName for the file, with extension, e.g. "invoice.ofd". Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "A file the user attached in ChatGPT. ChatGPT fills this in; other clients use file_url.",
      +  "properties": {
      +    "download_url": {
      +      "description": "Temporary download URL of the attached file.",
      +      "type": "string"
      +    },
      +    "file_id": {
      +      "description": "ChatGPT file id.",
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "description": "Original file name, with extension, if known.",
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "description": "MIME type of the file, if known.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "download_url",
      +    "file_id"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / file_url / description
      Previous value: -"Public http(s) URL of the file to convert. Google Drive and Dropbox share links work."New value: +"Public http(s) URL of the file to convert. Google Drive and Dropbox share links work. Leave out when passing `file`."
    • changedInput schema / required
      Previous value: -[
      -  "file_url",
      -  "to"
      -]New value: +[
      +  "to"
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare non-read-only, open-world, non-idempotent, non-destructive behavior, and the description adds substantial context beyond them: the server downloads the file, returns a link valid ~4 hours, handles 50 MB maximum, and may return asynchronously with a status and job_id. The time-limited link and size cap are operationally important facts an agent cannot get from annotations or schema.

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?

Three tight sentences: purpose and examples first, input-path choice second, then return behavior and the async escape hatch. Every clause carries information an agent needs, with no filler or restatement of the title.

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?

There is no output schema, and the description compensates fully by describing the return value (a download link, ~4 hour validity) and the alternate success shape (status "processing" with a job_id). Combined with the input-path rule and size limit, an agent has everything needed to call this correctly and handle both response paths.

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 baseline is 3, but the description adds real meaning: it frames file_url and the nested `file` object as mutually exclusive alternatives and clarifies that `file` is populated only in the ChatGPT client. The 50 MB limit also constrains what can be passed, which the schema does not state.

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 ("Convert a file to another format") and grounds it with concrete conversion pairs (OFD→PDF, HEIC→JPG, STEP→STL). It is unmistakably distinct from siblings get_conversion_status and list_supported_formats, which are lookup/status tools rather than transformation tools.

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?

Explicitly tells the agent which input path to use ("Give either a public file_url or, in ChatGPT, the attached file as `file`") and routes to get_conversion_status with the exact trigger condition (status "processing" plus a job_id). It stops short of stating exclusions, such as checking list_supported_formats first for an unknown target format, so it is strong routing guidance rather than complete when/when-not coverage.

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.