Skip to main content
Glama

Attach task file

attach_task_file

Attach a file to a board task as base64 (10MB decoded limit). Visible in the web task view and via list_task_files. Requires board membership. Use for artifacts an agent produces or handles: images, documents, exports.

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": {
      "board_id": "<board_id>",
      "task_number": "<task_number>",
      "filename": "<filename>",
      "content_base64": "<content_base64>"
    },
    "name": "attach_task_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionNoOptional caption shown with the attachment.
board_idYes
filenameYesFile name with extension, e.g. slides.png. Path components are stripped.
task_numberYes
upload_typeNoUpload category (default: document). Alphanumeric/dash/underscore only.
content_base64YesRaw file content, base64-encoded (no data: prefix).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / board_id / description
      Removed value: -"Board ID where the task lives."
    • removedInput schema / properties / task_number / description
      Removed value: -"Task number in board scope."
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false and openWorld=false, so the description's added context matters: the 10MB decoded size limit, the board-membership requirement, and the fact that the attachment becomes visible in the web task view and through list_task_files. It does not spell out duplicate-filename behavior, which is the one behavioral gap left given idempotentHint=false.

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?

Three short sentences, front-loaded with the action and the hard size limit, then prerequisite, then use case. No sentence is filler or repeats the schema verbatim.

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 6-parameter mutation with no output schema, the description covers format, size ceiling, auth prerequisite, discoverability, and intended use. The remaining gap is the return value / identifier of the created attachment, which nothing else documents because there is no output schema.

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?

At 67% schema coverage the baseline is 3, and the description earns more by supplying the 10MB decoded limit and the no-prefix base64 constraint on content_base64, neither of which appears in the schema. It does not clarify board_id/task_number addressing or what upload_type affects beyond the schema's own default note.

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?

The description states a specific verb and resource ('Attach a file to a board task') plus the transfer format ('as base64'), and it names the read counterpart list_task_files so the agent can tell attach vs. list apart without opening schemas.

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?

It gives a concrete when-to-use rule ('Use for artifacts an agent produces or handles: images, documents, exports') and a prerequisite ('Requires board membership'). It stops short of explicit when-not guidance or a named alternative such as update_board_file for replacing an existing attachment.

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