Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

upload_media

Upload images or other media files to the Shopline media library, returning a media ID for use in product images and store content.

Instructions

[WRITE] 上傳媒體檔案至 Shopline。

【用途】 上傳圖片或其他媒體檔案至 Shopline 媒體庫,上傳後可取得媒體 ID 供商品圖片等用途使用。 注意:Shopline API 可能需要 multipart/form-data,本工具目前以 JSON body 傳送, 若 API 回傳格式錯誤,請改用 multipart 上傳方式。

【呼叫的 Shopline API】

  • POST /v1/media

【回傳結構】 dict 含 success: bool, resource_id: str, message: str, media: dict。

【副作用】

  • 在 Shopline 媒體庫中新增一筆媒體記錄

  • 上傳的檔案將佔用商店的媒體儲存空間

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
media_dataYes媒體上傳資料。可能需要包含 file_url(遠端 URL)或 base64 編碼的檔案內容,視 Shopline API 支援的格式而定。範例:{"file_url": "https://your-cdn.shoplineapp.com/image.jpg", "type": "image"}
Behavior5/5

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

With no annotations provided, the description carries full burden. It explicitly discloses side effects (adds a media record, consumes storage space) and a known behavioral limitation (JSON body may be rejected; may need multipart). This is more transparent than typical descriptions and goes beyond what annotations would convey.

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?

The description is well-structured with sections for purpose, API call, return structure, and side effects. Every section is informative and earns its place. It's concise without being underspecified.

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?

Given no output schema and no annotations, the description provides the return structure, API endpoint, side effects, and a caveat about the JSON/multipart issue. This is complete for a simple upload tool, covering all essential aspects for an agent to invoke and interpret results correctly.

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?

The schema already provides a detailed description of media_data with an example, achieving 100% coverage. The tool description does not add significant parameter-specific meaning beyond noting the media ID in the return structure. This matches the baseline score of 3.

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 (upload) and resource (media files to Shopline media library), and clarifies the outcome (obtain media ID for product images). It distinguishes itself from sibling tools by focusing on the media library, whereas tools like add_product_images likely attach images directly to products.

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 description provides clear context: use this to upload media and receive an ID for later use in product images. It also notes the JSON body limitation and advises fallback to multipart on format errors. However, it doesn't explicitly mention alternatives or exclusions, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tzangms/shoplinemcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server