Skip to main content
Glama
Redmine MCP Server

Redmine MCP Server

by popper2710

update_attachment

Update an attachment's filename or description in Redmine; file content cannot be changed, so delete and re-upload to replace the file.

Instructions

Update the metadata (filename and/or description) of an attachment.

The file content itself cannot be changed - delete the attachment and
upload a new file instead.

Args:
    attachment_id: The ID of the attachment to update (required)
    filename: New filename (optional)
    description: New description (optional). Pass an empty string to
        clear the description.

Returns:
    Dictionary containing the updated attachment metadata.

Note:
    Requires Redmine 3.4 or later.

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": "update_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
descriptionNo
attachment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It does disclose useful behavior the schema cannot: metadata-only mutation, content immutability, empty-string clearing of the description, the Redmine 3.4+ requirement, and the return shape. However it omits permissions/auth requirements, what happens when both optional fields are null, and any uniqueness or failure behavior for filename.

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?

The core constraint is front-loaded in the first two lines, and the trailing Args/Returns/Note sections earn their place because the schema has zero parameter descriptions and there is no output schema. No sentence is redundant.

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 three-parameter mutation tool with no annotations and no output schema, the definition covers purpose, field semantics, the content-immutability boundary, version requirement, and return value. It is only missing the operational context an agent would want before mutating: required permissions and behavior when no fields are provided.

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 compensate, and it does for the critical cases: attachment_id is marked required, and description documents the non-obvious empty-string-clears behavior that the schema's nullable string type does not convey. Filename's format or constraints (length, extension handling) are not elaborated, keeping it below a 5.

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?

The description states a specific verb and resource ('Update the metadata ... of an attachment') and immediately narrows the scope to filename and/or description. It also states what the tool cannot do ('file content itself cannot be changed'), which distinguishes it from upload_attachment and delete_attachment without requiring the agent to open any schema.

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?

It gives an explicit routing rule for the main ambiguous case: to change content, delete the attachment and upload a new file instead. It also explains the clear-vs-set semantics for the description field. It stops short of stating when to prefer get_attachment or what to do if no fields are supplied, so no explicit exclusions beyond the content case.

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