Skip to main content
Glama

Upload File

kaiten_upload_file

Upload a file attachment to a Kaiten card by providing card ID, file name, and base64-encoded content. Verify success by listing files on the card.

Instructions

Upload file attachment (base64). Verify with kaiten_list_files. Prefer description links for large files. Note: Kaiten does not persist the multipart Content-Type — mime_type in responses is inferred from the file extension. contentBase64 is decoded leniently — empty strings and garbage produce 0-byte uploads silently. Validate before calling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesCard ID
fileNameYesFile name
verbosityNoDetail: raw|min(default)|normal|maxmin
contentTypeNoMIME type (NOTE: ignored by Kaiten — kept for client compatibility. mime_type in responses is inferred from filename extension)application/octet-stream
contentBase64YesFile content as base64 string (non-empty)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.7

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing non-obvious quirks: Content-Type is not persisted, mime_type is inferred from file extension, and contentBase64 is decoded leniently so garbage silently produces 0-byte uploads. It also adds a validation directive, which is exactly the kind of operational context an agent needs.

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?

Every sentence earns its place: purpose, verification step, large-file alternative, and two behavioral caveats. The structure front-loads the core action and then groups important caveats logically with no filler.

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?

For a 5-parameter mutation tool with no output schema, the description covers verification, an alternative for large files, and validation pitfalls. It does not describe the response shape or auth requirements, but the explicit 'Verify with kaiten_list_files' mitigates the missing return-value information.

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 description coverage is 100%, so the baseline is 3. The description adds extra value by warning about contentBase64 leniency and re-emphasizing that contentType is ignored. It does not add meaning for cardId, fileName, or verbosity, but those are self-explanatory.

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 action and resource: 'Upload file attachment (base64).' The description also differentiates it from file-related siblings like kaiten_list_files and kaiten_delete_file by implying this is the creation operation, with verification delegated to list_files.

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?

Gives explicit follow-up guidance: 'Verify with kaiten_list_files' and provides an alternative for large files: 'Prefer description links.' The alternative tool is not named explicitly, but the condition and workflow are clear enough for an agent to act on.

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

Deploy Server

Other Tools