Skip to main content
Glama

Prepare asset upload

prepare_asset_upload

Stage an image upload for an asset reference: a mark image, an app icon or a domain screenshot the user supplies. Returns a signed URL that accepts the raw image bytes by POST (PNG, JPEG, WebP, GIF or AVIF, up to 8 MB), and an upload_token that add_asset takes verbatim as reference.upload_token. The link is bound to this organization and expires within a few minutes.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
acceptYes
max_bytesYes
expires_atYes
upload_urlYes
upload_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare the generic mutation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false); the description adds the operationally important traits — accepted MIME types, an 8 MB cap, organization scoping, and a few-minute expiry. It does not say whether calling twice invalidates an earlier link or how failures should be retried, which matters given idempotentHint=false.

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

Conciseness5/5

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

Three sentences, all load-bearing: sentence one names the action and targets, sentence two the return contract and format limits, sentence three the binding and lifetime. The most decision-relevant facts (signed URL, token, expiry) are front-loaded.

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 zero-parameter staging tool with both annotations and an output schema present, the description covers everything an agent needs to call it and hand the result off: constraints, security scoping, lifetime, and the exact downstream field name. No material gap remains.

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?

There are zero input parameters, so per the baseline this dimension is largely carried by the schema and sits at 4. The description usefully documents the output contract the parameters downstream depend on (upload_token passed verbatim as reference.upload_token) rather than leaving that handoff implicit.

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+resource ('Stage an image upload for an asset reference') and enumerates the concrete asset kinds it serves (mark image, app icon, domain screenshot). It is unmistakably distinct from add_asset, which it names as the downstream consumer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The workflow is made explicit: this tool produces an upload_token that 'add_asset takes verbatim as reference.upload_token', so the agent knows it precedes add_asset. It never states when this step is unnecessary or what to do if an asset already has a reference, so it stops short of full when/when-not guidance.

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