Skip to main content
Glama

HamroLink Business OS MCP Server

media.upload

Transcodes and permanently saves image(s) into the user's HamroLink Media Library (Cloudflare R2 CDN as optimized WebP). Supported low-token inputs: (1) ChatGPT Apps SDK: pass attached or AI-generated image(s) via 'file' or 'files' (uses openai/fileParams signed download_url); (2) Any client with a public or temporary signed HTTPS image URL: pass 'url' or 'download_url'. NEVER encode or pass raw base64 image strings in tool arguments (wastes excessive tokens). If your client cannot supply 'file'/'files' or an HTTPS URL (e.g., Claude offline sandbox or Gemini web chat), ask the user for a public HTTPS image URL or to upload directly in HamroLink's Media Library UI, then call 'media.list'.

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": "media.upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic image URL (e.g. Unsplash stock photo) for HamroLink backend to download, optimize, and host.
fileNoAttached or AI-generated image file object from ChatGPT Apps SDK (automatically resolved via openai/fileParams with download_url and file_id).
nameNoOptional image filename or label (e.g. 'the-ai-paradox.png')
filesNoOptional batch of up to 10 attached or AI-generated image file objects from ChatGPT Apps SDK.
folderNoDestination folder in the Media Library (default: 'uploads')
siteIdNoOptional Site ID to associate media with
download_urlNoTemporary signed HTTPS download URL where HamroLink backend can fetch the image binary directly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), the description discloses that the backend fetches the image, transcodes it to WebP, hosts it on a CDN, and saves it permanently — meaningful behavior for a write tool. It does not cover auth requirements, size/count limits, or whether re-uploads overwrite, which keeps it short of a 5.

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?

The outcome is front-loaded in the first sentence, followed by numbered input paths and an uppercase prohibition, which is easy to scan. It is slightly long because the SDK mechanics and the fallback recipe are spelled out, but nearly every clause carries operational 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?

For a 7-parameter, nested-object, no-output-schema ingestion tool, the description covers the ingestion paths, the forbidden input, the storage destination and format, and the escape hatch for incompatible clients. An agent has enough to call it correctly or know when it cannot.

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 the baseline would be 3, but the description adds real selection semantics the schema cannot: which parameter pair to use depends on the client (SDK file objects vs. HTTPS URLs) and that base64 in arguments is forbidden. That guidance materially changes how an agent populates the seven parameters.

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 states a specific verb and resource: transcodes and permanently saves image(s) into the user's HamroLink Media Library as optimized WebP on Cloudflare R2. It is immediately distinguishable from sibling read tools like media.list and media.get_presigned_url, since ingestion is the stated outcome.

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 explicitly names the two supported input paths (SDK 'file'/'files' with signed download_url, or any HTTPS image URL via 'url'/'download_url'), states what NOT to do (never pass raw base64), and gives a fallback for clients that can't do either — ask the user for a public URL or use the HamroLink Media Library UI, then call 'media.list'.

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.