Skip to main content
Glama

Start an image file upload

create_image_upload

Makes a single-use link to send an image file straight to Shipfolio, so it never has to be pasted into a tool call as base64. Use it for any image that is a file on this machine or larger than about 50 KB, in preference to imageBase64: call this, run the returned curl command with your shell, putting the image's path after the @ (or PUT the file's raw bytes to uploadUrl with any HTTP tool; POST works too), then pass uploadId to set_article_cover, add_listing_screenshot or set_listing_logo. The link needs no sign-in, takes one file of at most maxBytes, and expires after 15 minutes (expiresAt); the type is read from the file's bytes (PNG, JPEG, WebP or GIF). Making the link is free; the file counts as one image upload when it arrives, and the image tool doesn't count it again. Needs the write scope. It changes nothing by itself: confirm the change with the user before calling the image tool that uses it.

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": {
      "purpose": "<purpose>"
    },
    "name": "create_image_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeYesWhat the image is for: ArticleCover (set_article_cover), Screenshot (add_listing_screenshot) or Logo (set_listing_logo)
mimeTypeNoThe file's type, for the curl command's Content-Type: image/png, image/jpeg, image/webp or image/gif. Optional; Shipfolio reads the type from the bytes

Output Schema

NameRequiredDescriptionDefault
curlYes
maxBytesYes
uploadIdYes
expiresAtYes
uploadUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses the operational envelope: no sign-in required, exactly one file, maxBytes cap, a 15-minute expiry surfaced as expiresAt, type sniffed from file bytes, write scope required, and the billing model (link creation is free; the file counts as one upload and isn't double-counted). It also resolves the apparent conflict between 'creates something' and 'changes nothing by itself' by stating the change only lands when the image tool is invoked, and asks the agent to confirm with the user first.

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?

Front-loaded correctly — the core action is the first clause, with operational caveats after. It is a single dense block rather than a structured list, and a few clauses run long (the parenthetical about PUT/POST), but essentially every sentence carries load: constraints, expiry, cost, and the confirmation step would all be missed if cut.

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?

An output schema exists, so return values need no explanation, and the description covers the remaining gaps an agent would hit: file-size ceiling, expiry window, content-type handling, auth scope, cost, and the pre-call confirmation norm. For a two-parameter upload-initiation tool with rich annotations, nothing actionable is missing.

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 already 100%, so the baseline is 3; the description adds modest but real meaning by explaining that mimeType is optional because the type is read from the file's bytes (and how it feeds the curl Content-Type), and by implying the purpose value determines which downstream tool consumes the uploadId. It does not add new syntax or format detail beyond the schema's enum mapping.

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 first clause states a specific verb and resource — 'Makes a single-use link to send an image file straight to Shipfolio' — and immediately contrasts it with the alternative approach of pasting base64 into a tool call. It also names the three downstream consumers (set_article_cover, add_listing_screenshot, set_listing_logo), so the agent can place this tool relative to its siblings 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?

Usage conditions are explicit and quantified: use it for any image that is a file on this machine or larger than about 50 KB, 'in preference to imageBase64'. The description then gives the full follow-through sequence — call this, run the returned curl with the file path after @, or PUT/POST raw bytes to uploadUrl, then pass uploadId to the named consumer tool.

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