Skip to main content
Glama

Save a small file sent as base64

tarkle_upload_file

Save a small file of any type (a PDF, a picture, a spreadsheet, a zip) that you hold in this conversation as a file in a Tarkle workspace, sent as base64 in contentBase64. Up to 2.5 MB after decoding. For text use tarkle_upload_text; for a file at a public https address use tarkle_upload_from_url; for a larger file on disk use tarkle_start_upload; for a file only the person has, tarkle_get_upload_page. fileName needs an extension. Send sha256 (hex) of the file if you know it: Tarkle refuses bytes that do not match, and the answer gives the sha256 of what it stored. Without folderId the file goes to the library root. Returns fileId (for tarkle_create_transfer), fileName, sizeBytes, status and sha256.

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": {
      "workspaceId": "<workspaceId>",
      "fileName": "<fileName>",
      "contentBase64": "<contentBase64>"
    },
    "name": "tarkle_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256NoSHA-256 checksum of the file, if you know it. The upload is refused when it does not match the decoded content.
fileNameYesName for the file, including its extension, for example "split-check.pdf".
folderIdNoFolder to save the file in (from tarkle_list_folders or tarkle_create_folder). Omit for the library root.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
contentTypeNoMIME type of the file. When omitted, it is guessed from the file name.
workspaceIdYesThe workspace's id from tarkle_list_workspaces.
contentBase64YesThe file's content, base64 encoded. Do not add a data: prefix.

Output Schema

NameRequiredDescriptionDefault
fileIdNo
sha256No
statusNo
fileNameNo
sizeBytesNo
sha256SourceNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the write, non-destructive, non-open-world profile, and the description adds behavior beyond them: the checksum is enforced server-side ('Tarkle refuses bytes that do not match'), the stored checksum is echoed back, and a missing folderId silently targets the library root. That is exactly the kind of operational context an agent needs before a mutation.

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 size cap, then routing, then parameter notes — a sensible ordering. The routing sentence is long but each clause maps to a distinct alternative; only the trailing return-field list is arguably wasted given an output schema exists.

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 7-parameter upload tool with annotations and an output schema, the description covers size constraints, checksum enforcement, default destination, and hand-off to tarkle_create_transfer via fileId. Nothing an agent needs to call this correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents fileName extensions, the sha256 mismatch refusal, folderId defaulting, and contentType guessing — the description largely restates those. The notable value-add is quantifying the content size ceiling against contentBase64, while llm_model and contentType go unmentioned in the description. Baseline 3 applies.

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 (save a file as base64 into a Tarkle workspace) and immediately bounds the scope with a size limit ('Up to 2.5 MB after decoding'). The first sentence alone lets an agent distinguish this from the other upload siblings.

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?

Explicitly routes away from this tool in four named cases: text goes to tarkle_upload_text, a public https address to tarkle_upload_from_url, a larger file on disk to tarkle_start_upload, and a person-held file to tarkle_get_upload_page. Each alternative comes with the condition that selects it, so nothing is left to inference.

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.