Skip to main content
Glama

OyList

Upload a small image

upload_image

Upload a small JPEG, PNG, or WebP file the user chose and the client already holds, at most 1 MiB encoded as base64. Prefer upload_image_from_address or an upload link for anything larger.

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": {
      "base64": "<base64>",
      "mediaType": "<mediaType>",
      "requestId": "<requestId>"
    },
    "name": "upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
base64Yes
profileNoThe username of the profile to work as. Needed only when the connection has several profiles; the user chooses it.
mediaTypeYes
requestIdYesA unique ID for this write. Reuse it when retrying the same request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag a non-read-only, non-destructive, closed-world write, and the description adds the size ceiling, the base64 encoding requirement, and the precondition of user consent ('the user chose'). It does not say what the call returns (an image ID?) or whether the uploaded image must then be attached via set_list_image, which is the main missing behavioral detail.

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?

Two sentences, zero filler: the eligibility rule and size bound come first, the fallback routing second. Nothing repeats the schema or annotations verbatim.

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?

There is no output schema, so the description should say what an upload produces and what the agent should do next with it (e.g., attach it with set_list_image). Size, format, and consent are covered, but the post-call path is left to inference for a state-changing tool.

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 50%, but the description compensates for the two undocumented fields by translating the base64 maxLength into a human-readable 'at most 1 MiB encoded as base64' and enumerating JPEG/PNG/WebP for mediaType. It says nothing about profile or requestId, though both already carry schema descriptions, so no meaning is lost.

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?

Names a specific verb (upload) and resource (image) plus the accepted formats and a hard size bound, so the tool's scope is unambiguous. The constraint that the client already holds the bytes distinguishes it from the address-fetching sibling without needing to open its schema.

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 routes oversized payloads to upload_image_from_address or an upload link, giving both a when-to-use condition ('client already holds', ≤1 MiB) and a named alternative. The selection rule is fully stated rather than implied.

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