Skip to main content
Glama

list_tasks

Retrieve and filter tasks from your Notion workflow database by status, priority, tag, or project to manage your tasks effectively.

Instructions

列出工作流库中的任务。

Args: status: 按状态过滤,可选值:待办 | 进行中 | 完成 | 搁置 priority: 按优先级过滤,可选值:🔴 紧急 | 🟡 高 | 🟢 普通 tag: 按标签过滤,精确匹配单个标签名称 limit: 返回条数,默认 20,最大 100 project: 按项目过滤,精确匹配项目名称

Returns: 任务列表(字典格式)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNo
priorityNo
tagNo
limitNo
projectNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The MCP tool handler for 'list_tasks' defined in tools/workflow.py, which translates input arguments and calls the underlying client.list_tasks.
    def list_tasks(
        status: Optional[str] = None,
        priority: Optional[str] = None,
        tag: Optional[str] = None,
        limit: int = 20,
        project: Optional[str] = None,
    ) -> list[dict]:
        """
        列出工作流库中的任务。
    
        Args:
            status:   按状态过滤,可选值:待办 | 进行中 | 完成 | 搁置
            priority: 按优先级过滤,可选值:🔴 紧急 | 🟡 高 | 🟢 普通
            tag:      按标签过滤,精确匹配单个标签名称
            limit:    返回条数,默认 20,最大 100
            project:  按项目过滤,精确匹配项目名称
    
        Returns:
            任务列表(字典格式)
        """
        client = get_client()
        tasks = client.list_tasks(
            status=TaskStatus(status) if status else None,
            priority=TaskPriority(priority) if priority else None,
            tag=tag,
            limit=limit,
            project=project,
        )
        return [t.model_dump() for t in tasks]
  • server.py:36-36 (registration)
    Registration of the 'list_tasks' tool in the MCP server.
    mcp.tool(list_tasks)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool returns a task list in dictionary format, which is helpful, but doesn't address important behavioral aspects like whether this is a read-only operation, what permissions are required, whether results are paginated, or how filtering logic works (AND/OR). For a list/filter tool with zero annotation coverage, this is insufficient.

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 well-structured with clear sections (Args, Returns) and uses bullet-like formatting for parameters. Every sentence earns its place by providing essential information. It could be slightly more front-loaded by stating the filtering capabilities earlier, but overall it's efficient and organized.

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?

Given the tool's moderate complexity (5 filtering parameters), no annotations, but with an output schema (implied by 'Returns'), the description is reasonably complete. It thoroughly documents all parameters and mentions the return format. The main gap is lack of behavioral context (permissions, pagination, filtering logic) which would be helpful despite the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, but the description compensates excellently by providing clear semantic explanations for all 5 parameters. It specifies allowed values for 'status' and 'priority', explains that 'tag' and 'project' use exact matching, and provides default/maximum values for 'limit'. This adds substantial value beyond the bare schema.

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 as '列出工作流库中的任务' (list tasks in the workflow library), which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'search_tasks' or 'get_today_tasks', which appear to have overlapping functionality. The purpose is clear but lacks sibling differentiation.

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 'search_tasks' or 'get_today_tasks'. It simply describes what the tool does without any context about appropriate use cases, prerequisites, or exclusions. This leaves the agent without direction on tool selection.

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/wauwaya/notion-workflow-mcp'

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