Skip to main content
Glama

AI Note MCP Server

by ainote-dev

update_task

Modify an existing task's details, including content, importance, or completion status, using the task ID to ensure accurate updates in AI Note MCP Server.

Instructions

Update an existing task

Input Schema

NameRequiredDescriptionDefault
completed_atNoMark as completed (ISO format) or null to uncomplete
contentNoNew task content
idYesTask ID
is_importantNoUpdate important status

Input Schema (JSON Schema)

{ "properties": { "completed_at": { "description": "Mark as completed (ISO format) or null to uncomplete", "type": "string" }, "content": { "description": "New task content", "type": "string" }, "id": { "description": "Task ID", "type": "string" }, "is_important": { "description": "Update important status", "type": "boolean" } }, "required": [ "id" ], "type": "object" }

Implementation Reference

  • Handler function for the 'update_task' tool. It forwards the arguments to apiClient.callTool('update_task') and returns the result.
    handler: async (args, { apiClient }) => { const result = await apiClient.callTool('update_task', args); return result; // Return full result with { content: [...] } }
  • Tool definition function returning the name, description, and inputSchema for 'update_task'.
    function updateTaskDefinition() { return { name: 'update_task', description: 'Update an existing task', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Task ID' }, content: { type: 'string', description: 'New task content' }, is_important: { type: 'boolean', description: 'Update important status' }, completed_at: { type: 'string', description: 'Mark as completed (ISO format) or null to uncomplete' } }, required: ['id'] } }; }
  • Registration of the 'update_task' tool within the getSharedTools() array, combining its definition and handler.
    { definition: updateTaskDefinition(), handler: async (args, { apiClient }) => { const result = await apiClient.callTool('update_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