Skip to main content
Glama
snowild

Redmine MCP Server

by snowild

get_my_issues

Retrieve issues assigned to you in Redmine projects. Filter by status (open, closed, all) and set result limits to manage your workload effectively.

Instructions

取得指派給我的議題列表

Args:
    status_filter: 狀態篩選 ("open", "closed", "all")
    limit: 最大回傳數量 (預設 20,最大 100)

Returns:
    我的議題列表

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
status_filterNoopen
limitNo

Implementation Reference

  • The handler function for the 'get_my_issues' MCP tool. It retrieves issues assigned to the current user from Redmine, filters by status, limits the results, and formats them into a readable table.
    @mcp.tool()
    def get_my_issues(status_filter: str = "open", limit: int = 20) -> str:
        """
        取得指派給我的議題列表
        
        Args:
            status_filter: 狀態篩選 ("open", "closed", "all")
            limit: 最大回傳數量 (預設 20,最大 100)
        
        Returns:
            我的議題列表
        """
        try:
            client = get_client()
            
            # 先取得當前用戶資訊
            current_user = client.get_current_user()
            user_id = current_user['id']
            user_name = current_user.get('firstname', '') + ' ' + current_user.get('lastname', '')
            
            # 限制 limit 範圍
            limit = min(max(limit, 1), 100)
            
            # 設定查詢參數
            params = {
                'assigned_to_id': user_id,
                'limit': limit,
                'sort': 'updated_on:desc'
            }
            
            # 處理狀態篩選
            if status_filter == "open":
                params['status_id'] = 'o'  # Redmine API 使用 'o' 表示開放狀態
            elif status_filter == "closed":
                params['status_id'] = 'c'  # Redmine API 使用 'c' 表示關閉狀態
            
            # 取得議題列表
            issues = client.list_issues(**params)
            
            if not issues:
                return f"沒有找到指派給 {user_name.strip()} 的{status_filter}議題"
            
            # 格式化結果
            result = f"""指派給 {user_name.strip()} 的議題:
    狀態篩選: {status_filter}
    找到 {len(issues)} 個議題:
    
    {"ID":<8} {"標題":<35} {"專案":<15} {"狀態":<12} {"更新時間":<10}
    {"-"*8} {"-"*35} {"-"*15} {"-"*12} {"-"*10}"""
    
            for issue in issues:
                title = issue.subject[:32] + "..." if len(issue.subject) > 35 else issue.subject
                project_name = issue.project.get('name', 'N/A')[:13]
                status = issue.status.get('name', 'N/A')[:10]
                updated = issue.updated_on[:10] if issue.updated_on else 'N/A'
                
                result += f"\n{issue.id:<8} {title:<35} {project_name:<15} {status:<12} {updated:<10}"
            
            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?

No annotations are provided, so the description carries full burden for behavioral disclosure. While it mentions the tool retrieves a list, it doesn't describe important behavioral aspects like whether this is a read-only operation (implied but not stated), authentication requirements, rate limits, pagination behavior (only mentions limit parameter), error conditions, or response format details. The description is minimal and lacks behavioral context.

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 appropriately concise with clear sections (Args, Returns) and no wasted words. The main purpose is stated upfront, followed by parameter details. While efficient, the 'Returns' section is somewhat redundant ('我的議題列表' essentially restates the purpose) and could be more informative about the return structure.

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 2-parameter tool with no annotations and no output schema, the description is minimally adequate. It covers the basic purpose and parameters but lacks important context: no output format details, no behavioral traits, no differentiation from sibling tools, and no error handling information. The description meets minimum requirements but leaves significant gaps for an agent to use the tool effectively.

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 (titles only, no descriptions), the description adds significant value by explaining both parameters: 'status_filter' with valid values ('open', 'closed', 'all') and 'limit' with default (20) and maximum (100) values. This compensates well for the schema's lack of descriptions, though it doesn't explain parameter interactions or edge cases.

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 tool's purpose: '取得指派給我的議題列表' (Get my assigned issues list). It specifies the verb ('取得' - get) and resource ('議題列表' - issues list) with the scope '指派給我的' (assigned to me). However, it doesn't explicitly differentiate from sibling tools like 'list_project_issues' or 'search_issues' which might also retrieve issues with different scopes.

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. With siblings like 'list_project_issues', 'search_issues', and 'get_issue', there's no indication of when this specific tool (for issues assigned to me) is preferred over those other issue-retrieval tools. The description only states what it does, not when to choose it.

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