Skip to main content
Glama
Jira MCP Server

Jira MCP Server

by wince87

jira_view_attachment

Read-onlyIdempotent

Fetch an image attachment and return it inline so the model can view it without writing a file; supports image attachments up to 5MB. Use jira_download_attachment for non-images or larger files.

Instructions

Fetch an image attachment and return it inline so the model can see it (no file written). Image attachments only (mimeType image/*), capped at 5MB. For non-images or larger files use jira_download_attachment. Get the attachmentId from jira_get_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": {
      "attachmentId": "<attachmentId>"
    },
    "name": "jira_view_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
attachmentIdYesAttachment ID (from jira_get_attachments)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive behavior, so the description's real contribution is the delivery mechanic: content is returned inline for the model to view and no file is written to disk. It also discloses the size ceiling and the fallback path when that ceiling is hit. Minor gap: no mention of error behavior for corrupt or unsupported images, and no pagination/chunking note for near-limit files.

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 ordered by importance: what it does, what it accepts, then where to go instead. Every clause carries information; no restatement of the title or filler.

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

Completeness5/5

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

For a one-parameter, no-output-schema read tool this is fully sufficient: the constraints that determine success (mimeType, size) and the fallback for failure are both stated, and rich annotations already cover the safety profile.

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?

There is a single parameter and schema coverage is 100%, so the schema already documents attachmentId including its provenance. The description repeats that provenance ('from jira_get_attachments') without adding format, validation, or example detail. Baseline 3 is appropriate when the schema does the work.

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 ('Fetch an image attachment'), plus the distinctive outcome ('return it inline so the model can see it (no file written)'). This clearly separates it from jira_download_attachment, which is named directly.

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?

Explicit preconditions: image mimeType only, 5MB cap. Explicit routing for cases it does not handle ('For non-images or larger files use jira_download_attachment') and an explicit source for the required ID ('Get the attachmentId from jira_get_attachments'). Nothing is left to inference.

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

Deploy Server

Other Tools