Skip to main content
Glama

Rapier - Markdown Editor & Art

Convert pictures with Rapier

convert

Use this when the person wants pictures converted to JPEG XL, or JPEG XL pictures converted back. Free, on the person's own device. Opens Rapier's converter in this app's view where the app can show one: pictures from the chat passed in files open there and convert at once, and the person can add more and saves the results. The pictures never reach Rapier's server: the view reads them from the chat on the person's device. Without a view, answers with the converter's link (https://rapier.website/jxl) for the person. files: the chat's pictures. Omit it to let the person pick them. quality: high, veryhigh, lossless, or a number 1-100 (100 is lossless). A fresh view starts on high. A quality or effort left out keeps the view's current choice, so pass quality to be sure. effort 1-10 (7 on a fresh view). Higher is smaller and slower. 9 and 10 take a while, longer on a slower machine, and 10 can take 20 to 30 minutes for a 12 MP photo. Animation, video, resizing, and the max_bytes fitting search use at most effort 9, even when 10 is requested. max_bytes: each picture made the best that fits under 100000, 250000, 500000, 1000000, 2000000 bytes (a JPEG carried exactly when it fits). longer_side: 1920, 1280, 640 px, never larger than the picture. remove_location: true takes a photo's location out. The date, camera and other metadata are kept. To convert files in your own sandbox, run npx jpegxl <file|folder>: it prints each size before and after.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoYour display name on acts. Never grants authority.
filesNo
effortNo
qualityNo
max_bytesNo
longer_sideNo
operation_idNo
remove_locationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / quality / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "lossless",
      -      "high",
      -      "medium"
      -    ],
      -    "maxLength": 16,
      -    "type": "string"
      -  },
      -  {
      -    "maximum": 100,
      -    "minimum": 1,
      -    "type": "integer"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "high",
      +      "veryhigh",
      +      "lossless"
      +    ],
      +    "maxLength": 16,
      +    "type": "string"
      +  },
      +  {
      +    "maximum": 100,
      +    "minimum": 1,
      +    "type": "integer"
      +  }
      +]
  2. Changed9 schema fields changed
    • changedInput schema / properties / agent / description
      Previous value: -"Your display name on acts; never grants authority."New value: +"Your display name on acts. Never grants authority."
    • changedInput schema / properties / effort / maximum
      Previous value: -9New value: +10
    • addedInput schema / properties / longer_side
      Added value: +{
      +  "enum": [
      +    1920,
      +    1280,
      +    640
      +  ],
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_bytes
      Added value: +{
      +  "enum": [
      +    100000,
      +    250000,
      +    500000,
      +    1000000,
      +    2000000
      +  ],
      +  "type": "integer"
      +}
    • addedInput schema / properties / quality / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "lossless",
      +      "high",
      +      "medium"
      +    ],
      +    "maxLength": 16,
      +    "type": "string"
      +  },
      +  {
      +    "maximum": 100,
      +    "minimum": 1,
      +    "type": "integer"
      +  }
      +]
    • removedInput schema / properties / quality / enum
      Removed value: -[
      -  "lossless",
      -  "high",
      -  "medium"
      -]
    • removedInput schema / properties / quality / maxLength
      Removed value: -16
    • removedInput schema / properties / quality / type
      Removed value: -"string"
    • addedInput schema / properties / remove_location
      Added value: +{
      +  "type": "boolean"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, openWorldHint=false, idempotent=false, destructive=false. The description adds material context beyond that: processing is local and 'the pictures never reach Rapier's server,' the call opens a view where results are saved and more pictures can be added, omitted quality/effort inherit the view's existing state (explaining the non-idempotent hint), and effort is clamped to 9 for animation, video, resizing, and max_bytes searches. It even quantifies the worst-case latency (20-30 minutes for a 12 MP photo at effort 10), which is exactly the kind of cost signal an agent needs before invoking.

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 long but most sentences earn their place, and it front-loads the when-to-use clause before parameter detail. There is mild redundancy in the privacy theme, stated once as 'Free, on the person's own device' and again as 'never reach Rapier's server' with the same on-device rationale. Prose paragraph form rather than separated parameter notes makes the dense middle harder to scan, but nothing is padding.

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

Completeness4/5

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

With 8 parameters and no output schema, the description covers what happens on success (a view where files convert and results save) and on the no-view path (a link is returned), which is the key return-value distinction. Residual gaps are secondary: it does not say what the tool reports back to the agent when a view does open, and agent/operation_id are undocumented. For a tool of this complexity the coverage is close to sufficient.

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

Parameters5/5

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

Schema description coverage is only 13%, so the description must carry the parameters, and it does: files is defined as the chat's pictures with omission meaning the person picks, quality enumerates high/veryhigh/lossless plus a 1-100 number where 100 is lossless, effort is 1-10 with 7 as the fresh-view default and a size/speed tradeoff, max_bytes enumerates the exact byte targets and their fitting semantics, longer_side values 'never larger than the picture,' and remove_location preserves date and camera metadata. Only the agent and operation_id plumbing parameters go unmentioned, which is a minor omission against this level of detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a precise verb and resource plus the conversion direction: pictures to JPEG XL, or JPEG XL pictures converted back. It also distinguishes the in-sandbox path (npx jpegxl) from the in-app path. It stops short of naming a sibling such as export, so an agent must infer the boundary from the verb alone, which keeps it from a 5.

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?

'Use this when the person wants pictures converted to JPEG XL, or JPEG XL pictures converted back' gives a clear triggering condition, and the fallback behavior when no view exists (reply with the https://rapier.website/jxl link) tells the agent what happens in that case. There is no explicit when-not-to-use clause or named alternative among open/show/edit/export, so the routing guidance is clear but not exhaustive.

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.