Skip to main content
Glama

todo_create

Create a new task list with a title and optional description to organize and manage your to-do items.

Instructions

Cria uma nova lista de tarefas

Input Schema

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

Implementation Reference

  • Executes the todo_create tool: validates input using createSchema, calls checklistService.createChecklist to persist a new todo list, and returns a success response.
    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 tool (title required, description optional).
    const createSchema = z.object({ title: z.string(), description: z.string().optional() });
  • src/index.ts:99-110 (registration)
    Registers the todo_create tool in the listTools response, including name, description, and input schema.
    { 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 that creates and persists a new Checklist object with generated UUID, timestamps, and empty items array.
    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; }

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