Skip to main content
Glama

Private file storage for agents (long-term memory)

file
Destructive

Store files privately for the paying wallet (or card pack): only that payer can list or download them. action=store with bytes= first returns the exact price (402): $0.005 per MB, min $0.005, kept 30 days; action=renew adds 30 days at the same price. download $0.005 any size; list, info, delete $0.002. Upload by POST (raw bytes, or JSON {data_base64}); max 95 MB per file. Downloads are raw bytes, or format=base64 for JSON (up to 20 MB). The price depends on the inputs, as described above (USDC on Base, x402); you're only charged when the call succeeds.

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": {
      "action": "<action>"
    },
    "name": "file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNofile_id (download, renew, info, delete)
nameNoFile name to keep with it (store)
bytesNoFile size in bytes (store/renew; sets the price)
actionYesstore, download, renew, info, list, or delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / action
      Added value: +{
      +  "description": "store, download, renew, info, list, or delete",
      +  "examples": [
      +    "list"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / bytes / description
      Previous value: -"Declared file size in bytes (used for pricing)"New value: +"File size in bytes (store/renew; sets the price)"
    • removedInput schema / properties / bytes / examples
      Removed value: -[
      -  1048576
      -]
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "file_id (download, renew, info, delete)",
      +  "type": "string"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"Optional filename"New value: +"File name to keep with it (store)"
    • removedInput schema / properties / name / examples
      Removed value: -[
      -  "data.bin"
      -]
    • changedInput schema / required
      Previous value: -[
      -  "bytes"
      -]New value: +[
      +  "action"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is a non-idempotent, destructive, open-world write; the description adds the material context: payer-scoped privacy, a 402 price quote before storing, $0.005/MB with a minimum, 30-day retention with paid renewal, 95 MB upload cap, 20 MB cap on base64 downloads, USDC on Base via x402, and charge-on-success only. That is exactly the kind of billing and lifecycle disclosure annotations cannot carry.

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?

Dense and front-loaded: privacy and pricing come first, then per-action costs, then transport and limits, with no filler sentences. The semicolon-chained single paragraph is information-rich but slightly harder to scan than a structured list would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still explains what comes back (raw bytes, or base64 JSON on request) and what the initial 402 quote looks like. For a paid, destructive storage tool with four params, nothing an agent needs to invoke it correctly is missing.

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, but the description adds real meaning: bytes drives the price and is used on store/renew, id identifies a file_id for download/renew/info/delete, and name is retained metadata for store. It also implies the action enum's practical branches, going modestly beyond 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?

States a concrete verb set and resource: store, download, list, info, renew, delete of private files, with the scope constraint 'only that payer can list or download them'. An agent can distinguish this from kv or image_upload siblings 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?

Each action's behavior and cost is spelled out (action=store with bytes returns the price first, action=renew extends 30 days, download/list/info/delete prices), which is enough to pick the right action. It does not explicitly route an agent away from similar siblings like kv for small values, so it stops 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