Skip to main content
Glama
iswalle

GetNote MCP Server

by iswalle

update_note

Modify existing plain text notes by updating titles, content, or tags in the GetNote platform. Provide at least one field to change while maintaining note structure.

Instructions

更新已有笔记的标题、内容或标签。⚠️ 仅支持 plain_text 类型笔记,链接笔记、图片笔记等暂不支持更新。至少需要传 title、content、tags 中的一个。tags 是替换操作,会覆盖原有标签。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_idYes笔记 ID(必填)
titleNo新标题(可选,不传则不更新)
contentNo新内容,Markdown 格式(可选,不传则不更新)
tagsNo新标签列表(可选,不传则保持原标签;传则替换原有标签)

Implementation Reference

  • The core handler method in the client class that makes the API request for updating a note.
    async updateNote(body: UpdateNoteReq) {
      return this.request<UpdateNoteResp>("POST", "/resource/note/update", undefined, body);
    }
  • The tool handler logic which transforms input parameters and calls the client's updateNote method.
    case "update_note": {
      const body: { note_id: number | string; title?: string; content?: string; tags?: string[] } = {
        note_id: input.note_id as number | string,
      };
      if (input.title !== undefined) body.title = input.title as string;
      if (input.content !== undefined) body.content = input.content as string;
      if (input.tags !== undefined) body.tags = input.tags as string[];
      return client.updateNote(body);
    }
  • Type definition for the update_note request payload.
    export interface UpdateNoteReq {
      note_id: number | string;
      title?: string;
      content?: string;
      tags?: string[];
    }
  • src/index.ts:166-178 (registration)
    The MCP tool registration configuration for update_note, including the input schema.
    name: "update_note",
    description:
      "更新已有笔记的标题、内容或标签。⚠️ 仅支持 plain_text 类型笔记,链接笔记、图片笔记等暂不支持更新。至少需要传 title、content、tags 中的一个。tags 是替换操作,会覆盖原有标签。",
    inputSchema: {
      type: "object" as const,
      properties: {
        note_id: {
          type: ["number", "string"],
          description: "笔记 ID(必填)",
        },
        title: {
          type: "string",
          description: "新标题(可选,不传则不更新)",

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