Skip to main content
Glama

kaiten_files_write

Destructive

Manage Kaiten file attachments by uploading base64 bytes, attaching files to cards, comments, or custom properties, and updating or deleting them.

Instructions

Select request.operation and provide its fields in request.args. cardFiles.attachFileToCard: Legacy deprecated numeric-ID upload. Decode base64 to Blob and let the public client build multipart/form-data. cardFiles.detachFileFromCard: Delete a legacy numeric-ID card attachment. cardFiles.updateFile: Update the legacy attachment card-cover flag, preserving false and omission. restrictedAccessCardFiles.attachFileToCard: Upload base64 file bytes to a card UUID using the public multipart client method. restrictedAccessCardFiles.updateCardFile: Rename a restricted card file or update its card-cover flag. restrictedAccessCardFiles.deleteCardFile: Delete a restricted card file by UUID. restrictedAccessCommentFiles.attachFileToComment: Upload base64 file bytes to a comment using card and comment UUIDs. restrictedAccessCommentFiles.updateCommentFile: Update comment-file name and card_cover using the native partial body. restrictedAccessCommentFiles.deleteCommentFile: Delete a restricted comment file by UUID. restrictedAccessCustomPropertyFiles.attachFileToCustomProperty: Upload base64 file bytes to a custom property using card and property UUIDs. restrictedAccessCustomPropertyFiles.updateCustomPropertyFile: Update custom-property-file name and card_cover using the native partial body. restrictedAccessCustomPropertyFiles.deleteCustomPropertyFile: Delete a restricted custom-property file by UUID.

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": {
      "request": "<request>"
    },
    "name": "kaiten_files_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered externally. The description adds real context beyond that: the legacy/deprecated classification, the requirement to send canonical padded base64 without a data URL prefix, and the partial-body semantics for updates ('preserving false and omission', 'native partial body'). It does not say whether deletes are permanent, what permissions the restrictedAccess variants require, or how uploads behave on retry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The per-operation list is scannable and the invocation directive is front-loaded, but it is a flat twelve-item enumeration that never groups the three parallel legacy/restricted families, so the structural similarity has to be re-read each time. Some lines leak implementation detail an agent cannot act on ('let the public client build multipart/form-data', 'using the native partial body').

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and annotations cover destructiveness, so the remaining burden is operation routing, which the list handles adequately. Gaps remain for a twelve-operation multiplexer: no statement of the tool's overall scope, no legacy-vs-UUID selection rule, and no note that the delete and update branches are irreversible state changes rather than retrievals.

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 essentially zero (only data_base64 is documented), so the description carries the burden and largely meets it by mapping each operation to the identifiers it needs (card UUID, comment UUID, property UUID, file UUID) and by stating the encoding contract for file bytes. What it does not do is explain fields the schema leaves bare, notably whether card_cover=true sets or toggles a cover and what omitting name on update means.

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?

Each of the twelve enumerated operations pairs a specific verb with a specific resource (e.g. 'Upload base64 file bytes to a comment using card and comment UUIDs', 'Delete a restricted comment file by UUID'), so an agent can match intent to operation without opening the schema. It loses a point because there is no top-level statement of what the tool as a whole manages, and the read counterpart kaiten_files_read is never contrasted.

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?

Usage is only implied: labeling a family 'Legacy deprecated numeric-ID upload' nudges an agent toward the restrictedAccess UUID variants, and the update descriptions hint at rename vs card-cover use. But there is no explicit rule such as 'prefer restrictedAccess* and use cardFiles* only for legacy numeric IDs', and no prerequisites or exclusions are stated.

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