Skip to main content
Glama

Upload a storage object

upload_object
DestructiveIdempotent

Upload one file into the project's managed S3 bucket — the write half of the object-storage tools, the same reach the dashboard's Object storage explorer gives the owner. Pass key (the destination path, e.g. "images/logo.png") and content_base64 (the file's bytes, base64-encoded — binary like images is fine). An existing object at the same key is silently OVERWRITTEN; list_objects shows what a key already holds. content_type is optional and sniffed from the key's extension when omitted. Uploads to the project's OWN bucket via its managed credentials; never asks the user for a key and never stores binaries in Postgres. Per-file size limit applies. Requires a read-write token.

Input Schema

NameRequiredDescriptionDefault
keyYesthe destination object key, e.g. "images/logo.png"; may contain / to place it in a folder, must not end in / (that is a folder marker) and must not contain .. path traversal
project_idYesthe project id (from list_projects)
content_typeNooptional MIME type, e.g. "image/png"; omitted, it is sniffed from the key's extension
content_base64Yesthe file's bytes, base64-encoded (standard encoding). Binary is fine — this is how an image crosses the JSON boundary

Output Schema

NameRequiredDescriptionDefault
keyYes
sizeYes
bucketYes
messageYes
project_idYes
content_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the destructive behavior in plain language ('silently OVERWRITTEN'), the per-file size limit, the managed-credential model ('never asks the user for a key'), and the fact that binaries don't land in Postgres. These are exactly the side effects an agent needs to reason about a destructiveHint write.

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?

The critical facts (destination, overwrite risk, size limit) are front-loaded, but the 'same reach the dashboard's Object storage explorer gives the owner' clause and the 'never stores binaries in Postgres' aside are padding at the edges of a five-sentence description.

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?

With an output schema present and full parameter documentation, the description only needs to cover side effects and preconditions, and it does — overwrite semantics, auth level, and credential handling. The unquantified 'Per-file size limit applies' is the one gap an agent might trip on.

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 coverage is 100%, so much of the description's parameter prose (base64 encoding, extension sniffing for content_type, the key example) restates what the schema already documents. It adds no syntax, constraint, or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource — 'Upload one file into the project's managed S3 bucket' — and situates it as 'the write half of the object-storage tools', which separates it from list_objects, read_files, and sync_files at a glance.

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

Usage Guidelines4/5

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

Names the relevant sibling (list_objects) as the way to inspect an existing key before overwriting, and states the auth prerequisite ('Requires a read-write token'). It doesn't give an explicit when-not or a rule for choosing between upload_object and deploy_files/sync_files, so it falls short of a 5.

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