Skip to main content
Glama

Add attachment

jira_add_attachment

Upload a local file (up to 10 MB) to a Jira issue as an attachment, optionally overriding the filename, to share supporting documents in issue context.

Instructions

Upload a local file as an attachment to an issue (max 10 MB). Returns {id, filename, size}.

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": {
      "issueKey": "<issueKey>",
      "filePath": "<filePath>"
    },
    "name": "jira_add_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNameNoOverride the file name shown in Jira (defaults to the local file name)
filePathYesAbsolute or relative path of the local file to upload
issueKeyYesIssue key, e.g. 'ABC-123'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does contribute real behavioral facts: the 10 MB size ceiling and the return payload {id, filename, size}. It omits required permissions, whether Jira attachment settings must be enabled, and what happens on duplicate filenames or oversized files.

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 with the operation and size constraint front-loaded and no filler. The return-value clause is compact and earns its place given there is no output schema.

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 three-parameter mutation tool with no annotations and no output schema, the description covers purpose, the key size limit, and the return shape. The remaining gap is authorization/permission context and failure behavior, which matters more here because no annotations exist to cover it.

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 three parameters, including the fileName override default and the issueKey format, are already documented in the schema. The description adds nothing beyond restating that a local file is uploaded, so the baseline of 3 applies.

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 local file as an attachment to an issue) with the scope of the operation made explicit. It is unambiguously distinct from siblings such as jira_add_comment and jira_add_remote_link, which add different artifact types.

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

Usage Guidelines2/5

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

The description contains no when-to-use or when-not-to-use guidance and names no alternatives or prerequisites. The one constraint given (max 10 MB) is a limit, not routing guidance, so an agent gets no help choosing this tool over related add/link tools.

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