Skip to main content
Glama

download_attachment

Download a Jira issue or Confluence page attachment to disk, returning its absolute path, metadata, and image flag so agents can inspect files directly.

Instructions

Download an attachment from a Jira issue or Confluence page to disk and return its absolute path, metadata, and image flag for direct multimodal agent inspection.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoOptional target Atlassian site ID, name, or URL.
page_idNoConfluence page ID. Provide either issue_key or page_id.
dest_dirNoOptional destination directory (defaults to configured download_dir).
issue_keyNoJira issue key (e.g. ENG-42). Provide either issue_key or page_id.
attachment_idNoOptional attachment ID or filename to download (defaults to first attachment).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 does substantial work: it discloses that files land on disk, that the return includes an absolute path, metadata, and an image flag, and that images are intended for multimodal inspection. It omits operational details such as overwrite behavior when a file already exists, size limits, and any permission requirements.

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?

A single front-loaded sentence with no filler; every clause (source, destination, return payload, image flag rationale) conveys information an agent needs.

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, all-optional tool with no output schema, the description covers the source choice, destination default, and return shape, which is most of what is needed. Missing are the failure/overwrite semantics that matter when writing files to disk.

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 site, dest_dir, attachment_id, and the issue_key/page_id pair are already documented, including the "provide either" rule and the default-to-first-attachment behavior. The description adds no format or syntax detail beyond the schema, so the baseline 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 ("Download an attachment") plus both supported sources (Jira issue or Confluence page), and even names the destination ("to disk"). The verb alone separates it from the upload_* siblings, so an agent can pick it without opening the schema.

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?

The description and schema together imply the selection rule (issue_key or page_id), but there is no explicit when-to-use framing, no statement of when not to use it, and no pointer to any alternative such as fetching an issue first to enumerate attachments. Usage must be inferred rather than read.

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