Skip to main content
Glama
iswalle

GetNote MCP Server

by iswalle

save_note

Create new notes in GetNote MCP Server, supporting plain text, links, and images. Upload images first for image notes, and track link processing progress.

Instructions

新建笔记(⚠️ 仅支持新建,不支持编辑已有笔记)。支持纯文本笔记(plain_text)、链接笔记(link)和图片笔记(img_text)。

图片笔记流程:先用 upload_image 上传图片获取 image_url,再调用此接口传入 image_urls。

返回值说明

  • 纯文本/图片笔记:返回 idtitlecreated_atupdated_at

  • 链接笔记(link):额外返回 tasks 数组(每项含 task_idurl)。链接笔记由 AI 异步处理,可用 get_note_task_progress 工具传入 task_id 查询处理进度。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNo笔记标题
contentNo笔记正文(Markdown 格式)。链接笔记不需要此字段
note_typeNo笔记类型:plain_text(纯文本,默认)、link(链接笔记)、img_text(图片笔记)plain_text
tagsNo标签列表(最多 5 个,每个不超过 10 个汉字)
parent_idNo父笔记 ID(创建子笔记时填,父笔记的 is_child_note 必须为 false)
link_urlNo链接 URL(note_type=link 时必填)
image_urlsNo图片 URL 列表(note_type=img_text 时必填)

Implementation Reference

  • The tool handler logic for 'save_note', mapping input parameters to the request body and calling the client's 'saveNote' method.
    case "save_note": {
      const body: SaveNoteReq = {};
      if (input.title !== undefined) body.title = input.title as string;
      if (input.content !== undefined) body.content = input.content as string;
      if (input.note_type !== undefined)
        body.note_type = input.note_type as SaveNoteReq["note_type"];
      if (input.tags !== undefined) body.tags = input.tags as string[];
      if (input.parent_id !== undefined)
        body.parent_id = input.parent_id as number | string;
      if (input.link_url !== undefined) body.link_url = input.link_url as string;
      if (input.image_urls !== undefined)
        body.image_urls = input.image_urls as string[];
      return client.saveNote(body);
    }
  • The implementation of 'saveNote' in the client class, which performs the actual API request.
    async saveNote(body: SaveNoteReq) {
      return this.request<SaveNoteResp>("POST", "/resource/note/save", undefined, body);
    }

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/iswalle/getnote-mcp'

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