Skip to main content
Glama
aiterm-mcp
by kitepon

image_put

Saves base64-encoded image bytes (PNG, JPEG, GIF, WebP) into the local temp folder and returns the absolute path, using chunked uploads for larger images.

Instructions

Aiterm同士の中継用。画像のバイト列(base64、png/jpeg/gif/webp、全体で25 MiBまで)をこの端末の一時フォルダへ保存し、その絶対パスを返す。1通は10 MiB未満に収めるため、5 MiBを超える画像は upload_id(UUID)・offset(受け取り済みのバイト数)・final で順に送る。呼び手は pty_send の image を使い、直接は呼ばない。

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": {
      "data_base64": "<data_base64>"
    },
    "name": "image_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
finalNo分けて送る時、最後の一片ならtrue(この時に画像かを見て名前を付ける)
offsetNo分けて送る時、この一片の前までに受け取ったバイト数(一致しなければ IMAGE_UPLOAD_OFFSET)
upload_idNo分けて送る時の組の印(UUID)
data_base64Yes画像のバイト列(base64)。分けて送る時はその一片

Output Schema

NameRequiredDescriptionDefault
pathNo
bytesNo
schemaYes
receivedNo
mime_typeNo
upload_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.70.112

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it names the side effect (writing to a temp folder), the return value (absolute path), the aggregate 25 MiB cap, and the 10 MiB-per-message constraint driving chunking. It omits the temp file's lifetime, cleanup or overwrite behavior, and any permission requirements, which keeps it short of full transparency.

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?

Four sentences, front-loaded with the purpose and then the chunking protocol and the delegation rule, with no filler. Every sentence contributes a distinct constraint.

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 an output schema exists, the description need not detail return values, and the chunking protocol, size limits, and caller guidance make it callable correctly. The remaining gap is operational detail about the saved temp file, such as its lifetime and whether repeat uploads overwrite.

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 alone documents the four parameters, but the description adds real meaning by explaining that upload_id/offset/final exist only for the chunked path and that chunking kicks in above 5 MiB. It does not explain what offset means independent of the schema, but the protocol framing is new information.

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 ('画像のバイト列を…一時フォルダへ保存し、その絶対パスを返す'), plus the supported formats and overall size cap. It also identifies its own role as an internal relay used by pty_send, so an agent can distinguish it from pty_send and the other pty_* 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?

Explicitly says callers should use pty_send's image parameter and not call this tool directly, and gives the exact threshold (over 5 MiB) at which the chunked path applies with upload_id/offset/final. That is both a when-to-use condition and a clear statement of when not to call it directly.

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