Implementation
gradeNot graded
gradeNot graded
list-todosAnswer
Returns all todos as a JSON array. Each item has: id, name, description, createdAt, dueBy (optional ISO string), isComplete, priority (High/Medium/Low).
View tool JSON
{
"name": "list-todos",
"kind": "answer",
"impl": "imperative",
"description": "Returns all todos as a JSON array. Each item has: id, name, description, createdAt, dueBy (optional ISO string), isComplete, priority (High/Medium/Low).",
"page": "/webmcp-todo-react/"
}add-todoAction
Creates a new todo item and adds it to the list.
View tool JSON
{
"name": "add-todo",
"kind": "act",
"impl": "imperative",
"description": "Creates a new todo item and adds it to the list.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The todo title."
},
"priority": {
"type": "string",
"enum": [
"High",
"Medium",
"Low"
],
"description": "Priority level."
},
"description": {
"type": "string",
"description": "Optional details about the todo."
},
"dueBy": {
"type": "string",
"description": "Optional ISO 8601 due date (e.g. 2025-12-31)."
}
},
"required": [
"name",
"priority"
]
},
"page": "/webmcp-todo-react/"
}remove-todoAction
Removes a todo item by its id.
View tool JSON
{
"name": "remove-todo",
"kind": "act",
"impl": "imperative",
"description": "Removes a todo item by its id.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The id of the todo to remove."
}
},
"required": [
"id"
]
},
"page": "/webmcp-todo-react/"
}complete-todoAction
Marks a todo as complete or incomplete.
View tool JSON
{
"name": "complete-todo",
"kind": "act",
"impl": "imperative",
"description": "Marks a todo as complete or incomplete.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The id of the todo."
},
"isComplete": {
"type": "boolean",
"description": "True to mark done, false to mark undone."
}
},
"required": [
"id",
"isComplete"
]
},
"page": "/webmcp-todo-react/"
}update-todoAction
Updates one or more fields of an existing todo. Only provide fields you want to change.
View tool JSON
{
"name": "update-todo",
"kind": "act",
"impl": "imperative",
"description": "Updates one or more fields of an existing todo. Only provide fields you want to change.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The id of the todo to update."
},
"name": {
"type": "string",
"description": "New name."
},
"description": {
"type": "string",
"description": "New description."
},
"dueBy": {
"type": "string",
"description": "New ISO 8601 due date, or empty string to clear."
},
"priority": {
"type": "string",
"enum": [
"High",
"Medium",
"Low"
],
"description": "New priority."
}
},
"required": [
"id"
]
},
"page": "/webmcp-todo-react/"
}