Skip to main content
Glama

list_tasks

Retrieve all tasks from the task management server to view current items and track progress.

Instructions

List all tasks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes the list_tasks tool by checking if tasks exist, formatting a markdown list of all tasks with status indicators, and returning as TextContent.
    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 ) ]
  • Registers the list_tasks tool in the @server.list_tools() handler, including name, description, and empty input schema.
    types.Tool( name="list_tasks", description="List all tasks", inputSchema={ "type": "object", "properties": {} } ),
  • Input schema for list_tasks tool: no required properties.
    inputSchema={ "type": "object", "properties": {} }

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/gvbigdata/MCP-Github-Deployment'

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