Skip to main content
Glama

Knowledge MCP Server

by sven-borkert

add_chapter

Insert or append a new chapter to a knowledge document, specifying title, content, and position relative to an existing chapter. Ensures unique chapter titles for organized project knowledge management.

Instructions

Add a new chapter to a knowledge document. The chapter can be positioned at the end, or before/after a reference chapter. Chapter title must not already exist in the document. Returns: {success: bool, message?: str, error?: str}

Input Schema

NameRequiredDescriptionDefault
chapter_titleYesTitle for the new chapter
contentYesContent for the new chapter
filenameYesKnowledge file name (must include .md extension)
positionNoWhere to insert the chapter (default: "end")
project_idYesThe project identifier
reference_chapterNoThe chapter title to use as reference point for before/after positioning

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "chapter_title": { "description": "Title for the new chapter", "maxLength": 200, "minLength": 1, "type": "string" }, "content": { "description": "Content for the new chapter", "maxLength": 1048576, "minLength": 1, "type": "string" }, "filename": { "description": "Knowledge file name (must include .md extension)", "maxLength": 255, "minLength": 1, "type": "string" }, "position": { "description": "Where to insert the chapter (default: \"end\")", "enum": [ "before", "after", "end" ], "type": "string" }, "project_id": { "description": "The project identifier", "maxLength": 100, "minLength": 1, "type": "string" }, "reference_chapter": { "$ref": "#/properties/chapter_title", "description": "The chapter title to use as reference point for before/after positioning" } }, "required": [ "project_id", "filename", "chapter_title", "content" ], "type": "object" }

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/sven-borkert/knowledge-mcp'

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