Skip to main content
Glama

Upload image

upload_image
Destructive

Upload an image into a project from a public http(s) URL or a file attached in the chat, fetched server-side. Pass url for a public http(s) link, or file for a file the person attached in the chat (an MCP client that supports file inputs fills file with a temporary download link itself; do not ask the person for a URL to something they have attached). The target is the URL you pass and nothing else: Morpha's Worker fetches it with a plain HTTP GET, following redirects, and identifies itself as "Morpha/1.0 (+https://morphareels.ai; hello@morphareels.ai)". No third-party API is involved. The URL and every redirect must reach a public address: private, loopback, link-local and cloud-metadata addresses are refused. The worker downloads the .png/.jpg/.jpeg/.gif/.webp/.svg, stores it in the project's asset bucket under a new id, and returns { filename, name, sizeBytes, contentType, width, height }: pass the returned filename (the file's id, never shown to a person) to add_image_layer, and name is what people see; width and height are the picture's own pixel size (null when its header did not say), so size the layer from them or pass add_image_layer one side and let it keep the aspect. This tool does not search for images: pass a direct image file URL, such as one the person has given you, and respect the licence its source states. A url must be a direct, publicly-fetchable http(s) link (not an auth-walled page). SVGs are rejected if they carry a , an inline event handler, a , a javascript: URL, or an external resource reference — supply a static, self-contained SVG. Buffered in Worker memory, so capped at 16 MB. A file on the person's own disk is uploaded in the editor. Reference: https://morphareels.ai/docs/tools#uploadimageurl-file-name

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": {
      "projectId": "<projectId>"
    },
    "name": "upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoDirect, publicly-fetchable http(s) URL of the image file (.png/.jpg/.jpeg/.gif/.webp/.svg). Pass either this or `file`.
fileNoA file the person attached in the chat (an MCP client that supports file inputs fills this itself; do not type it). Pass either this or `url`.
nameNoOptional display name, what people see (e.g. Logo.png). Defaults to the attached file's name or the URL's file name. It never decides where the file is stored.
projectIdYesProject to add the image to.

Output Schema

NameRequiredDescriptionDefault
okYesWhether the call succeeded.
dataNoThe payload, shaped by the tool.
noteNoWhat to do next when not ready.
errorNoWhy it failed.
statusNoFor cache-backed readers: whether the answer was ready.
editorUrlNoOpens this project in the editor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"A file the person attached in the chat (a host that supports file inputs, such as ChatGPT, fills this itself; do not type it). Pass either this or `url`."New value: +"A file the person attached in the chat (an MCP client that supports file inputs fills this itself; do not type it). Pass either this or `url`."
  2. Changed4 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "A file the person attached in the chat (a host that supports file inputs, such as ChatGPT, fills this itself; do not type it). Pass either this or `url`.",
      +  "properties": {
      +    "download_url": {
      +      "description": "Temporary URL the host serves the file at.",
      +      "type": "string"
      +    },
      +    "file_id": {
      +      "description": "The host's id for the file.",
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "description": "The file's own name, when the host knows it.",
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "description": "The file's media type, when the host knows it.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "download_url",
      +    "file_id"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"Optional display name, what people see (e.g. Logo.png). Defaults to the URL's file name. It never decides where the file is stored."New value: +"Optional display name, what people see (e.g. Logo.png). Defaults to the attached file's name or the URL's file name. It never decides where the file is stored."
    • changedInput schema / properties / url / description
      Previous value: -"Direct, publicly-fetchable http(s) URL of the image file (.png/.jpg/.jpeg/.gif/.webp/.svg)."New value: +"Direct, publicly-fetchable http(s) URL of the image file (.png/.jpg/.jpeg/.gif/.webp/.svg). Pass either this or `file`."
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "url"
      -]New value: +[
      +  "projectId"
      +]
  3. Changed2 schema fields changed
    • removedInput schema / properties / filename
      Removed value: -{
      -  "description": "Optional stored filename (.png/.jpg/.jpeg/.gif/.webp/.svg). Defaults to the basename of the URL path; sanitised to lowercase a-z0-9._-.",
      -  "type": "string"
      -}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Optional display name, what people see (e.g. Logo.png). Defaults to the URL's file name. It never decides where the file is stored.",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • removedInput schema / properties / anonymousToken
      Removed value: -{
      -  "description": "The token create_anonymous_account returned. This connection has no Morpha key, so every call carries it.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "url",
      -  "anonymousToken"
      -]New value: +[
      +  "projectId",
      +  "url"
      +]
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "The result envelope every Morpha tool returns.",
      +  "properties": {
      +    "data": {
      +      "description": "The payload, shaped by the tool.",
      +      "type": [
      +        "object",
      +        "array",
      +        "string",
      +        "number",
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "editorUrl": {
      +      "description": "Opens this project in the editor.",
      +      "type": "string"
      +    },
      +    "error": {
      +      "description": "Why it failed.",
      +      "type": "string"
      +    },
      +    "note": {
      +      "description": "What to do next when not ready.",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "Whether the call succeeded.",
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "description": "For cache-backed readers: whether the answer was ready.",
      +      "enum": [
      +        "ready",
      +        "not-ready"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  6. Changed2 schema fields changed
    • addedInput schema / properties / anonymousToken
      Added value: +{
      +  "description": "The token create_anonymous_account returned. This connection has no Morpha key, so every call carries it.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "url"
      -]New value: +[
      +  "projectId",
      +  "url",
      +  "anonymousToken"
      +]
  7. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Far beyond the annotations: it discloses the server-side fetch mechanism, the exact User-Agent string, that no third-party API is involved, SSRF protections (private, loopback, link-local and cloud-metadata addresses refused, redirects validated), a 16 MB in-memory buffer cap, and concrete SVG rejection criteria. What it does not address is the destructiveHint=true annotation — nothing says whether an upload can overwrite or evict existing assets, which is the one behavioural trait an agent would still want.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and the url-vs-file choice are front-loaded, and most sentences carry real information. However, it is delivered as a single dense paragraph of roughly 300 words mixing invocation rules, network behaviour, security policy, return-value mapping and licence advice, which makes it hard to scan for the one constraint an agent needs at call time.

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 tool with an output schema, a nested object parameter and open-world network access, the description covers the full picture: input modes, fetch semantics, security limits, size cap, format handling, and what to do with each returned field. An agent could call this correctly and chain it to add_image_layer without consulting anything else.

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 the schema already documents all four parameters and the nested file object, setting the baseline at 3. The description adds some meaning beyond it — that a `url` must be a direct, publicly-fetchable link and not an auth-walled page, and that `name` is the human-visible label while the returned `filename` is an internal id that should never be shown — but much of the url/file guidance restates the schema.

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?

Opens with a specific verb and resource ("Upload an image into a project") and immediately scopes the two input sources. It also disambiguates from the adjacent pipeline step by naming add_image_layer and explaining that the returned filename is what that tool consumes, and explicitly rules out a neighbouring capability ("This tool does not search for images").

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?

Gives explicit routing rules between the two input modes: pass `url` for a public http(s) link, or `file` for a chat attachment, with the warning not to ask the person for a URL to something they already attached. It also states an out-of-scope case ("A file on the person's own disk is uploaded in the editor") and the correct downstream call, so an agent knows both when to use it and what to do next.

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