Skip to main content
Glama
Hermoso

Hermoso

Official

Upload a local file -> durable public URL

upload_file

Upload any user file to Hermoso and get a durable public URL accepted by publishing, scheduling, and ad-build tools, including creatives not generated in Hermoso.

Instructions

Persist an ARBITRARY user file (image, video, audio, PDF or document, up to 150MB) into Hermoso and get back a durable public URL that EVERY publish, schedule and ad-build tool accepts — post_to_meta / post_to_linkedin / post_to_linkedin_page / post_to_youtube / post_to_tiktok / post_to_pinterest / post_to_x / post_to_google_business / schedule_post / upload_meta_asset / upload_google_ads_asset / create_meta_ad / create_linkedin_ads_creative / set_youtube_thumbnail / save_to_drive / save_to_onedrive. Kept in the Library. THIS IS THE BRING-YOUR-OWN-CREATIVE PATH: it is for files that have NOTHING to do with a Hermoso render (media on the user's desktop, an agency's finished ad, a photo they shot), and it means you can publish, schedule and run ads through Hermoso without generating anything here. Provide exactly ONE source — passing two is an error, never a silent preference: url (ANY public http(s) link — Hermoso fetches it server-side, so nothing crosses this connection and there is no practical size limit; THIS IS THE ONE THAT ALWAYS WORKS, including on the hosted connector), path (a local file, ONLY when Hermoso runs on the user's own machine over stdio/CLI; the hosted connector cannot see their disk), or dataUri (a base64 data: URI — keep it under ~15MB, since the bytes travel over this connection). If the file is already at a public https URL, the Meta, Reddit and ChatGPT-Ads tools take it directly and re-host it safely — but LinkedIn (posts and ad creatives), Pinterest, the YouTube thumbnail and upload_google_ads_asset upload the BYTES themselves and therefore refuse an external host, so run it through here first and pass the URL this returns. When in doubt, use this: its URL works everywhere. (Calling the underlying HTTP route directly? POST /api/upload takes the file's RAW BYTES as the request body with its own content-type — NOT multipart/form-data — or ?url= with no body.) Returns {url, kind, bytes}.

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

Input Schema

NameRequiredDescriptionDefault
urlNoa PUBLIC http(s) URL Hermoso fetches server-side (private/internal addresses are refused, and every redirect hop is re-checked). A share link from Dropbox, Google Drive, OneDrive, SharePoint or Box works as the file itself (set to "Anyone with the link"); an iCloud Drive link does not, Apple gives it no download address. Works on every surface including the hosted connector, and the bytes never cross this connection — prefer this whenever the file is reachable on the web.
nameNooriginal file name — helps pick the right extension
pathNolocal filesystem path (stdio/CLI only — refused on the hosted connector)
dataUriNobase64 data: URI of the file bytes (data:<mime>;base64,<…>) — bytes travel over this connection, so keep it small
getUploadUrlNoASK FOR A ONE-TIME UPLOAD URL instead of uploading now — use this whenever the file is on the user’s machine and you can run a shell or an HTTP request. Returns a uploadUrl you PUT the raw bytes to (any HTTP client), which answers with the durable Hermoso url. It beats `dataUri` for anything but a small image: a data: URI spends the whole file as tokens in this conversation. One file per url, and it expires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.610
    • changedInput schema / properties / url / description
      Previous value: -"a PUBLIC http(s) URL Hermoso fetches server-side (private/internal addresses are refused, and every redirect hop is re-checked). Works on every surface including the hosted connector, and the bytes never cross this connection — prefer this whenever the file is reachable on the web."New value: +"a PUBLIC http(s) URL Hermoso fetches server-side (private/internal addresses are refused, and every redirect hop is re-checked). A share link from Dropbox, Google Drive, OneDrive, SharePoint or Box works as the file itself (set to \"Anyone with the link\"); an iCloud Drive link does not, Apple gives it no download address. Works on every surface including the hosted connector, and the bytes never cross this connection — prefer this whenever the file is reachable on the web."
  2. Changed1 schema field changedv0.1.251
    • addedInput schema / properties / getUploadUrl
      Added value: +{
      +  "description": "ASK FOR A ONE-TIME UPLOAD URL instead of uploading now — use this whenever the file is on the user’s machine and you can run a shell or an HTTP request. Returns a uploadUrl you PUT the raw bytes to (any HTTP client), which answers with the durable Hermoso url. It beats `dataUri` for anything but a small image: a data: URI spends the whole file as tokens in this conversation. One file per url, and it expires.",
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changedv0.1.161
    • changedInput schema / properties / dataUri / description
      Previous value: -"base64 data: URI of the file bytes (data:<mime>;base64,<…>)"New value: +"base64 data: URI of the file bytes (data:<mime>;base64,<…>) — bytes travel over this connection, so keep it small"
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "a PUBLIC http(s) URL Hermoso fetches server-side (private/internal addresses are refused, and every redirect hop is re-checked). Works on every surface including the hosted connector, and the bytes never cross this connection — prefer this whenever the file is reachable on the web.",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "bytes": {
      -      "type": "number"
      -    },
      -    "kind": {
      -      "type": "string"
      -    },
      -    "url": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. Addedv0.1.15

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly=false, openWorld=true, idempotent=false, destructive=false; the description adds the substantive behavior: a 150MB cap, exactly-one-source enforcement with an error rather than silent precedence, hosted-connector inability to read the user's disk, ~15MB practical ceiling for data URIs due to token cost, one-time upload URL expiry, and redirect/private-address re-checking. It also discloses the return shape {url, kind, bytes}, which is absent from the annotations. Nothing here contradicts the declared non-destructive, open-world profile.

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 purpose and source-selection rules are front-loaded, but the middle is a single dense block with heavy all-caps emphasis and a 16-item sibling enumeration that a reader must wade through. The trailing note about calling POST /api/upload directly with raw bytes is developer-facing detail that an agent invoking this tool does not need, and it dilutes the actionable content.

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 5-parameter, zero-required upload tool with no output schema, the description covers everything an agent needs: size limits, source exclusivity, surface constraints (hosted vs stdio), when to prefer the one-time upload URL, and the exact return shape. No behavioral gap remains that would cause a misinvocation.

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 100%, so per-schema descriptions already explain each parameter; the description nonetheless adds meaning the schema does not carry, chiefly the mutual-exclusion rule ("Provide exactly ONE source — passing two is an error, never a silent preference") and a global precedence recommendation favoring `url`. It partially restates schema text (public http(s) url, small dataUri, stdio-only path), which keeps it from a clean 5.

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 description opens with a specific verb and outcome ("Persist an ARBITRARY user file ... get back a durable public URL") and explicitly positions itself against sibling tools, naming the publish/schedule/ad-build tools that accept the result. It also carves out the differentiating case ("BRING-YOUR-OWN-CREATIVE PATH ... files that have NOTHING to do with a Hermoso render"), so an agent can distinguish this from render/generation paths without opening a schema.

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 states when to use this versus alternatives in detail: if the file is already at a public https URL, Meta/Reddit/ChatGPT-Ads tools take it directly, but LinkedIn, Pinterest, the YouTube thumbnail and upload_google_ads_asset require bytes so must be routed through here. It also gives explicit selection rules among url/path/dataUri/getUploadUrl plus a fallback heuristic ("When in doubt, use this"), which is exactly the when/when-not/alternatives bar.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools