Skip to main content
Glama

upload_asset

Internal: called by the show_upload_widget widget to store the picked file. Do not call directly, chat attachments cannot be passed as base64 here. Use show_upload_widget instead.

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>",
      "contentType": "<contentType>",
      "dataBase64": "<dataBase64>"
    },
    "name": "upload_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesOriginal file name, used to derive the asset name
dataBase64YesFile contents as a base64 string (no data: URL prefix)
contentTypeYesMIME type of the file

Output Schema

NameRequiredDescriptionDefault
assetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world write, and the description adds genuinely new context: this is an internal callback invoked by the widget rather than a user-facing entry point, and its input source is restricted. It does not cover limits (file size, duplicate filenames) or failure behavior, which keeps it short of a 5.

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 'Internal:' marker that governs everything after it, and every sentence carries a distinct instruction with no repetition.

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 annotations covering the safety profile and an output schema covering return values, the description supplies what remains: caller identity, prohibition on direct use, and the redirect target. Only operational limits on the payload are unaddressed.

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 coverage is 100%, so the baseline is 3, and the description adds real meaning beyond the schema by clarifying that dataBase64 content must come from the widget picker and cannot be sourced from chat attachments. The other parameters (filename, contentType) are left entirely to the schema.

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?

The description names a specific verb and object ('store the picked file') and immediately scopes it as an internal widget callback, so an agent can distinguish it from the sibling show_upload_widget without reading 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?

It gives an explicit negative directive ('Do not call directly') plus a concrete alternative ('Use show_upload_widget instead'), and adds a boundary condition explaining that chat attachments cannot be routed through this tool as base64.

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