Skip to main content
Glama

upload_image

Upload a local image to OSS with deduplication, returning an OSS URL for use in blockJson or question images.

Instructions

把本地磁盘图片直传 OSS + 去重,返回可塞进 blockJson 图块 / ingest_question.images 的 ossUrl。

参数: local_path 本地绝对路径;asset_kind 资产类型(figure 等)。 返回: {ok, asset_id, oss_url, dedup}。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asset_kindNofigure
local_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided, so the description carries full responsibility. It discloses the upload action, deduplication behavior, and return fields (ok, asset_id, oss_url, dedup). This provides good transparency, though it could mention permissions or error cases.

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?

Two sentences efficiently cover purpose, parameters, and return format. It is front-loaded and to the point, but could benefit from slightly more structured breakdown.

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?

Given the tool's simplicity and presence of an output schema, the description covers purpose, parameters, and return values adequately. It explains the integration points (blockJson, ingest_question.images), but lacks details on error handling or prerequisites.

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%, so the description must compensate. It explains local_path as local absolute path and asset_kind as asset type with example 'figure'. While it adds meaning beyond the schema, it could provide more detail on the asset_kind options or path format.

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 clearly states it uploads a local image to OSS with deduplication, returning an ossUrl usable in blockJson or ingest_question.images. It distinguishes from siblings by specifying the exact use case and output integration.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool should be used for uploading local images for use in blocks or ingest_question, but does not explicitly state when not to use it or provide alternatives. The context is implied but not fully directed.

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/RuntimeAll/teacher-mcp'

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