Skip to main content
Glama

task_add_attachment

Attach a small file to a task by sending its bytes as base64. Use this only when you can't run commands (for example in a chat app); otherwise use task_create_attachment_upload, which keeps the file out of your context. Same rules as the app: JPG, PNG, WebP, PDF, TXT or CSV, up to 2 MB, 10 files per task.

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": {
      "projectId": "<projectId>",
      "taskId": "<taskId>",
      "filename": "<filename>",
      "content": "<content>",
      "context": "<context>"
    },
    "name": "task_add_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesThe task ID or number (FB-360 or 360)
contentYesThe file's bytes, base64-encoded (a data: URL prefix is fine)
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
filenameYesFile name with its extension, e.g. checkout-error.png
projectIdYesThe project ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower, but the description adds real operational context: the context-window cost of base64 payloads, the accepted formats (JPG, PNG, WebP, PDF, TXT, CSV), the 2 MB cap, and the 10-files-per-task limit. It stops short of saying what happens on rejection or what the call returns, which is the remaining gap.

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 sentences, front-loaded with the mechanism, then the routing rule, then the constraints. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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 five-parameter mutation with no output schema, the description supplies the constraints an agent needs to call it successfully: accepted formats, size ceiling, and per-task file cap. The only missing piece is any indication of what the tool returns (attachment ID, URL) or how failures surface, which is a modest gap rather than a blocking one.

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 description coverage is 100%, so all five parameters are already documented in structured form, including the base64 content and the analytics-style 'context' field. The description only reinforces 'small file' and 'bytes as base64', adding no format or validation detail beyond the schema. Baseline 3 is appropriate when the schema carries this much weight.

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?

States a specific verb and resource ('Attach a small file to a task') plus the mechanism ('sending its bytes as base64'), which immediately separates it from the sibling upload tool. An agent can distinguish this from task_create_attachment_upload without opening either schema.

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?

Gives an explicit when-to-use condition ('only when you can't run commands, for example in a chat app') and names the alternative to use otherwise ('task_create_attachment_upload'), along with the reason ('keeps the file out of your context'). Both branches of the decision are covered.

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