Skip to main content
Glama

Knowledge Retrieval Server

by cskwork

get-chunk-with-context

Extract a specific text chunk along with its surrounding context from a document using a customizable window size, enabling precise information retrieval for reference or analysis.

Instructions

Get specific chunk with surrounding context.

Input Schema

NameRequiredDescriptionDefault
chunkIdYesChunk ID
documentIdYesDocument ID
windowSizeNoContext window size (default: 1)

Input Schema (JSON Schema)

{ "properties": { "chunkId": { "description": "Chunk ID", "type": "number" }, "documentId": { "description": "Document ID", "type": "number" }, "windowSize": { "default": 1, "description": "Context window size (default: 1)", "type": "number" } }, "required": [ "documentId", "chunkId" ], "type": "object" }
Install Server

Other Tools from Knowledge Retrieval Server

Related Tools

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/cskwork/keyword-rag-mcp'

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