get_chapter
Pack: quotes · Endpoint: https://gateway.pipeworx.io/quotes/mcp
Return the full text of a chapter from a novel/prose work (all paragraphs in order). Example: author_id=“oscar-wilde”, work_slug=“the-picture-of-dorian-gray”, chapter=2 returns the entire chapter where Lord Henry tempts Dorian. Use list_full_text_works to discover which works are chapter-based.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
author_id | string | yes | Author id (e.g., “mark-twain”). |
work_slug | string | yes | Work slug (e.g., “adventures-of-huckleberry-finn”). |
chapter | number | yes | Chapter number. |
Example call
Arguments
{
"author_id": "jane-austen",
"work_slug": "pride-and-prejudice",
"chapter": 1
}
curl
curl -X POST https://gateway.pipeworx.io/quotes/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_chapter","arguments":{"author_id":"jane-austen","work_slug":"pride-and-prejudice","chapter":1}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_chapter', {
"author_id": "jane-austen",
"work_slug": "pride-and-prejudice",
"chapter": 1
});
More examples
{
"author_id": "mark-twain",
"work_slug": "adventures-of-huckleberry-finn",
"chapter": 31
}
{
"author_id": "oscar-wilde",
"work_slug": "the-picture-of-dorian-gray",
"chapter": 2
}
Response shape
Full JSON Schema
{
"oneOf": [
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message when chapter not found"
}
},
"required": [
"error"
]
},
{
"type": "object",
"properties": {
"author_id": {
"type": "string",
"description": "Author id of the work"
},
"work_slug": {
"type": "string",
"description": "Work slug identifier"
},
"chapter": {
"type": "number",
"description": "Chapter number"
},
"title": {
"type": "string",
"description": "Chapter title"
},
"paragraph_count": {
"type": "number",
"description": "Number of paragraphs in the chapter"
},
"paragraphs": {
"type": "array",
"description": "Array of paragraphs in the chapter"
}
},
"required": [
"author_id",
"work_slug",
"chapter",
"title",
"paragraph_count",
"paragraphs"
]
}
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"quotes": {
"url": "https://gateway.pipeworx.io/quotes/mcp"
}
}
}
See Getting Started for client-specific install steps.