get_task_list
Retrieve and filter tasks managed by the MCP-A2A-Gateway server. View tasks by status, sort by update time, and control the number returned for monitoring and management.
Instructions
Retrieves a list of tasks being managed by the server.
Args: status (Literal["all", "completed", "running", "error", "pending", "streaming", "cancelled"]): Filters tasks by their status. Defaults to "all". sort (Literal["Descending", "Ascending"]): Sorts tasks by their last update time. Defaults to "Descending". number (int): The maximum number of tasks to return. Defaults to 10. ctx (Context): The MCP context for logging.
Returns: List[Dict[str, Any]]: A list of tasks, each represented as a dictionary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | all | |
| sort | No | Descending | |
| number | No |