Skip to main content
Glama

task_attachment_add

Store an approved base64-encoded file as a task attachment while enforcing the existing 25 MB per-file limit.

Instructions

Store an approved base64-encoded attachment in the task database. The existing 25 MB per-file limit is enforced.

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": {
      "taskId": "<taskId>",
      "fileName": "<fileName>",
      "base64Data": "<base64Data>"
    },
    "name": "task_attachment_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesNumeric task ID.
fileNameYesSafe file name without a path.
base64DataYesBase64-encoded file bytes.
contentTypeNoOptional MIME content type.
descriptionNoOptional attachment description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write, so the safety profile is covered. The description adds genuinely useful behavior: a 25 MB per-file cap is enforced, which tells the agent calls can fail on size. It stops short of describing what happens on duplicate filenames or what the response contains.

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?

Two short sentences, front-loaded with the action and its main constraint. Minor filler in "existing" and "in the task database," but nothing extraneous overall.

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?

With full schema coverage and annotations covering mutability, the description only needs to add the size constraint, which it does. The remaining gap is the lack of any return-value hint (e.g., attachment ID) given there is no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every one of the five parameters is already documented in the schema. The description restates the base64 encoding requirement but adds no format, encoding padding, or contentType interplay details. Baseline 3 applies when the schema carries the semantics.

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?

"Store an approved base64-encoded attachment in the task database" gives a specific verb (store) plus resource (attachment) and scopes it to a task. It clearly separates this from siblings like task_attachment_get/delete/list by implying creation, though it never names an alternative explicitly.

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?

The word "approved" hints at a precondition before calling, but the description never states when to use this versus other attachment tools, nor any exclusions or prerequisites (e.g., whether the task must exist). Usage is only implied.

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