Skip to main content
Glama

jira_add_attachment

Attach a file stored in /tmp/mcp-attachments/ to a JIRA issue by providing the issue key and file name.

Instructions

Attach a file to a JIRA issue. The file must be placed in /tmp/mcp-attachments/

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>",
      "fileName": "<fileName>"
    },
    "name": "jira_add_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNameYesName of the file in /tmp/mcp-attachments/ (e.g. handoff.md)
issueKeyYesJIRA issue key (e.g. DOC-3143)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully reveals that the server reads from a local staging directory rather than accepting file content, but it says nothing about permissions, size limits, what happens on failure, or whether the attachment can be removed.

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?

Two short sentences, front-loaded with the action and immediately followed by the hard constraint. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no annotations and no output schema, the essentials of the input side are covered. However, the description does not describe what is returned on success (e.g. attachment id or metadata) or what a caller should expect if the file is missing.

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 both issueKey and fileName are already documented with examples. The description only reinforces the file-location requirement for fileName and adds no new semantics for issueKey; baseline 3 is appropriate.

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?

States a specific verb and resource ('Attach a file to a JIRA issue'), which is unambiguous and inherently distinct from siblings like jira_add_comment or jira_create_issue. It stops short of explicitly contrasting itself with any alternative.

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?

Provides an operational pre-condition (the file must already exist at /tmp/mcp-attachments/), which implies usage but never states when to choose this tool versus alternatives such as adding a comment with a link. No when-not guidance is given.

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