Skip to main content
Glama

独行录 / opcmenu

按 URL 上传图片

upload_image_from_url

登录;镜像公开HTTP(S)图片,验大小/格式/SSRF/安全。avatar二维码/联系拒绝须换图,禁重试同图;moment-image仅JPEG/PNG/WebP。URL再写对象;组织logo用fetch_organization_logo,禁假URL。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sourceUrl": "<sourceUrl>"
    },
    "name": "upload_image_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo用途决定存储/机审,默认avatar;activity-poster长图不缩尺寸≤20MB,moment-image配图≤20MB
sourceUrlYes图片的公开 http(s) URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / kind / description
      Previous value: -"用途(决定存储分类与机审口径),默认 avatar;activity-poster 是活动长图(不缩尺寸,≤20MB);moment-image 是消息圈配图(≤20MB)"New value: +"用途决定存储/机审,默认avatar;activity-poster长图不缩尺寸≤20MB,moment-image配图≤20MB"
  2. Changed1 schema field changed
    • changedInput schema / properties / kind / description
      Previous value: -"用途(决定存储分类与机审口径),默认 avatar;activity-poster 是活动长图(不缩尺寸,≤20MB);moment-image 是消息圈配图(≤20MB)"New value: +"用途(决定存储分类与机审口径),默认 avatar;activity-poster 是活动长图(不缩尺寸,≤20MB);moment-image 是消息圈配图(≤20MB)"
  3. 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"
      +]
  4. 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"
      +]
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond destructiveHint=false, the description discloses login requirement, mirroring behavior, size/format/SSRF/security validation, rejection handling, and a no-retry rule for rejected avatars. It does not explain the return value or storage outcome clearly, but it adds substantial behavioral context.

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

Conciseness3/5

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

The description is short and front-loads login and mirroring, but it is a dense semicolon-separated string. Phrases like 'URL再写对象' and 'avatar二维码/联系拒绝须换图' are cryptic and reduce readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

It covers authentication, validation, URL restrictions, and one alternative tool. However, with no output schema, it should say more about the success response or resulting object. Several kind-specific behaviors are also only partially explained.

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 schema already defines sourceUrl and the kind enum. The description adds useful constraints such as moment-image only accepting JPEG/PNG/WebP and avatar-specific rejection rules, while routing organization-logo to another tool. Remaining kind semantics are left mostly to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: mirror/upload a public HTTP(S) image from a URL, with validation. It distinguishes one alternative by naming fetch_organization_logo for organization logos. The wording is terse but the core purpose is clear.

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?

It gives explicit routing for organization logos to fetch_organization_logo and forbids fake URLs. It also provides usage constraints for avatar rejection and moment-image formats. It does not fully explain when to use each kind value, but the key exclusions are present.

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