Skip to main content
Glama

Knowledge MCP Server

by sven-borkert

get_chapter

Retrieve specific chapter content by title or index for efficient document access. Ideal for targeted reading, updating chapters, or navigating large files without loading the entire document. Includes summary and navigation details.

Instructions

Retrieve a single chapter's content by title or index.

When to use this tool:

  • Reading specific chapter content
  • Reviewing targeted information
  • Updating specific chapter (read first)
  • Accessing chapter without loading entire document
  • Efficient partial document access

Key features:

  • Access by title OR index (0-based)
  • Returns navigation info (has_next, has_previous)
  • Memory-efficient for large documents
  • Includes chapter summary

You should:

  1. Use chapter_title for known chapters
  2. Use chapter_index for sequential reading
  3. Specify either title OR index, not both
  4. Use exact title match (case-sensitive)
  5. Consider using get_next_chapter for sequences
  6. Cache results if accessing multiple times

DO NOT use when:

  • Need multiple chapters (batch operations)
  • Don't know chapter title or index
  • Need full document context

Returns: {success: bool, title: str, content: str, summary: str, index: int, total_chapters: int, has_next: bool, has_previous: bool}

Input Schema

NameRequiredDescriptionDefault
chapter_indexNoZero-based index of the chapter (use this OR chapter_title)
chapter_titleNoTitle of the chapter to retrieve (use this OR chapter_index)
filenameYesKnowledge file name (must include .md extension)
project_idYesThe project identifier

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "chapter_index": { "description": "Zero-based index of the chapter (use this OR chapter_title)", "minimum": 0, "type": "integer" }, "chapter_title": { "description": "Title of the chapter to retrieve (use this OR chapter_index)", "maxLength": 200, "minLength": 1, "type": "string" }, "filename": { "description": "Knowledge file name (must include .md extension)", "maxLength": 255, "minLength": 1, "type": "string" }, "project_id": { "description": "The project identifier", "maxLength": 100, "minLength": 1, "type": "string" } }, "required": [ "project_id", "filename" ], "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