Skip to main content
Glama

upload_base64

Upload base64-encoded data to an S3-compatible bucket and get back a public URL for attaching images or files to issues and PR reviews.

Instructions

Upload base64-encoded data to the S3 bucket and return its public URL

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": "<data>",
      "filename": "<filename>"
    },
    "name": "upload_base64"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoCustom object key. Auto-generated if omitted
dataYesBase64-encoded file content
filenameYesFilename for key generation and extension detection
content_typeNoMIME type. Inferred from filename if omitted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a key behavioral fact beyond the schema: the object is stored in an S3 bucket and its public URL is returned, telling the agent the result is publicly accessible. It is silent on overwrite semantics for an existing key, size limits, and required credentials, which are meaningful gaps for an upload mutation.

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?

A single sentence that front-loads the action, the input format, and the outcome with zero filler.

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?

There is no output schema, but the description states the return value (public URL), and all four parameters are fully documented in the schema, so the agent has what it needs to invoke correctly. The only shortfall is the absence of overwrite, size, and auth context for a write operation.

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 100%, so key, data, filename, and content_type are already documented with their defaults and inference rules. The description adds no additional parameter meaning beyond the schema, so the baseline of 3 applies.

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 names a specific verb (upload), the exact input form (base64-encoded data), and the destination (S3 bucket), which implicitly separates it from upload_file and upload_from_url. It does not name those siblings explicitly, so differentiation relies on the agent inferring the input-format distinction.

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?

Usage is only implied by 'base64-encoded data' — an agent can infer this is the tool for in-memory payloads rather than file paths or URLs, but there is no explicit when-to-use or when-not-to-use statement relative to upload_file or upload_from_url.

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