Skip to main content
Glama

独行录 / opcmenu

按 URL 上传图片

upload_image_from_url

【需要登录】把公开HTTP(S)图片镜像为稳定URL;同步验大小/格式/SSRF及图片安全。avatar含二维码/联系方式会拒绝,应换图勿重试同图;moment-image仅JPEG/PNG/WebP。【组合链】上传→将URL写对应对象;组织logo用fetch_organization_logo,不要假造URL。

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 declare the mutation/safety profile; the description adds login requirement, synchronous size/format/SSRF/image-safety validation, rejection criteria for avatars with QR codes or contact info, and the non-idempotent retry caution — substantial context beyond structured fields.

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?

Information-dense with a front-loaded login requirement and compact bracketed groupings; almost every clause carries actionable meaning. The density is high but structured rather than padded.

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 write tool with no output schema, the description covers prerequisites, validation behavior, rejection handling, format limits, and the follow-up composition chain (write the returned URL onto the target object). Nothing an agent needs to invoke it correctly 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 100%, so baseline is 3, but the description adds meaning beyond the schema: avatar triggers contact-info/QR rejection and moment-image carries a JPEG/PNG/WebP format constraint not stated in the schema's kind description. It clarifies how kind affects acceptance.

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 and resource: mirroring a public HTTP(S) image to a stable URL, with the synchronous validation performed. It is clearly distinguishable from the many prepare_*_upload and set_organization_logo siblings.

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?

It gives explicit conditions and alternatives: use fetch_organization_logo for organization logos rather than fabricating a URL, do not retry a rejected avatar but swap the image, and restricts moment-image to JPEG/PNG/WebP. When-to-use and when-not-to-use routing is spelled out, not inferred.

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