Skip to main content
Glama
AnuragRai017

Database Updater MCP Server

create_note

Add new notes to databases by specifying title and content. This tool enables structured data entry for database management systems.

Instructions

Create a new note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the note
contentYesText content of the note

Implementation Reference

  • Handler for the create_note tool. It extracts title and content from arguments, validates them, generates a new ID, stores the note in the in-memory notes object, and returns a success message with the new note ID and title.
    case "create_note": {
      const title = String(request.params.arguments?.title);
      const content = String(request.params.arguments?.content);
      if (!title || !content) {
        throw new Error("Title and content are required");
      }
    
      const id = String(Object.keys(notes).length + 1);
      notes[id] = { title, content };
    
      return {
        content: [{
          type: "text",
          text: `Created note ${id}: ${title}`
        }]
      };
    }
  • Input schema for the create_note tool, defining an object with required 'title' and 'content' string properties.
    inputSchema: {
      type: "object",
      properties: {
        title: {
          type: "string",
          description: "Title of the note"
        },
        content: {
          type: "string",
          description: "Text content of the note"
        }
      },
      required: ["title", "content"]
    }
  • src/index.ts:107-124 (registration)
    Registration of the 'create_note' tool within the ListToolsRequestSchema handler, specifying name, description, and input schema.
    {
      name: "create_note",
      description: "Create a new note",
      inputSchema: {
        type: "object",
        properties: {
          title: {
            type: "string",
            description: "Title of the note"
          },
          content: {
            type: "string",
            description: "Text content of the note"
          }
        },
        required: ["title", "content"]
      }
    },

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other 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/AnuragRai017/database-updater-MCP-Server'

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