Skip to main content
Glama

upload_attachment

Attach a file to a task in the connected LoopGantt ACCOUNT (requires signing in to LoopGantt, or an API key): a report, export, screenshot or spec the task is about. Send the file as base64 (at most 4 MB). The hosted remote server caps a whole request at 512 KB, so through it a file can be at most about 380 KB; for bigger files use the local server or the REST API upload (POST /api/v1/tasks/{taskId}/attachments with fileName and size). Executables, scripts and HTML are refused. Files count against the file storage of the workspace plan; list_attachments shows the per-file limit and how much is used.

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>",
      "contentBase64": "<contentBase64>"
    },
    "name": "upload_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesTask id from list_tasks
fileNameYesFile name with extension, e.g. "site-plan.pdf"
contentTypeNoMIME type, e.g. "application/pdf" (optional)
contentBase64YesThe file bytes, base64-encoded (a data: URL also works)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses key behavior: sign-in or API key is required, base64 payload limits apply, the remote server has a much lower cap, and executables/scripts/HTML are refused. It also notes that files consume workspace storage, though it does not describe the return value or failure response.

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?

The description is dense but well structured and front-loads the purpose before giving constraints. Every sentence adds operational information: authentication, payload limits, refused file types, storage impact, and alternatives for larger files.

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 an upload tool with four parameters, no annotations, and no output schema, the description covers authentication, size limits, rejected file types, storage impact, and alternative upload paths. It is close to complete, but it leaves the upload response and error behavior unspecified.

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 coverage is 100%, so the baseline is 3, but the description adds useful meaning for contentBase64 by specifying size limits and format. It does not go much beyond the schema for taskId, fileName, or contentType, which the schema already documents.

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 task in the LoopGantt account. It gives concrete file examples and distinguishes this write operation from sibling read/delete attachment tools by naming the action and constraints explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It says when to use the tool (attaching reports, exports, screenshots, or specs to a task) and gives clear alternatives for oversized files: the local server or REST API upload. It also points to list_attachments for storage limits, so the agent can route appropriately.

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