Skip to main content
Glama

Save a Tunc Art file

art_write

Save a file for the user to keep, open or share: a report, export, image, spreadsheet or document, any type, up to 250 MiB. Use it when the user asks you to produce or store a file; the result gives you its link to hand back. Files are private to the user unless they ask you to publish one: visibility="public" (on create, or operation="set_visibility" with artifact_id for a file already saved) lets anyone on the internet open and download it and any website embed it, until it expires. Set it only when the user asks to publish, embed or share a file with everyone. The result then carries embed.html (code to paste into a page) and media_url (a direct link that plays in most forums); set_visibility with visibility="private" stops it. Publishing needs the "Make your Tunc Art files public" permission on this connection; without it the file is saved private and the result says visibility_refused. Password sharing stays with the user, on the file's page. Set mime_type to the file's real media type so its link previews (images, video, audio, PDF, HTML, text, Markdown, JSON, CSV and code); other types download. Left out, the type is worked out from the file's bytes and name. Send small files inline (content_base64 or text, up to 8 MiB); for larger files use mode="begin" to get an upload URL, PUT the bytes there, then mode="complete" with the upload_id. The result's artifact carries the file's id (its artifact_id) and viewer_url, its private link. Files are kept for the account's retention period (each file shows its expires_at; longer with paid storage). When storage is full, the oldest files are removed first and the account lists what was removed. Keep the artifact_id to open the file later with art_read or remove it with art_delete.

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": {
      "operation": "<operation>"
    },
    "name": "art_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoinline (default): send the file in this call. begin: get an upload URL for a larger file (name, byte_count; optional mime_type, sha256). complete: finish an upload after the PUT (upload_id, byte_count; optional sha256, visibility).
nameNoFile name shown to the user, such as q4-report.pdf (1-240 characters). Required for inline and begin.
textNoinline only: the file as UTF-8 text (at most 8 MiB). Exactly one of content_base64 or text.
sha256NoOptional: the file's SHA-256 (64 hex characters), checked when the upload completes.
mime_typeNoMedia type, such as application/pdf or image/png. Set the real type so the file previews. Left out, it is worked out from the file's bytes and name (pictures, PDF, Office files, audio, video, archives and text are recognized); a file nothing identifies is application/octet-stream, which downloads.
operationYescreate: save a new file. set_visibility: make a saved file public or private again (artifact_id, visibility).
upload_idNocomplete only: the upload_id that mode=begin returned.
byte_countNobegin and complete: the file's exact size in bytes.
visibilityNocreate (inline, or complete for a large file; not begin) and set_visibility: public lets anyone open and download the file and any site embed it, until it expires; set it only when the user asks. private (the default) keeps it the user's.
artifact_idNoset_visibility only: the file's id or six-character code (from art_write or art_read).
content_base64Noinline only: the file's bytes, base64 (at most 8 MiB decoded). Exactly one of content_base64 or text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / artifact_id
      Added value: +{
      +  "description": "set_visibility only: the file's id or six-character code (from art_write or art_read).",
      +  "type": "string"
      +}
    • changedInput schema / properties / mode / description
      Previous value: -"inline (default): send the file in this call. begin: get an upload URL for a larger file (name, byte_count; optional mime_type, sha256). complete: finish an upload after the PUT (upload_id, byte_count; optional sha256)."New value: +"inline (default): send the file in this call. begin: get an upload URL for a larger file (name, byte_count; optional mime_type, sha256). complete: finish an upload after the PUT (upload_id, byte_count; optional sha256, visibility)."
    • changedInput schema / properties / operation / description
      Previous value: -"create: save a new file."New value: +"create: save a new file. set_visibility: make a saved file public or private again (artifact_id, visibility)."
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "create"
      -]New value: +[
      +  "create",
      +  "set_visibility"
      +]
    • addedInput schema / properties / visibility
      Added value: +{
      +  "description": "create (inline, or complete for a large file; not begin) and set_visibility: public lets anyone open and download the file and any site embed it, until it expires; set it only when the user asks. private (the default) keeps it the user's.",
      +  "enum": [
      +    "private",
      +    "public"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / mime_type / description
      Previous value: -"Media type, such as application/pdf or image/png. Set the real type so the file previews; the default (text/plain for text, application/octet-stream otherwise) previews only text, and application/octet-stream downloads."New value: +"Media type, such as application/pdf or image/png. Set the real type so the file previews. Left out, it is worked out from the file's bytes and name (pictures, PDF, Office files, audio, video, archives and text are recognized); a file nothing identifies is application/octet-stream, which downloads."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description adds far more: a permission gate ('Make your Tunc Art files public') whose absence yields visibility_refused, the exact consequence of publishing (anyone on the internet can open, download and embed until expiry), retention/expiry behavior, and that storage pressure evicts the oldest files first. The one soft spot is that the eviction behavior is arguably a destructive side effect while destructiveHint is false, though the description frames it accurately enough not to be a true contradiction.

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-loads purpose and the hand-back value ('the result gives you its link to hand back'), then moves through visibility, permissions, mime types, upload modes, and lifecycle in a sensible order. It is dense and runs long, with some overlap against the already-detailed schema (size limits, base64 vs text, octet-stream fallback), but no sentence is truly wasted.

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 an 11-parameter mutation tool with no output schema, the description covers everything an agent needs before calling: what is returned (artifact_id, viewer_url, embed.html, media_url, visibility_refused, expires_at), permission prerequisites, size limits, the chunked upload sequence, and retention/eviction. Nothing material about invoking it correctly is left to inference.

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 baseline is 3, but the description adds cross-parameter meaning the schema states only locally: the inline-vs-large workflow (mode="begin" for an upload URL, PUT, then mode="complete" with upload_id), why mime_type matters (link previews vs plain download), and that the result's artifact_id doubles as the file id. Most of this content also appears in the schema's own property text, so it is reinforcing rather than purely additive.

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?

Opens with a concrete verb+resource ('Save a file for the user to keep, open or share') and immediately bounds the scope ('a report, export, image, spreadsheet or document, any type, up to 250 MiB'). The closing sentence explicitly separates it from siblings by naming art_read for reopening and art_delete for removal, so an agent can route correctly without inspecting any 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 a direct trigger ('Use it when the user asks you to produce or store a file') plus an explicit when-not for the risky branch: set visibility="public" only when the user asks to publish, embed or share with everyone. It also names a recovery action (set_visibility with visibility="private" stops it) and the downstream tools, art_read and art_delete.

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