Skip to main content
Glama

file_convert

Convert a server file to another format such as PDF, DOCX, XLSX, or PNG; the queued conversion saves the new file beside the original under a free name.

Instructions

Convert a file to another format (target: pdf, docx, xlsx, png, …) on the server with the Convert app - the explorer's Convert… action. Needs the Convert app installed by an administrator (else NOT_FOUND). The converted file lands beside the original under a free name. It answers 202 with the queued operation ({op: {id, …}}): follow it with op_get {id} until its status is ok (or partial, failed, cancelled), stop it with op_cancel.

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": {
      "path": "<path>",
      "target": "<target>"
    },
    "name": "file_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesadapter:// path of the file to convert
targetYesthe format to convert to, as an extension: pdf, docx, xlsx, png, …

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the admin-installed-app prerequisite, the NOT_FOUND error, that the output lands beside the original under a free name (non-destructive, no overwrite), and the 202 queued-operation response shape. That is materially more than the name implies.

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 prerequisites, then the async contract — a logical order with no filler. It runs long and dense in a few long sentences, but every clause (error code, output placement, poll/stop tools) carries operational value.

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?

An output schema exists, yet the description still clarifies the 202/op envelope and the required follow-up call, which is exactly the part an agent would otherwise get wrong. For a two-parameter async mutation tool, nothing essential to correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are already documented (adapter:// path, target as a file extension), so the description only restates the target format list. Baseline 3 applies since the schema does the semantic work.

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') plus an enumerated target set (pdf, docx, xlsx, png), and names the concrete backing feature ('the explorer's Convert… action'), so it is distinguishable from siblings like file_copy or file_zip.

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 operating context: requires the Convert app from an administrator, and the async follow-up path (poll op_get {id} until ok/partial/failed/cancelled, stop with op_cancel). It does not state when to prefer this over other file-production routes, but the workflow guidance is explicit and actionable.

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