Skip to main content
Glama

create_note

Create text notes with title and content for organized storage and easy access through a simple note-taking system.

Instructions

Create a new note

Input Schema

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

Implementation Reference

  • Handler for the 'create_note' tool: extracts title and content, generates new ID, stores the note in memory, returns confirmation.
    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}`, }, ], } }
  • src/index.ts:103-120 (registration)
    Registration of 'create_note' tool in ListTools handler, including 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'], }, },
  • Input schema for 'create_note': requires title and content as strings.
    inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Title of the note', }, content: { type: 'string', description: 'Text content of the note', }, }, required: ['title', 'content'], },
  • In-memory notes store used by the create_note handler.
    const notes: { [id: string]: Note } = { '1': { title: 'First Note', content: 'This is note 1' }, '2': { title: 'Second Note', content: 'This is note 2' }, }

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/La-fe/seo-mcp'

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