Skip to main content
Glama

attach_file

Upload a file and attach it to an issue, project, or comment. Send the file content as base64 in content_base64 (up to 25 MB). Returns markdown (a ready relative link such as name): paste exactly that into the issue/comment/description text.

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

Input Schema

NameRequiredDescriptionDefault
mimeNoe.g. image/png; guessed from the filename if omitted
issueNoissue identifier or id, e.g. "WEB-12"
projectNoproject key or id, e.g. "WEB"
filenameYese.g. screenshot.png
comment_idNocomment id (from list_comments or read_issue)
content_base64Yesthe file bytes, base64-encoded

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / comment_id / description
      Added value: +"comment id (from list_comments or read_issue)"
    • addedInput schema / properties / issue / description
      Added value: +"issue identifier or id, e.g. \"WEB-12\""
    • addedInput schema / properties / project / description
      Added value: +"project key or id, e.g. \"WEB\""
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the mutation profile; the description adds the 25 MB ceiling, the base64 payload requirement, and the fact that a ready-to-paste markdown link is returned. It does not cover permission requirements or what happens on filename collisions, but it carries far more than the annotations do.

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 purpose, then the payload constraint, then the return-handling instruction. No filler.

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 no output schema, the description supplies the size limit and explains the return value, which is the main gap it needed to close. The one remaining ambiguity is target selection among issue/project/comment_id.

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 the schema already documents all six parameters; the description's added detail on content_base64 is mostly a restatement plus the useful size limit. It does not clarify how issue, project, and comment_id should be combined.

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 ('Upload a file and attach it') plus the three attachment targets, which distinguishes it cleanly from siblings like list_attachments and delete_attachment.

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?

Gives clear operative context (attach to an issue, project, or comment) and tells the agent what to do after the call. It stops short of naming alternatives or stating exclusions, such as whether exactly one target is allowed.

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.