Skip to main content
Glama
La-fe
by La-fe

write_note

Create and store text notes with title and content for organized documentation and information capture.

Instructions

Write a new note

Input Schema

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

Implementation Reference

  • The execution handler for the 'write_note' tool. Extracts title and content from input arguments, validates presence, assigns a new sequential ID, stores the note in the in-memory 'notes' dictionary, and returns a textual success response.
    case 'write_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: `Wrote note ${id}: ${title}`,
          },
        ],
      }
    }
  • Input schema for the 'write_note' tool defining the expected object structure 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:121-138 (registration)
    The tool registration entry in the list of available tools returned by ListToolsRequestHandler, specifying name, description, and input schema for 'write_note'.
    {
      name: 'write_note',
      description: 'Write 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'],
      },
    },
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/La-fe/seo-mcp'

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