Skip to main content
Glama

uploadMediaFromUrlTool

Upload one product picture from a public URL (the server downloads it) or from base64 (for agents that can read files; up to 3MB). The bytes must really be JPG, PNG or WebP (checked, not trusted from the name); a URL picture is up to 10MB. Internal or private addresses are refused. Returns uploadId for setProductImages or createRikmaProduct. For pictures the user attached to the chat, use createUploadSession instead. Members only. Docs: https://1lev1.com/mcp#uploadMediaFromUrlTool

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL of the picture.
base64NoThe picture as base64 or a data: URL. Use url or base64, not both.
fileNameNoA name for the stored file.
projectIdYesRikma (project) id, from findUserProjectsTool. You must be a member.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations only declare the safety profile (readOnly=false, destructive=false, openWorld=false, idempotent=false). The description adds genuinely non-obvious behavior: the server downloads the URL, per-source size caps (3MB base64, 10MB URL), magic-byte validation rather than extension trust, and refusal of internal/private addresses (SSRF guard). These are real additions, but the return contract is only summarized as 'returns uploadId', with no mention of error shapes or whether partial/failed uploads leave residue.

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 with the core action and both input modes, then constraints, then routing and prerequisites — a sensible priority order. It is dense with parentheticals in a single paragraph, which costs a little readability, but no sentence is filler.

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 4-param upload tool with no output schema, it covers the source modes, size limits, validation, auth requirement, SSRF policy, downstream handoff, and a sibling alternative. An agent has everything needed to call it correctly on the first attempt.

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 is 3, and the description still adds meaning: the per-parameter size ceilings (3MB base64 vs 10MB URL) and the byte-level format restriction are not in the schema. The url-vs-base64 exclusivity is already in the schema text, so that part is repetition.

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 (upload one product picture) plus both accepted sources (public URL downloaded server-side, or base64). It explicitly distinguishes itself from the sibling createUploadSessionTool for chat-attached files, so an agent can route without opening either 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?

Gives explicit when-to-use (URL or base64 for agents that can read files) and when-not-to-use (chat attachments go to createUploadSession). It also names the downstream consumers (setProductImages, createRikmaProduct) and the membership prerequisite, leaving nothing to inference.

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.