Skip to main content
Glama
ainote-dev

AI Note MCP Server

by ainote-dev

create_task

Generate tasks in AI Note by specifying content, due date, importance, and category. Enables task management through natural language integration with Claude Desktop.

Instructions

Create a new task in AI Note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
category_idNoCategory ID
contentYesTask content
due_dateNoDue date in ISO format
is_importantNoMark task as important

Implementation Reference

  • The handler function for the 'create_task' tool. It proxies the tool arguments to the backend API via apiClient.callTool('create_task', args) and returns the result.
    handler: async (args, { apiClient }) => {
      const result = await apiClient.callTool('create_task', args);
      return result;  // Return full result with { content: [...] }
    }
  • Schema definition for the 'create_task' tool, specifying the input parameters: content (required), is_important, due_date, category_id.
    function createTaskDefinition() {
      return {
        name: 'create_task',
        description: 'Create a new task in AI Note',
        inputSchema: {
          type: 'object',
          properties: {
            content: {
              type: 'string',
              description: 'Task content'
            },
            is_important: {
              type: 'boolean',
              description: 'Mark task as important'
            },
            due_date: {
              type: 'string',
              description: 'Due date in ISO format'
            },
            category_id: {
              type: 'string',
              description: 'Category ID'
            }
          },
          required: ['content']
        }
      };
    }
  • Registers the shared tools (including 'create_task') into the MCP tool registry via registry.registerMany(getSharedTools()).
    function registerTools(registry, { includeChatGpt }) {
      registry.registerMany(getSharedTools());
    
      if (includeChatGpt) {
        registry.registerMany(getChatGptTools());
      }
    }
  • The tool object for 'create_task' registered within the getSharedTools() array.
    {
      definition: createTaskDefinition(),
      handler: async (args, { apiClient }) => {
        const result = await apiClient.callTool('create_task', args);
        return result;  // Return full result with { content: [...] }
      }
    },
Install Server

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