Skip to main content
Glama

upload_image_from_url

Idempotent

Upload a JPEG, PNG or WebP image (5 MiB maximum) from a public https URL. Prefer this to upload_image. Returns an assetId for the document.

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>"
    },
    "name": "upload_image_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
idempotencyKeyNoOptional. Set a random key and reuse it exactly when retrying, so a retry is not applied twice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Unique random key for this operation; reuse exactly when retrying"New value: +"Optional. Set a random key and reuse it exactly when retrying, so a retry is not applied twice"
    • changedInput schema / required
      Previous value: -[
      -  "url",
      -  "idempotencyKey"
      -]New value: +[
      +  "url"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=true and destructiveHint=false, so the description only needs to add context — and it does: accepted MIME types, a 5 MiB ceiling, and the requirement that the URL be public https. It does not mention auth requirements or what happens on fetch/size failure, which keeps it below the top mark.

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?

Two sentences, zero filler. The hard constraints are front-loaded and the sibling preference plus return value follow in a single compact sentence.

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?

For a 2-parameter tool with no output schema, the description covers source constraints, formats, size limit and the returned assetId — everything needed to invoke it correctly. Only failure-mode behavior (unreachable URL, oversized image) is left unstated.

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 50%: idempotencyKey is documented in the schema, but url carries only format/maxLength. The description compensates by constraining url to a public https source and tying the size/format limits to it, adding real meaning beyond the schema's type declaration.

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 (Upload), resource (image), supported formats (JPEG, PNG, WebP), size cap (5 MiB) and source constraint (public https URL). It also explicitly names the sibling upload_image, so an agent can distinguish the two without opening either schema.

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?

"Prefer this to upload_image" gives a clear routing preference to the only relevant sibling. It does not state the inverse condition (e.g. use upload_image for local files or non-URL sources), so the alternative's trigger is only implied.

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.

Resources