Skip to main content
Glama

upload_reference

Upload a reference image using the compatible upload path. Upload one JPEG, PNG, or WebP reference image as base64 (maximum 10 MB decoded).

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": {
      "filename": "<filename>",
      "media_type": "<media_type>",
      "content_base64": "<content_base64>"
    },
    "name": "upload_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
media_typeYes
content_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the file count, accepted formats, and the 10 MB decoded size cap, but says nothing about permissions/auth, what the call returns (upload id, URL, or task handle), or whether it must be paired with complete_reference_upload — a notable gap for a mutation tool in an apparent multi-step flow.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both front-loaded and free of filler, but the second sentence restates the first's action ('Upload ... Upload one ...') rather than adding new information. The redundant framing costs space that could have gone to return value or sibling routing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description needed to explain what happens after the upload and how it relates to complete_reference_upload/create_reference_upload. It covers input constraints only, leaving the agent unable to reason about the downstream flow or expected response.

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 for all three required parameters. It clarifies content_base64 (base64-encoded, max 10 MB decoded) and media_type (JPEG/PNG/WebP allowed values), but filename gets no guidance — no extension rules, length limits, or uniqueness constraint.

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 states a specific verb and resource — upload a single reference image — and adds concrete constraints (JPEG/PNG/WebP, one file, 10 MB decoded). It does not differentiate this tool from the upload-related siblings (create_reference_upload, complete_reference_upload, import_reference_url), and the phrase 'compatible upload path' gestures at a multi-step flow without naming it.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus the other upload-family siblings, nor any prerequisite such as needing a prior create/complete step. The only guidance is 'using the compatible upload path', which is unexplained and gives no actionable selection criterion.

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