Skip to main content
Glama
Redmine MCP Server

Redmine MCP Server

by popper2710

download_attachment

Download a Redmine attachment by ID and save it to a specified path, creating parent directories automatically.

Instructions

Download an attachment and save it to the specified path.

Args:
    attachment_id: The ID of the attachment to download
    save_path: Absolute path where the file should be saved

Returns:
    Dictionary containing:
    - success: True if download succeeded
    - file_path: The path where the file was saved
    - filename: Original filename from Redmine
    - size: File size in bytes

Note:
    The parent directory will be created automatically if it doesn't exist.
    The caller is responsible for validating save_path to prevent
    path traversal attacks or writing to sensitive locations.

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>",
      "save_path": "<save_path>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_pathYes
attachment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 disclosure burden. It does credibly disclose two behaviors an agent could not otherwise know: the parent directory is auto-created, and the caller bears responsibility for validating save_path against traversal/sensitive locations. It is silent on what happens if the target file already exists, on failure/error modes beyond a success flag, and on any auth constraints.

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?

The one-line purpose is front-loaded, then Args/Returns/Note sections in a predictable structure. The Returns block is arguably redundant with what an agent would learn from the actual response, but overall there is little wasted wording.

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 two-parameter download tool with no output schema and no annotations, the description covers the action, both parameters, the return shape, and the directory-creation side effect. The remaining gaps are overwrite semantics and error/exception behavior, which matter for a file-writing operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must supply all parameter meaning, and it does: attachment_id is 'the ID of the attachment to download' and save_path is 'absolute path where the file should be saved'. The 'absolute' constraint is a real addition beyond the bare string type, though no format example or path convention is given.

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 ('Download an attachment and save it to the specified path'), making the download-to-disk action unmistakable. It does not distinguish itself from nearby siblings such as get_attachment (likely metadata-only) or upload_attachment, so an agent must infer the boundary rather than read it.

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?

Usage is implied by the purpose sentence, and the Note adds a useful precondition (validate save_path yourself for path traversal). There is no explicit when-to-use versus get_attachment guidance, no statement about overwrite behavior, and no mention of authentication or permission requirements.

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