Skip to main content
Glama
vuluu2k
by vuluu2k

getNotes

Retrieve structured notes from your personal knowledge base, organizing ideas and learning materials stored in markdown files for efficient access and review.

Instructions

Get notes from the ideas or learning section

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionNoWhich notes section to retrieveideas

Implementation Reference

  • The implementation of the getNotes function in the Brain class.
    async getNotes(section: "ideas" | "learning"): Promise<Note[]> {
      const brainSection: BrainSection = `notes/${section}`;
      try {
        const file = await this.sync.readSection(brainSection);
        return parseNotes(file.content, brainSection);
      } catch (err) {
        if (isNotFound(err)) return [];
        throw err;
      }
    }
  • Registration of the getNotes tool.
    server.registerTool(
      "getNotes",
      {
        description: "Get notes from the ideas or learning section",
        inputSchema: {
          section: z
            .enum(["ideas", "learning"])
            .optional()
            .default("ideas")
            .describe("Which notes section to retrieve"),
        },
      },
      toolHandler("getNotes", async ({ section }) => brain.getNotes(section))
    );

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/vuluu2k/knowledge_mcp'

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