Skip to main content
Glama

List, upload, download, or delete private Data files

files
Destructive

Lists, uploads, downloads, or deletes private files on one Data project this account owns. Actions are list, upload, download, and delete. Use files for file bytes. Use database for tables and records and export for a JSON snapshot. Uploads are base64, at most 1 MB, within 100 files and 50 MB per account. This is the existing private bucket, not a public Supabase Storage bucket.

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": {
      "projectId": "<projectId>"
    },
    "name": "files"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name for upload. Slashes and control characters are replaced. At most 180 characters. Default file.
actionNolist, upload, download, or delete. Omitted means list. download and delete require fileId. delete removes the private file.
fileIdNoFile UUID for download and delete.
mimeTypeNoUpload media type. Known types are kept: text/plain, text/csv, application/json, application/pdf, image/png, image/jpeg, image/gif, image/webp, audio/mpeg, audio/wav, video/mp4, application/zip, and application/octet-stream. Any other value is stored as application/octet-stream.
projectIdYesUUID of a Data project this account owns.
contentBase64NoFile bytes for upload, standard base64, 1 to 1,000,000 decoded bytes. Not returned on upload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"list, upload, download, or delete. Omitted means list. download and delete require fileId. delete removes the private file."
    • changedInput schema / properties / contentBase64 / description
      Previous value: -"File bytes for upload. Not returned on upload."New value: +"File bytes for upload, standard base64, 1 to 1,000,000 decoded bytes. Not returned on upload."
    • addedInput schema / properties / fileId / description
      Added value: +"File UUID for download and delete."
    • addedInput schema / properties / mimeType / description
      Added value: +"Upload media type. Known types are kept: text/plain, text/csv, application/json, application/pdf, image/png, image/jpeg, image/gif, image/webp, audio/mpeg, audio/wav, video/mp4, application/zip, and application/octet-stream. Any other value is stored as application/octet-stream."
    • addedInput schema / properties / name / description
      Added value: +"Display name for upload. Slashes and control characters are replaced. At most 180 characters. Default file."
    • addedInput schema / properties / projectId / description
      Added value: +"UUID of a Data project this account owns."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered; the description adds value beyond them with account-level quotas, the base64 upload encoding, and the private-vs-public bucket clarification. It stops short of saying whether delete is recoverable or what a download returns, which is the remaining behavioral gap.

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?

Front-loaded with purpose and routing, then constraints, which is the right order. The sentence 'Actions are list, upload, download, and delete' largely repeats the opening sentence and could be cut without losing information.

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?

For a six-parameter destructive tool with no output schema, the definition covers scope, alternatives, quotas, and encoding. The notable omission is the return payload shape for list and download (file bytes vs. base64 vs. metadata), which an agent cannot infer from a schema-less response.

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 contributes constraint meaning not present in the schema: the 100-file and 50 MB per-account ceilings that govern whether an upload will succeed. It restates the action enum and base64 1 MB cap, which the schema already documents.

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 opening sentence names a specific resource (private files on one Data project the account owns) and enumerates all four operations, then explicitly routes byte-level work here versus 'database' for tables/records and 'export' for JSON snapshots. An agent can distinguish this from every named sibling 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 Guidelines5/5

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

It states both when to use this tool ('Use files for file bytes') and the conditions selecting the alternatives ('Use database for tables and records and export for a JSON snapshot'), plus a negative scoping rule ('the existing private bucket, not a public Supabase Storage bucket'). Constraints (base64, 1 MB, 100 files / 50 MB per account) further tell the agent when this tool will refuse work.

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