Skip to main content
Glama

get_tasks_by_priority

Retrieve tasks from Dida365 based on their priority level (none, low, medium, or high) to focus on important items and organize workflow efficiently.

Instructions

按优先级获取任务。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priorityYes优先级(0=无, 1=低, 3=中, 5=高)

Implementation Reference

  • The actual implementation of the get_tasks_by_priority tool logic in the client class.
    def get_tasks_by_priority(self, priority: int) -> List[Dict]:
        """按优先级获取任务 (0=无, 1=低, 3=中, 5=高)"""
        all_tasks = self.get_all_tasks()
        return [task for task in all_tasks if task.get("priority", 0) == priority]
  • The registration of the get_tasks_by_priority tool definition in the MCP server.
    {
        "name": "get_tasks_by_priority",
        "description": "按优先级获取任务。",
        "inputSchema": {
            "type": "object",
            "properties": {
                "priority": {
                    "type": "integer",
                    "description": "优先级(0=无, 1=低, 3=中, 5=高)",
                    "enum": [0, 1, 3, 5],
                }
            },
            "required": ["priority"],
        },
    },

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/Martinqi826/dida-mcp'

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