Skip to main content
Glama

下载图片

download_image

Download images from verified public HTTPS URLs to a local relative path while blocking internal-network addresses, path traversal, symlinks, and overwrites.

Instructions

从经过安全校验的 HTTPS 公网地址下载图片到当前工作目录下的相对路径;拒绝内网地址、路径越界、链接和覆盖已有文件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
maxBytesNo
outputPathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
dataYes
messageYes
Install Server

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses concrete safety behaviors: it rejects intranet addresses, path traversal, links/symlinks, and existing-file overwrites. These details meaningfully shape how an agent can expect the tool to behave.

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?

A single, well-structured sentence with no filler. The primary action is stated first, followed by a clear semicolon-separated list of rejection conditions.

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

Completeness4/5

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

The description covers the core behavior, security constraints, and path semantics well, and an output schema exists to document return values. The only notable omission is behavior related to maxBytes, which is less critical because the parameter schema provides defaults and bounds.

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?

Schema description coverage is 0%, and the description partially compensates by clarifying that url must be a public HTTPS address and outputPath is a relative path. It does not explain maxBytes or what happens when the limit is exceeded, though the schema's default and maximum provide partial guidance.

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 names a specific verb ('download') and resource ('image') and precisely defines the target location as a relative path under the current working directory. It also distances itself from siblings by focusing on fetching an existing image rather than generating or validating one.

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 clear context: use it only for HTTPS public addresses and relative output paths, and it lists rejected inputs such as intranet addresses and path traversal. It does not explicitly name sibling alternatives as choices, but the download-vs-generate/validate distinction is implicit.

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

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/ybd0612/agnes-image-mcp'

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