Skip to main content
Glama
iswalle

GetNote MCP Server

by iswalle

batch_add_notes_to_topic

Add multiple notes to a knowledge base in batches of up to 20 at once. This tool organizes content efficiently by grouping related notes together.

Instructions

批量将笔记添加到知识库(每批最多 20 个)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topic_idYes知识库 ID
note_idsYes笔记 ID 列表(最多 20 个)

Implementation Reference

  • The actual implementation of batch_add_notes_to_topic, which sends a POST request to the server.
    async batchAddNotesToTopic(body: { topic_id: string; note_ids: (number | string)[] }) {
      return this.request<BatchAddNotesResp>(
        "POST",
        "/resource/knowledge/note/batch-add",
        undefined,
        body
  • src/index.ts:291-303 (registration)
    The MCP tool definition and registration for batch_add_notes_to_topic.
    name: "batch_add_notes_to_topic",
    description: "批量将笔记添加到知识库(每批最多 20 个)。",
    inputSchema: {
      type: "object" as const,
      properties: {
        topic_id: {
          type: "string",
          description: "知识库 ID",
        },
        note_ids: {
          type: "array",
          items: { type: ["number", "string"] },
          description: "笔记 ID 列表(最多 20 个)",
  • The switch case handler that calls the client method when the batch_add_notes_to_topic tool is invoked.
    case "batch_add_notes_to_topic": {
      return client.batchAddNotesToTopic({
        topic_id: input.topic_id as string,
        note_ids: input.note_ids as (number | string)[],
      });
    }

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