Skip to main content
Glama
mcp-server-redmine

mcp-server-redmine

by jesusr00

redmine_upload_attachment

Upload a local file to Redmine and receive an attachment token for attaching it to an issue or project Files module in later API calls.

Instructions

[Alpha] Upload a local file to Redmine and get an attachment token. Reads the file at the given absolute path and posts its content to Redmine's attachment API. Pass the returned token in the 'uploads' array of redmine_create_issue or redmine_update_issue to attach the file to an issue, or to redmine_upload_file to add it to a project's Files module. If the server is configured with REDMINE_UPLOAD_DIR, only files inside that directory can be uploaded.

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": {
      "file_path": "<file_path>"
    },
    "name": "redmine_upload_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
file_pathYes
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv0.7.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations, so the description carries the burden; it discloses that the file is read from disk at an absolute path and its content POSTed to Redmine's attachment API, which is meaningful side-effect information. It omits file size limits, authentication/permission requirements, and what error surfaces on rejection, which are relevant for an upload operation.

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?

Four sentences, front-loaded with the outcome, then mechanics, then the follow-up routing, then the constraint. No filler and no repetition of the schema.

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, but the description explains the return value (an attachment token) and how to consume it, which is the key downstream fact. The remaining gap is parameter-level detail for filename and content_type rather than overall workflow understanding.

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 description coverage is 0%, so the description must compensate, and it only partially does: it clarifies that file_path is an absolute local path, which the schema does not say. The filename and content_type parameters are never mentioned, leaving two of three parameters semantically undocumented.

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?

Specific verb and resource: uploads a local file to Redmine and returns an attachment token. It also distinguishes itself from the similarly named sibling redmine_upload_file by explaining that this tool produces a token while that one consumes it to populate a project's Files module.

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 routing: the returned token goes in the 'uploads' array of redmine_create_issue or redmine_update_issue, or to redmine_upload_file for project Files. It also states a hard precondition — if REDMINE_UPLOAD_DIR is configured, only files inside it may be uploaded.

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