Skip to main content
Glama
snowild

Redmine MCP Server

by snowild

get_time_entry_activities

Retrieve available time tracking activities from Redmine to categorize and log work hours accurately in project management.

Instructions

取得所有可用的時間追蹤活動列表

Returns:
    格式化的時間追蹤活動列表

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for get_time_entry_activities. Fetches activities from client and formats them into a readable string table.
    @mcp.tool()
    def get_time_entry_activities() -> str:
        """
        取得所有可用的時間追蹤活動列表
        
        Returns:
            格式化的時間追蹤活動列表
        """
        try:
            client = get_client()
            activities = client.get_time_entry_activities()
            
            if not activities:
                return "沒有找到時間追蹤活動"
            
            result = "可用的時間追蹤活動:\n\n"
            result += f"{'ID':<5} {'名稱':<20} {'預設':<8}\n"
            result += f"{'-'*5} {'-'*20} {'-'*8}\n"
            
            for activity in activities:
                is_default = "是" if activity.get('is_default', False) else "否"
                result += f"{activity['id']:<5} {activity['name']:<20} {is_default:<8}\n"
            
            return result
            
        except RedmineAPIError as e:
            return f"取得時間追蹤活動失敗: {str(e)}"
        except Exception as e:
            return f"系統錯誤: {str(e)}"
  • RedmineClient method that performs the API call to retrieve time entry activities from Redmine server.
    def get_time_entry_activities(self) -> List[Dict[str, Any]]:
        """取得時間追蹤活動列表"""
        response = self._make_request('GET', '/enumerations/time_entry_activities.json')
        return response.get('time_entry_activities', [])
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions that the tool returns a '格式化的時間追蹤活動列表' (formatted time tracking activity list), which hints at the output format, but doesn't cover critical aspects like whether it's a read-only operation, potential rate limits, error conditions, or authentication needs. This leaves significant gaps for a tool with no annotation support.

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 concise and front-loaded, with the main purpose stated clearly in the first sentence. The second sentence adds value by specifying the return format. There's no unnecessary information, and both sentences contribute meaningfully to understanding the tool.

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?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but minimal. It covers the basic purpose and output format, which is sufficient for a straightforward list-retrieval tool. However, it lacks details on behavioral aspects like authentication or error handling, which would enhance completeness despite the low complexity.

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?

The tool has 0 parameters, and the input schema coverage is 100% (as there are no parameters to describe). The description doesn't need to add parameter semantics, so it meets the baseline expectation. No additional parameter information is required or provided.

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 all available time tracking activity lists). It specifies the verb ('取得' - get) and resource ('時間追蹤活動列表' - time tracking activity lists), making the intent unambiguous. However, it doesn't differentiate from sibling tools, as none appear to be directly related to time tracking activities.

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. It lacks context about prerequisites, such as whether authentication is required or if there are any limitations. While sibling tools include issue-related functions, there's no explicit comparison or exclusion criteria mentioned.

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