Skip to main content
Glama

todo_create

Create a new task list with a title and optional description using the MCP TODO Checklist Server for organized task management and tracking.

Instructions

Cria uma nova lista de tarefas

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNoDescrição da lista (opcional)
titleYesTítulo da lista

Implementation Reference

  • Handler for the todo_create tool. Parses arguments using createSchema, creates a new checklist via ChecklistService, and returns a success message.
    case "todo_create": { console.error('DEBUG - Processing todo_create'); const params = createSchema.parse(args); const newList = await checklistService.createChecklist({ title: params.title, description: params.description, owner: 'current-user', items: [] }); return { content: [{ type: "text", text: `Lista "${params.title}" criada com sucesso!` }] }; }
  • Zod schema for validating input parameters of todo_create (title required, description optional).
    const createSchema = z.object({ title: z.string(), description: z.string().optional() });
  • src/index.ts:99-110 (registration)
    Tool registration in ListTools response, defining name, description, and input schema for MCP protocol.
    { name: "todo_create", description: "Cria uma nova lista de tarefas", inputSchema: { type: "object", properties: { title: { type: "string", description: "Título da lista" }, description: { type: "string", description: "Descrição da lista (opcional)" }, }, required: ["title"], }, },
  • Core helper method in ChecklistService that creates a new checklist with generated ID, timestamps, and empty items list, then saves it to storage.
    async createChecklist(data: Omit<Checklist, 'id' | 'createdAt' | 'updatedAt'>): Promise<Checklist> { const now = new Date(); const checklist: Checklist = { ...data, id: crypto.randomUUID(), createdAt: now, updatedAt: now, items: [] }; await this.storage.save(`checklist:${checklist.id}`, checklist); return checklist; }

Other Tools

Related 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/hevener10/mcp-todo-checklist'

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