Skip to main content
Glama
snowild

Redmine MCP Server

by snowild

update_issue_status

Update the status of a Redmine issue by specifying either status ID or name, with optional notes to track changes.

Instructions

更新議題狀態

Args:
    issue_id: 議題 ID
    status_id: 新的狀態 ID(與 status_name 二選一)
    status_name: 新的狀態名稱(與 status_id 二選一)
    notes: 更新備註(可選)

Returns:
    更新結果訊息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_idYes
status_idNo
status_nameNo
notesNo

Implementation Reference

  • Implementation of the update_issue_status MCP tool. The @mcp.tool() decorator registers it with the FastMCP server. The function updates a Redmine issue's status using the Redmine client, supporting both status ID and name lookup, with optional notes. Includes error handling and confirmation of the update.
    @mcp.tool()
    def update_issue_status(issue_id: int, status_id: int = None, status_name: str = None, notes: str = "") -> str:
        """
        更新議題狀態
        
        Args:
            issue_id: 議題 ID
            status_id: 新的狀態 ID(與 status_name 二選一)
            status_name: 新的狀態名稱(與 status_id 二選一)
            notes: 更新備註(可選)
        
        Returns:
            更新結果訊息
        """
        try:
            client = get_client()
            
            # 處理狀態參數
            final_status_id = status_id
            if status_name:
                final_status_id = client.find_status_id_by_name(status_name)
                if not final_status_id:
                    return f"找不到狀態名稱:「{status_name}」\n\n可用狀態:\n" + "\n".join([f"- {name}" for name in client.get_available_statuses().keys()])
            
            if not final_status_id:
                return "錯誤:必須提供 status_id 或 status_name 其中一個參數"
            
            # 準備更新資料
            update_data = {'status_id': final_status_id}
            if notes.strip():
                update_data['notes'] = notes.strip()
            
            # 執行更新
            client.update_issue(issue_id, **update_data)
            
            # 取得更新後的議題資訊確認
            updated_issue = client.get_issue(issue_id)
            
            result = f"""議題狀態更新成功!
    
    議題: #{issue_id} - {updated_issue.subject}
    新狀態: {updated_issue.status.get('name', 'N/A')}"""
    
            if notes.strip():
                result += f"\n備註: {notes}"
                
            return result
            
        except RedmineAPIError as e:
            return f"更新議題狀態失敗: {str(e)}"
        except Exception as e:
            return f"系統錯誤: {str(e)}"
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While '更新' (update) implies a mutation, it doesn't specify required permissions, whether the operation is reversible, rate limits, or what happens to other issue fields. The return value description ('更新結果訊息' - update result message) is vague about format or error handling.

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 description is efficiently structured with a clear purpose statement followed by Args and Returns sections. Each sentence serves a purpose - no redundant information. The bilingual nature (Chinese purpose, English section headers) is slightly unconventional but doesn't harm clarity.

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 4 parameters and no annotations/output schema, the description covers basic purpose and parameters adequately. However, it lacks important context about permissions, side effects, error conditions, and detailed return format that would be needed for robust agent usage.

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?

With 0% schema description coverage, the description adds significant value by explaining all 4 parameters in Chinese. It clarifies the issue_id requirement, the status_id/status_name mutual exclusivity, and notes being optional. This compensates well for the schema's lack of descriptions.

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?

The description clearly states the verb ('更新議題狀態' - update issue status) and resource ('議題' - issue), making the purpose immediately understandable. It doesn't explicitly differentiate from siblings like 'close_issue' or 'update_issue_content', but the focus on status updates provides reasonable distinction.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'close_issue' or 'update_issue_content'. It mentions the parameter relationship (status_id vs status_name) but doesn't address broader usage context, prerequisites, or when-not-to-use scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/snowild/redmine-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server