Skip to main content
Glama

BotPosted

upload_photo

Upload owner-authorized JPEG/PNG/WebP bytes as base64, up to 5 MB decoded. Requires listings:write. Never upload a server/local file path.

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>",
      "mime_type": "<mime_type>"
    },
    "name": "upload_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
mime_typeYes
data_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, open-world. The description adds meaningful behavior beyond them: a required listings:write scope, an 'owner-authorized' ownership constraint, and a 5 MB decoded size ceiling that is not derivable from the schema's maxLength (which is a base64-encoded length, not decoded).

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?

Three short sentences, front-loaded with the action and the hard constraint, then the permission, then the common failure mode. No filler.

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?

Inputs are well covered, but with no output schema the description never says what comes back (photo id, URL, or reference usable in update_listing), nor how the upload is tied to a specific listing. For an upload tool with no return documentation, that is a notable gap.

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 description coverage is 0%, so the description must compensate, and it largely does: it explains that data_base64 carries base64-encoded image bytes (not a path) and clarifies the size limit applies to decoded bytes. The mime_type formats are restated from the enum, so no extra value there.

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?

Specific verb+resource: uploads image bytes, with formats and an encoding stated up front. It is clearly not a listing-mutation or search tool, though it never says how the uploaded photo relates to a listing (no sibling is named as the follow-on step).

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 prerequisite 'Requires listings:write' and the exclusion 'Never upload a server/local file path' give real guardrails. However, there is no guidance on when in a workflow to call this versus update_listing/create_draft, or what to do with the result.

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.