list_tasks
View all tasks in your task management system to track progress and organize your workflow.
Instructions
List all tasks
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/task_mcp_server/server.py:100-121 (handler)The handler implementation for the list_tasks tool, which formats and returns the list of current tasks.
elif name == "list_tasks": if not tasks: return [ types.TextContent( type="text", text="No tasks found. Add a task to get started!" ) ] task_list = "📋 Task List:\n\n" for task_id, task in tasks.items(): status = "✓" if task["completed"] else "○" task_list += f"{status} [{task_id}] {task['title']}\n" if task["description"]: task_list += f" └─ {task['description']}\n" return [ types.TextContent( type="text", text=task_list ) ] - src/task_mcp_server/server.py:36-43 (registration)The registration of the list_tasks tool within the MCP server's list_tools handler.
types.Tool( name="list_tasks", description="List all tasks", inputSchema={ "type": "object", "properties": {} } ),