Skip to main content
Glama
mcp-server-redmine

mcp-server-redmine

by jesusr00

redmine_upload_file

Associates an uploaded file with a Redmine project's Files module by using a token from the attachment upload step.

Instructions

[Alpha] Add an already-uploaded file to a Redmine project's Files module. First call redmine_upload_attachment to get an upload token, then pass that token here to associate the file with the project.

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": {
      "project_id": "<project_id>",
      "token": "<token>"
    },
    "name": "redmine_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
filenameNo
project_idYes
version_idNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.8.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / project_id / anyOf
      Previous value: -[
      -  {
      -    "pattern": "^[a-zA-Z0-9_-]+$",
      -    "type": "string"
      -  },
      -  {
      -    "exclusiveMinimum": 0,
      -    "type": "integer"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[a-zA-Z0-9_-]+$",
      +    "type": "string"
      +  },
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  }
      +]
    • addedInput schema / properties / version_id / maximum
      Added value: +9007199254740991
  2. First observedv0.3.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the important two-step token flow, but omits what a write to the Files module actually does: required permissions, whether an existing entry with the same filename is overwritten, whether the token is single-use, and what is returned.

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?

Two sentences, front-loaded with the action and followed immediately by the prerequisite. No filler and no restatement of the title.

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

Completeness3/5

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

For a mutation tool with no annotations, no output schema, and five undocumented parameters, the definition covers the calling workflow but not the effects or risks of the write. version_id and the semantics of attaching to a project's Files module versus other containers are the main gaps.

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. It explains the least obvious required parameter, token, by tying it to redmine_upload_attachment, and project_id is implied by 'a Redmine project's Files module.' However, filename, description, and especially version_id remain unexplained in both schema and description.

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: 'Add an already-uploaded file to a Redmine project's Files module.' The phrase 'already-uploaded' plus the pointer to redmine_upload_attachment makes clear this is not the upload step, distinguishing it from the similarly named sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit ordered workflow: 'First call redmine_upload_attachment to get an upload token, then pass that token here.' That is actionable sequencing an agent could not infer otherwise. It does not say when to avoid this tool (e.g., attaching to an issue vs. a project Files module), but the positive guidance is strong.

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