Skip to main content
Glama

Upload a file to paid storage

upload_file

Store a small text payload as a file, paying in USDC via x402. For binary uploads, use the REST endpoint directly instead of this tool.

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>",
      "contentBase64": "<contentBase64>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
contentBase64YesBase64-encoded file content
paymentHeaderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/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 discloses the most important trait — this is a paid operation settling in USDC via x402 — but omits the size limit implied by 'small', whether the payment header is mandatory, whether content becomes publicly retrievable, and what happens on payment failure.

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?

Two sentences, zero waste. Purpose and payment model come first, the binary-upload redirect second; every clause earns its place.

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?

No annotations, no output schema, and two of three parameters undocumented, so the description has to do more. It never explains what the caller gets back (file ID, URL) or how the payment header is produced/supplied, leaving real gaps for a paid mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: contentBase64 is documented in the schema while filename and paymentHeader are not. The description adds no meaning to any parameter, and critically leaves paymentHeader — the key to the x402 payment flow — completely unexplained in both places.

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 ('Store a small text payload as a file') plus the payment mechanism, and explicitly scopes itself away from binary uploads. An agent can distinguish it from download_file and from the sibling 'call_*' utilities without opening a schema.

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?

Gives a clear exclusion: binary uploads should go to the REST endpoint instead. There is no mention of when to prefer it over sibling utilities or any prerequisite (e.g. a funded wallet, required payment header), so it stops just short of full when/when-not guidance.

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