Skip to main content
Glama

Knowledge MCP Server

by sven-borkert

get_next_chapter

Retrieve the next chapter in a document sequence for continuous reading or pagination. Maintains context and checks for end-of-document. Use current chapter title or index for accurate progression.

Instructions

Get the next chapter after the current one in sequence.

When to use this tool:

  • Reading document sequentially
  • Continuing from current position
  • Implementing pagination through document
  • Following document flow naturally

Key features:

  • Automatic progression to next chapter
  • Returns null if at end
  • Maintains reading context
  • Efficient sequential access

You should:

  1. Use current_chapter_title OR current_index
  2. Check has_next before calling
  3. Use for sequential document traversal
  4. Handle end-of-document gracefully
  5. Consider document flow and continuity

DO NOT use when:

  • Need specific non-sequential chapter
  • At the last chapter already
  • Random access is needed

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

Input Schema

NameRequiredDescriptionDefault
current_chapter_titleNoTitle of the current chapter (use this OR current_index)
current_indexNoZero-based index of current chapter (use this OR current_chapter_title)
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": { "current_chapter_title": { "description": "Title of the current chapter (use this OR current_index)", "maxLength": 200, "minLength": 1, "type": "string" }, "current_index": { "description": "Zero-based index of current chapter (use this OR current_chapter_title)", "minimum": 0, "type": "integer" }, "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