Skip to main content
Glama

Upload an image

upload_image

Copy an image from a URL into miow's store and get back the URL to use in a pictures block. Up to 10 MB. JPEG, PNG, GIF, WebP and AVIF are kept as they are; a BMP or a TIFF is stored as a JPEG; an SVG is drawn as a PNG at twice its size, and refused if it holds a script or links to other files. Use it for an image on someone else's server, which may move or vanish.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps URL of the image
tokenNoThe site token from create_site or the site's settings. Omit if your Authorization header carries it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / token / description
      Previous value: -"The site token from create_site or the owner page. Omit if your Authorization header carries it."New value: +"The site token from create_site or the site's settings. Omit if your Authorization header carries it."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations (readOnly=false, destructive=false, openWorld=true) by disclosing the 10 MB cap, per-format handling (BMP/TIFF re-encoded to JPEG, SVG rasterised to PNG at 2x), and a real failure mode — SVG containing scripts or external links is refused. That is exactly the operational context an agent needs before calling a mutating upload.

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 sentences, front-loaded with what the tool does and returns, then constraints and conversion rules, then the usage cue. No filler and no repetition of the schema.

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?

For a two-parameter tool with no output schema, the description supplies everything an agent needs: return value shape, size limit, format transformations, refusal condition, and when this tool is the right choice.

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?

With 100% schema coverage, both parameters are already documented (HTTPS URL, optional site token). The description adds no syntax or format detail about the parameters themselves, only about outcomes, so the baseline 3 applies.

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 ('Copy an image from a URL into miow's store') plus the concrete outcome ('get back the URL to use in a pictures block'). No sibling does the same thing, and the definition makes clear it is a copy-into-store operation rather than a block edit.

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 it for an image on someone else's server, which may move or vanish' gives a clear selecting condition for the tool. It stops short of explicitly naming an alternative (e.g. inserting a block with an already-hosted URL) or stating exclusions, so it is clear context without full when-not guidance.

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