Skip to main content
Glama

TESI Agent API (1–8 vCPU Linux + Chrome)

tesi_upload_file

Purpose: Stage input datasets, PDFs, CSVs, archives, or source files inside your key's isolated TESI computer before calling tesi_work or tesi_ask so TESI processes them at $0 prompt-token cost. Writes binary (contentBase64) or UTF-8 (contentUtf8) files (up to 768 KiB inline; up to 50 MiB via /api/v1/agents/files/upload) and returns JSON with saved path, version token, byte length, and sha256 digest. Example: {"fileName": "orders.csv", "contentUtf8": "id,amount\n1,42\n"}.

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

Input Schema

NameRequiredDescriptionDefault
folderNoDestination workspace folder (default /home/user/workspace).
fileNameYesTarget filename inside the folder (no path traversal, e.g. data.xlsx).
contentUtf8NoPlain UTF-8 file text when uploading text/CSV/JSON.
contentBase64NoBase64-encoded binary payload (PDF, XLSX, PNG, ZIP, CSV, etc.).

Output Schema

NameRequiredDescriptionDefault
pathNo
bytesNo
sha256No
versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds real value on top: the per-key isolated computer, the $0 prompt-token billing effect, the two size ceilings, and a JSON return containing saved path, version token, byte length, and sha256 digest. It does not explain what happens on re-upload of an existing filename, which matters given idempotentHint=false.

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?

Purpose, sequencing, encoding choice, size limits, and return shape are packed into three front-loaded sentences with a compact example. It is dense and slightly overloaded for a single paragraph, but no sentence is filler.

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?

For a file-write tool with an output schema present, the description covers everything needed to call it correctly: when to call it, how to encode text vs binary content, destination folder defaulting, and size fallbacks. Return-value explanation is technically redundant given the output schema but harmless.

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 schema already documents folder, fileName, contentUtf8, and contentBase64; the description adds the meaningful constraint that the size limits apply to the content payloads and that one path is binary and the other UTF-8, plus a concrete invocation example. The added meaning is modest but genuine beyond the field descriptions.

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 opens with a specific verb-plus-resource ('Stage input datasets, PDFs, CSVs, archives, or source files inside your key's isolated TESI computer') and explicitly positions the tool in the workflow ahead of tesi_work and tesi_ask, which is exactly the distinction an agent needs against those siblings.

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?

It gives a clear triggering condition ('before calling tesi_work or tesi_ask so TESI processes them at $0 prompt-token cost') and states the size regimes (768 KiB inline vs 50 MiB via /api/v1/agents/files/upload). It does not name an alternative tool for the large-file case or say when not to upload, so it stops short of full 5-level routing 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