Skip to main content
Glama

Save text as a file

tarkle_upload_text

Save text you already hold (a report, notes, markdown, CSV, JSON, HTML, a notebook export) as a file in a Tarkle workspace. Use this when you have no file on disk and no shell: the content goes in the call and Tarkle stores it. Up to 3 MB of text. A fileName without an extension gets .md. Returns fileId for tarkle_create_transfer. For a binary file (PDF, image, video) use tarkle_upload_from_url or tarkle_get_upload_page.

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

Input Schema

NameRequiredDescriptionDefault
contentYesThe text to save as the file's content.
fileNameYesName for the file. Without an extension, .md is added.
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.
contentTypeNoOptional MIME type; guessed from the file name when omitted.
workspaceIdYesThe workspace's id from tarkle_list_workspaces.

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.7/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, openWorldHint=true), so the description only needs to add operational context, which it does: a 3 MB text ceiling, extension defaulting to .md, and the returned fileId for chaining. It stops short of covering duplicate-name behavior, which matters given idempotentHint=false, so it is strong but not exhaustive.

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?

Opens with the core action, then preconditions, then limits, then the chaining hint and fallback routing. Four dense sentences with no filler and no repeated information.

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?

An output schema exists, so return values need no elaboration, and the description still surfaces the one field worth knowing (fileId) plus its consumer. Size limit, extension behavior, and sibling routing round out everything needed to call it correctly.

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 the 3 MB size constraint on content, which the schema does not express. The remaining parameters, including the analytics-only llm_model field, are left entirely to 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 specific verb and resource (save text as a file in a Tarkle workspace) and enumerates the content kinds it accepts. It draws a sharp boundary against the binary-upload siblings, so an agent can pick it without opening another 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?

Gives an explicit precondition (no file on disk, no shell), which is exactly the decision boundary against tarkle_upload_file and tarkle_upload_from_url. It also names the alternatives to use for binary content (PDF, image, video), so both the when and the when-not are covered.

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.