Skip to main content
Glama

upload_chat_image

Upload a chat image. Upload a supported image for a chat message. Supply raw Base64 in file, without a data URL prefix; max 6 MiB. API: POST /oss_upload. Required scope: chat:write.

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": {
      "body": "<body>"
    },
    "name": "upload_chat_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare the write/non-idempotent/non-destructive profile; the description adds real behavioral detail beyond that: the 6 MiB size ceiling, the requirement for raw Base64 with no data URL prefix, and the backing endpoint POST /oss_upload. It does not say what the call returns or how long the upload persists, which keeps it short of a 5.

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?

Short, front-loaded sentences with the constraint and scope stated plainly. The first two sentences are near-duplicates ('Upload a chat image' / 'Upload a supported image for a chat message'), a small amount of redundancy that could be merged.

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?

With no output schema, the description should explain what the upload yields (an identifier or URL) and how to use it in a subsequent send_message call, but it stops at the request side. For a single-parameter upload tool the input side is adequately covered, leaving a meaningful return-value gap.

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 reported as 0%, so the description must compensate, and it does partially by specifying raw Base64 without a data URL prefix and the size limit for the file field. However, it says nothing about the filename or content_type fields, and 'supported image' only loosely gestures at the enum of jpeg/png/gif/webp.

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 opens with a specific verb+resource ('Upload a chat image') and clarifies it as uploading a supported image for a chat message. It is clearly distinguishable from upload_chat_audio by the resource noun, though it never explicitly contrasts the two.

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?

It states the required scope (chat:write), which is a useful precondition, but gives no guidance on when to choose this over upload_chat_audio or how the uploaded image is subsequently attached to a message. Usage is implied by the name rather than explained.

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