Skip to main content
Glama

Upload an image

upload_image

Upload an image Subo hosts, for any image field. Returns the url Subo hosts the image at; put that in image_url or thumbnail_url of a block, or the invitation image. Two ways in. A link: pass url and Subo downloads it (public https only; KLIPY links are refused, put a KLIPY GIF's link in the field as it is). A link that will last needs no upload at all, but one that expires (a Discord attachment link stops working in a day) does. A file on the person's computer: pass filename and you get a one-time upload_url (15 minutes); send the file there with curl -T <file> "<upload_url>", and that reply carries the hosted url. Use the person's own image this way rather than skip it. PNG, JPEG, GIF or WebP, within the community's plan size limit (too_large names the limit).

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

Input Schema

NameRequiredDescriptionDefault
urlNoAn https link to a PNG, JPEG, GIF or WebP image on the public internet. Subo downloads it and hosts its own copy.
filenameNoThe name of an image file on the person's computer. Returns a one-time `upload_url` to PUT the file to (`curl -T <file> "<upload_url>"`). Send `url` or `filename`, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / filename
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The name of an image file on the person's computer. Returns a one-time `upload_url` to PUT the file to (`curl -T <file> \"<upload_url>\"`). Send `url` or `filename`, not both.",
      +  "title": "Filename"
      +}
    • addedInput schema / properties / url / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / url / default
      Added value: +null
    • removedInput schema / properties / url / type
      Removed value: -"string"
    • removedInput schema / required
      Removed value: -[
      -  "url"
      -]
  2. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations declare a non-read-only, open-world, non-idempotent but non-destructive operation; the description goes further by disclosing the download-and-rehost behavior, the public-https-only restriction, KLIPY refusal, the 15-minute single-use upload token, and the `too_large` failure naming the plan limit. It stops short of stating auth or scope requirements for the community, which is the only material gap.

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?

Purpose and return value are front-loaded, then the two paths are laid out in order. The prose is dense and mostly earns its place, though the fragment 'Two ways in.' and the slightly rambling link-durability sentence could be tightened without losing information.

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?

With no output schema available, the description carries the return contract itself (`url` from a link, `upload_url` plus a follow-up reply carrying `url` for a file), and it closes the loop on formats, size limits, and failure signaling. An agent could execute either path correctly from this text alone.

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?

Although the schema already documents both parameters at 100% coverage, the description adds operational meaning the schema does not: the 15-minute one-time lifetime of `upload_url`, the exact `curl -T <file> "<upload_url>"` invocation, the fact that the hosted `url` arrives in the upload reply rather than the initial call, and the accepted formats and plan size limit surfaced through `too_large`.

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?

The definition opens with a specific verb and resource ('Upload an image Subo hosts') and immediately states what is returned ('Returns the `url` Subo hosts the image at'), then ties it to concrete destinations (`image_url`, `thumbnail_url`, invitation image). No sibling upload tool exists, so differentiation is unnecessary, but the field-level destination guidance still pins the purpose precisely.

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

Usage Guidelines5/5

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

It names both entry paths and the condition that selects each: a public https link via `url`, versus a local file via `filename` and a one-time `upload_url`. It also gives explicit exclusions and exceptions – KLIPY links are refused and should be pasted directly, an expiring Discord attachment needs upload while a durable link needs none, and 'Use the person's own image this way rather than skip it' steers away from dropping user files.

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.