Skip to main content
Glama
Aktar

Aktar

Official

Upload a file

upload_file
Idempotent

Upload a local file to your own S3, R2, or B2 storage and get a shareable link with Markdown and HTML; existing files reuse their link.

Instructions

Upload a local file to the user's storage and return its link (plus Markdown and HTML). The file becomes reachable by anyone with the link. If the same file is already there, Aktar returns its existing link (reused: true).

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": {
      "path": "<path>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoUpload under this name instead of the file's own (its extension is kept if this has none).
pathYesPath of the file to upload, absolute or relative to the server's working directory. It must be inside the folders the server may upload from (--root, or its working directory), and secrets (SSH keys, credentials, .env files, private keys) are never uploaded.
shortNotrue makes a short link with the destination's link shortener (even if its rules would skip this one), false makes none. Leave out to let the destination's setting decide.
folderNoKeep the file name and put it in this folder of the bucket, instead of the destination's path template.
expiresNoDelete after this many days (only s3 destinations, with Aktar's auto-delete rules on). 0 or left out keeps the file.
destinationNoDestination name or ID from list_destinations. Leave out to let Aktar choose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.0
    • changedInput schema / properties / expires / enum
      Previous value: -[
      -  0,
      -  1,
      -  7,
      -  14,
      -  30
      -]New value: +[
      +  0,
      +  1,
      +  3,
      +  7,
      +  14,
      +  30,
      +  60,
      +  90,
      +  180,
      +  365
      +]
  2. Changed1 schema field changedv0.7.0
    • changedInput schema / properties / expires / description
      Previous value: -"Delete after this many days (needs Aktar's auto-delete rules on the destination). 0 or left out keeps the file."New value: +"Delete after this many days (only s3 destinations, with Aktar's auto-delete rules on). 0 or left out keeps the file."
  3. First observedv0.6.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, open-world, non-destructive, but the description adds material context they do not carry: the uploaded file becomes publicly reachable by anyone with the link, and duplicate files reuse the existing link (reused: true). It also discloses the return payload shape, though it does not cover failure modes or how destinations are resolved when omitted.

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?

Three short sentences with the core action and return value front-loaded, followed by the public-reachability caveat and dedupe behavior. Little waste, though the parenthetical '(plus Markdown and HTML)' is slightly compressed and could be clearer.

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?

With no output schema, the description correctly explains what is returned (link plus Markdown and HTML, plus reused status). Combined with a fully described six-parameter schema, an agent has enough to call it correctly; the remaining gap is which destination is chosen when omitted.

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% and every parameter carries a detailed description (name/extension rule, root restrictions, secret exclusion, expires enum, destination lookup), so the schema already does the heavy lifting. The description adds no parameter-level syntax or defaults beyond that, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Upload a local file to the user's storage') and names the return artifacts (link, Markdown, HTML). The word 'local file' implicitly separates it from upload_clipboard, but no sibling is named explicitly, so differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not-to-use statement versus upload_clipboard, create_short_link, or create_temporary_link. Guidance is only implied by scoping language ('local file', 'the file becomes reachable by anyone'), and the destination parameter points to list_destinations, which is useful but narrow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.