Skip to main content
Glama

HamroLink Business OS MCP Server

media.get_presigned_url

Generates a direct presigned PUT upload URL ONLY for callers whose execution environment has direct outbound internet access to *.r2.cloudflarestorage.com (such as local terminals, Claude Code with network enabled, or Gemini CLI scripts). WARNING: Calling this tool ONLY reserves an upload endpoint—it does NOT upload any file, and sandboxed chats (ChatGPT, Claude.ai offline sandboxes) block outbound HTTP PUT requests. Inside sandboxed chats, NEVER call this tool—use 'media.upload' with 'file'/'files', 'download_url', or 'url', or ask the user to upload in HamroLink's Media Library UI and call 'media.list'. Never place the returned 'cdnUrl' into pages until an HTTP PUT actually succeeds.

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": {
      "filename": "<filename>"
    },
    "name": "media.get_presigned_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNoDestination folder (default: 'uploads')
filenameYesFilename with extension (e.g. 'logo.png', 'team.webp')
contentTypeNoMIME type (e.g. 'image/png', 'image/jpeg', 'image/webp')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the call only reserves an endpoint with no file transfer, that outbound HTTP PUT to *.r2.cloudflarestorage.com is required, and that sandboxes will block the PUT. The warning not to embed the returned 'cdnUrl' until a PUT succeeds is exactly the kind of side-effect/ordering context annotations cannot convey.

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 critical constraint and the WARNING are front-loaded, but the sandbox limitation is restated twice (the parenthetical 'ChatGPT, Claude.ai offline sandboxes' note and the later 'Inside sandboxed chats, NEVER call this tool'), and the sentence is dense with parentheticals. Effective, but a tighter edit would preserve all content with less repetition.

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 three-parameter, non-destructive, open-world tool with no output schema, the description covers environment prerequisites, the follow-up PUT step, the failure mode in sandboxes, and the correct fallback path. Nothing an agent needs in order to avoid misusing it is missing.

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 filename, folder, and contentType are already documented with examples in the schema. The description adds no parameter-level meaning (no format rules for folder paths or contentType inference), 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 ('Generates a direct presigned PUT upload URL') and immediately narrows the scope to callers with outbound internet access. It also distinguishes itself from the sibling 'media.upload' by explaining that this tool only reserves an endpoint rather than uploading.

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 when-to-use conditions (local terminals, Claude Code with network, Gemini CLI) and explicit when-not-to-use conditions (sandboxed chats such as ChatGPT or Claude.ai), plus named alternatives: 'media.upload' with file/files/download_url/url, manual upload via HamroLink Media Library, or '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.