Skip to main content
Glama

Convert Remote URL Document

convert_url
Idempotent

Download a public HTTPS file (with connect-time IP pinning, redirect, and size limits) and convert via TweekIT.

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": {
      "url": "<url>",
      "outfmt": "<outfmt>"
    },
    "name": "convert_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1NoLeft crop coordinate in source pixels.
x2NoRight crop coordinate in source pixels.
y1NoTop crop coordinate in source pixels.
y2NoBottom crop coordinate in source pixels.
urlYesPublic HTTPS download URL for the source document or image.
pageNoPage number to convert for multi-page inputs.
alphaNoPreserve alpha transparency when producing raster formats.
inextNoOverride for the detected input extension (e.g., pdf).
widthNoOptional pixel width for the converted output.
heightNoOptional pixel height for the converted output.
outfmtYesRequested output format to send as Fmt.
bgColorNoBackground color (hex RGB) to composite behind transparent pixels.
noRasterizeNoForward to TweekIT to disable rasterization when supported.
fetchHeadersNoOptional allowlisted non-credential HTTP headers (Accept, Accept-Language, Cache-Control, If-Modified-Since, If-None-Match, Range, User-Agent).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / apiKey
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "TweekIT API key passed via the ApiKey header. Defaults to the TWEEKIT_API_KEY environment variable when omitted."
      -}
    • removedInput schema / properties / apiSecret
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "TweekIT API secret paired with the apiKey. Defaults to the TWEEKIT_API_SECRET environment variable when omitted."
      -}
    • changedInput schema / properties / fetchHeaders / description
      Previous value: -"Optional HTTP headers to include when downloading the URL."New value: +"Optional allowlisted non-credential HTTP headers (Accept, Accept-Language, Cache-Control, If-Modified-Since, If-None-Match, Range, User-Agent)."
    • changedInput schema / properties / url / description
      Previous value: -"Direct download URL for the source document or image."New value: +"Public HTTPS download URL for the source document or image."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description adds genuinely useful behavior beyond that: connect-time IP pinning, redirect handling, and size limits, which tell the agent about SSRF-style guardrails and constrained fetch semantics.

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?

A single sentence with both the action and the relevant constraints front-loaded; no filler or redundancy. Density is high but every clause (pinning, redirect, size limits) carries 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?

For a 14-parameter tool with no output schema, the description never indicates what comes back — converted bytes, a link, or metadata — nor how the crop/page/output options interact with the returned artifact. The security and fetch constraints are covered well, but the return-side completeness 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 description coverage is 100%, so all 14 parameters are documented in the schema itself, including the fetchHeaders allowlist and crop coordinates. The description adds no parameter-level meaning beyond reinforcing that url must be public HTTPS, which is already stated in the schema.

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 specific verb+resource: download a public HTTPS file and convert it via TweekIT. The 'public HTTPS' qualifier implicitly separates it from convert_file (local files), so an agent can mostly tell them apart, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by the 'public HTTPS file' phrasing, which suggests this is the remote-URL path rather than a local-file path. There is no explicit when-to-use/when-not or named alternative among convert, convert_file, or fetch.

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.