Skip to main content
Glama

attach_file_to_task

Upload a file to a Kanboard task by providing a local file path or base64 content. File size limited to 5 MB.

Instructions

Upload a file to a Kanboard task as an attachment. Provide either file_path (local file) or content_base64 (inline base64 content) — not both. project_id is resolved automatically from the task (no need to provide it). Maximum file size: 5 MB (5,242,880 bytes) — larger files return VALIDATION_ERROR before any HTTP request is made. Returns { file_id } on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesID of the task to attach the file to (required).
filenameYesFilename to store in Kanboard (required).
file_pathNoAbsolute or relative path to the file to upload. Relative paths are resolved against process.cwd(). Maximum decoded size: 5 MB (5,242,880 bytes). Exactly one of file_path or content_base64 must be provided (not both, not neither).
content_base64NoBase64-encoded file content to upload directly (no local file needed). Decoded size must be ≤ 5 MB (5,242,880 bytes). Exactly one of file_path or content_base64 must be provided (not both, not neither).
Behavior4/5

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

With no annotations, description discloses file size limit, pre-validation error, and return format { file_id }. Missing side effects like overwriting behavior, but overall transparent.

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?

Four sentences, front-loaded with purpose, followed by constraints and return value. No fluff, though could be slightly more structured.

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?

Given no output schema or annotations, description covers purpose, usage, constraints, and return. Only minor missing context about storage or retrieval, but sufficient for invocation.

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 covers all parameters (100%), but description adds crucial mutual exclusivity and relative path resolution details, which enriches semantics beyond 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?

Description clearly states 'Upload a file to a Kanboard task as an attachment', specifying the verb and resource. It distinguishes from sibling tools like delete_task_file by focusing on upload behavior.

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?

Explains when to use (attach a file), details mutually exclusive parameters (file_path vs content_base64), and notes automatic project_id resolution. No explicit when-not, but context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ErnestoCorona/kanboard-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server