Skip to main content
Glama
mematcha

pdf-context

by mematcha

get_next_chunks_tool

Continue reading a PDF from where you left off by passing the cursor from a previous section or chunk request to retrieve the next sequential chunks.

Instructions

Read the next sequential chunks in an indexed PDF from a cursor.

Use after get_section_content or a prior get_next_chunks call to continue chapter-by-chapter or page-by-page reading. Pass cursor from the previous response's global_sequence_index.

Do not use for unrelated search queries; use search_pdf_context instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentYes
cursorNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses the sequential, stateful nature via cursor usage. However, it does not explicitly mention safety (read-only) or potential side effects, though implied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences efficiently convey purpose, usage, cursor handling, and exclusions. No redundant content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need no explanation. However, given 0% schema coverage, the description should explain document and limit parameters. It covers cursor and usage well but misses parameter details for document and limit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so description must compensate. It explains the cursor parameter well (pass from previous response's global_sequence_index) but does not explain the document or limit parameters, leaving gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool reads the next sequential chunks in an indexed PDF using a cursor, using a specific verb and resource. It distinguishes itself from sibling tools like search_pdf_context_tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use this tool (after get_section_content or prior get_next_chunks call) and when not to (for unrelated search queries, use search_pdf_context instead). Provides clear alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/mematcha/pdf-context'

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