Skip to main content
Glama

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

TableJSON 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

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

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