Skip to main content
Glama

独行录 / opcmenu

按 URL 上传图片

upload_image_from_url

【需要登录】把一张公开可访问的图片 URL 镜像进独行录存储,返回稳定的图片地址(同步过内容安全,违规图拒收)。

【何时用】要给「我的头像 / 产品 logo / 产品封面 / 产品图集 / 活动封面 / 活动长图海报 / 消息圈配图」设图时:先用本工具把外部图片 URL 转成独行录地址,再把返回的 url 填进 update_my_profile(avatarUrl) / update_my_product(logoUrl·coverUrl·gallery) / create_product / create_organizer_activity(coverUrl·posterUrls) / publish_moment(images,kind 传 moment-image,只收 jpg / png / webp)。组织 logo 直接用 set_organization_logo(它自己抓图)。

【限制】仅支持公网 http(s) 图片,带大小/类型/SSRF 校验;头像按头像口径审(二维码、联系方式导流也拦),被拒返回 image_content_rejected,换一张再来。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo用途(决定存储分类与机审口径),默认 avatar;activity-poster 是活动长图(不缩尺寸,≤20MB);moment-image 是消息圈配图(≤20MB)
sourceUrlYes图片的公开 http(s) URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"用途(决定存储分类与机审口径),默认 avatar;activity-poster 是活动长图(不缩尺寸,≤20MB)"New value: +"用途(决定存储分类与机审口径),默认 avatar;activity-poster 是活动长图(不缩尺寸,≤20MB);moment-image 是消息圈配图(≤20MB)"
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "avatar",
      -  "product-logo",
      -  "product-cover",
      -  "product-gallery",
      -  "activity-cover",
      -  "activity-poster",
      -  "organization-logo"
      -]New value: +[
      +  "avatar",
      +  "product-logo",
      +  "product-cover",
      +  "product-gallery",
      +  "activity-cover",
      +  "activity-poster",
      +  "organization-logo",
      +  "moment-image"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"用途(决定存储分类),默认 avatar"New value: +"用途(决定存储分类与机审口径),默认 avatar;activity-poster 是活动长图(不缩尺寸,≤20MB)"
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "avatar",
      -  "product-logo",
      -  "product-cover",
      -  "product-gallery",
      -  "activity-cover"
      -]New value: +[
      +  "avatar",
      +  "product-logo",
      +  "product-cover",
      +  "product-gallery",
      +  "activity-cover",
      +  "activity-poster",
      +  "organization-logo"
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover the generic profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=true); the description adds real behavior beyond them: login required, synchronous content-safety moderation with violation rejection, SSRF/size/type validation, an avatar-specific review standard that also blocks QR codes and contact-info solicitation, and the concrete failure signal image_content_rejected.

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?

Bracketed 【需要登录】/【何时用】/【限制】 headers front-load the login requirement, the purpose, and the constraints, and every sentence maps to a downstream tool or a rejection condition. It is on the long side, but the density of routing information means little of it is padding.

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 2-parameter tool with no output schema, the description still covers auth, accepted inputs, validation behavior, the rejection path and its error code, and the full downstream wiring of the returned URL. An agent has everything needed to call it correctly and handle failure.

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 description coverage is 100%, so the baseline is 3. The description goes further by explaining that kind governs storage classification and the moderation口径, and adds the jpg/png/webp-only constraint for moment-image that the schema does not state, giving the agent a reason to pick a value rather than just its allowed set.

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: mirror a public image URL into platform storage and return a stable image address. It also names what it is not (set_organization_logo fetches images itself), so an agent can separate it from the nearest sibling without opening any 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?

The 【何时用】 block gives an explicit two-step workflow (convert URL first, then feed the returned url into update_my_profile / update_my_product / create_product / create_organizer_activity / publish_moment) and an explicit alternative (set_organization_logo for org logos). Conditions selecting this tool versus the alternative are spelled out, not implied.

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