Skip to main content
Glama

Upload asset

upload_asset
Idempotent

Stores one binary file's bytes for a later publish, for a client that cannot make an HTTP PUT to the signed url publish returns. Takes the asset's path in the app and its content as standard base64. Returns the sha256 and bytes that name this path in assets on the next publish.

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": {
      "path": "<path>",
      "content_base64": "<content_base64>"
    },
    "name": "upload_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesthe asset's path in the app, as publish will name it
app_idNothe app to upload into, from a reply or list_apps
content_base64Yesthe file's raw bytes encoded as standard base64

Output Schema

NameRequiredDescriptionDefault
pathYes
bytesYes
sha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / app_id / description
      Previous value: -"the app to upload into"New value: +"the app to upload into, from a reply or list_apps"
    • removedInput schema / properties / development_token
      Removed value: -{
      -  "type": "string"
      -}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish non-read-only, idempotent, non-destructive, non-open-world behavior, but the description adds the crucial deferred-effect semantics: bytes are staged and only "name this path in assets on the next publish." That timing detail is not derivable from the annotations. Remaining gaps such as size limits or overwrite behavior on the same path are minor.

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?

Three tight sentences with the fallback rationale front-loaded before the encoding detail and the return behavior. No filler, though the return-value sentence is slightly convoluted and partially redundant with the output schema.

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?

Given a 3-parameter tool with an output schema and full annotation coverage, the description supplies what structured fields cannot: the purpose as a PUT fallback and the delayed visibility until publish. It omits mention of the optional app_id and any content-size constraints, which is a modest 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 100%, so the parameters are already documented, and the description largely restates them ("path in the app", "content as standard base64"). It adds only a small clarification that the path is the name publish will use. Baseline 3 applies when the schema carries the semantics.

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 ("Stores one binary file's bytes") and immediately frames it against the sibling path: a fallback for clients that cannot HTTP PUT to the signed url that publish returns. An agent can distinguish this from publish without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit selection condition ("for a client that cannot make an HTTP PUT to the signed url publish returns"), which implicitly names the preferred alternative and when to skip this tool. Nothing about routing is left to inference.

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.