Skip to main content
Glama
ainote-dev

AI Note MCP Server

by ainote-dev

delete_task

Remove a task from AI Note MCP Server by specifying its ID, performing a soft delete to maintain data integrity while managing task lists.

Instructions

Delete a task (soft delete)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTask ID to delete

Implementation Reference

  • Handler function for the 'delete_task' tool. It proxies the tool call to the apiClient, which likely handles the actual deletion logic.
    handler: async (args, { apiClient }) => { const result = await apiClient.callTool('delete_task', args); return result; // Return full result with { content: [...] } }
  • Schema definition for the 'delete_task' tool, specifying the input schema that requires a task 'id'.
    function deleteTaskDefinition() { return { name: 'delete_task', description: 'Delete a task (soft delete)', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Task ID to delete' } }, required: ['id'] } }; }
  • Registration of the 'delete_task' tool within the getSharedTools() array, including its definition and handler.
    { definition: deleteTaskDefinition(), handler: async (args, { apiClient }) => { const result = await apiClient.callTool('delete_task', args); return result; // Return full result with { content: [...] } } },

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/ainote-dev/ainote-mcp'

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