Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_download_redmine_attachment

Download a Redmine issue attachment to local disk by ID or URL, returning the saved path, metadata, and text preview for supported files.

Instructions

Download a file attachment from a Redmine issue to local disk (e.g. an issue's SQL script, spreadsheet, or document). Accepts the attachment id or a Redmine attachment download URL. Returns the saved file path, metadata, and — for text-like files — a content preview. Requires REDMINE_API_KEY.

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": "<attachment>"
    },
    "name": "erpnext_download_redmine_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_dirNoDirectory to save into. Default: OS temp/devflow-attachments/redmine.
attachmentYesAttachment id (e.g. "267232") or a download URL (e.g. ".../attachments/download/267232/Script.txt").
preview_charsNoMax characters of text preview (default: 4000).
include_text_previewNoFor text-like files, include a preview of the content in the response (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 disclose the key behaviors: it writes to local disk, defaults to an OS temp directory, returns the saved path plus metadata and an optional text preview, and requires REDMINE_API_KEY. It omits overwrite behavior, file-size limits, and failure modes, which keeps it short of a 5.

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 sentences, front-loaded with the action and target, then inputs, then returns and the auth prerequisite. Nothing is redundant and each sentence contributes a distinct fact.

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 4-parameter download tool with no output schema, the description covers the action, accepted identifier forms, the save location, the returned values (path, metadata, preview), and the API key requirement. The remaining gap is edge-case behavior such as naming collisions or large files.

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 every parameter already has an inline description including defaults for save_dir, preview_chars, and include_text_preview. The description only restates the flexible 'id or URL' input and the preview return, adding no new semantics; 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 a file attachment from a Redmine issue to local disk') and scopes it to Redmine, which cleanly separates it from the Taiga download sibling. The parenthetical examples (SQL script, spreadsheet, document) and the listed return values make the tool's identity unambiguous.

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 implies when the tool applies by giving example attachment types and accepted identifier forms, but it never states when to use it versus alternatives or any exclusions (e.g. size limits, unsupported attachment types). An agent can infer the trigger but gets no explicit routing guidance.

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