Skip to main content
Glama
Redmine MCP Server

Redmine MCP Server

by popper2710

get_attachment

Retrieve metadata for a specific Redmine attachment by its ID, including filename, size, MIME type, author, and download URL. Use it to inspect or validate files linked to issues before downloading.

Instructions

Get metadata about a specific attachment.

Args:
    attachment_id: The ID of the attachment to retrieve

Returns:
    Dictionary containing attachment metadata:
    - id: Attachment ID
    - filename: Original filename
    - filesize: File size in bytes
    - content_type: MIME type of the file
    - description: Optional description
    - content_url: URL to download the file
    - author: Author information (id, name)
    - created_on: Creation timestamp

Note:
    To get attachment IDs, use get_issue() which includes attachments
    in the response when they exist on the issue.

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": {
      "attachment_id": "<attachment_id>"
    },
    "name": "get_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
attachment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 burden. It discloses the full returned field set and the metadata-only nature (no side effects implied by "Get"), but says nothing about permissions, behavior when the ID does not exist, or whether content_url is pre-signed/expiring.

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?

Docstring structure is front-loaded with the purpose, then Args/Returns/Note, and every listed return field is potentially actionable. Slightly verbose but nothing is genuinely wasted.

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?

There is no output schema, and the Returns block fully compensates by enumerating metadata fields including content_url. For a single-parameter read tool this is nearly complete; only failure-mode behavior is unaddressed.

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 0%, so the schema only supplies an integer named "Attachment Id". The description adds real meaning by explaining where IDs come from (get_issue responses), but adds no format hints (e.g. whether the ID is global or issue-scoped) beyond that.

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 ("Get metadata about a specific attachment") and explicitly scopes the result as metadata rather than file content, which implicitly separates it from download_attachment. It never names a sibling, so the differentiation is inferred rather than stated.

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 Note gives a useful prerequisite chain: "use get_issue() which includes attachments in the response", telling the agent how to obtain a valid ID. It offers no guidance on when to choose this over download_attachment or update_attachment, and no exclusion conditions.

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