quote_by_location

Pack: quotes · Endpoint: https://gateway.pipeworx.io/quotes/mcp

Look up quotes by structural address within a work — act/scene for plays, chapter for novels. Example: author_id=“william-shakespeare”, work_title=“Hamlet”, act=3, scene=1 returns the “To be, or not to be” line.

Parameters

NameTypeRequiredDescription
author_idstringyesAuthor id (e.g., “william-shakespeare”).
work_titlestringyesTitle of the work (e.g., “Hamlet”, “The Picture of Dorian Gray”).
actnumbernoAct number (plays only).
scenenumbernoScene number (plays only).
chapternumbernoChapter number (novels/essays).

Example call

Arguments

{
  "author_id": "william-shakespeare",
  "work_title": "Hamlet",
  "act": 3,
  "scene": 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":"quote_by_location","arguments":{"author_id":"william-shakespeare","work_title":"Hamlet","act":3,"scene":1}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('quote_by_location', {
  "author_id": "william-shakespeare",
  "work_title": "Hamlet",
  "act": 3,
  "scene": 1
});

More examples

{
  "author_id": "oscar-wilde",
  "work_title": "The Picture of Dorian Gray",
  "chapter": 2
}

Response shape

Always returns: author_id, work, count, quotes

FieldTypeDescription
author_idstringAuthor id used for lookup
workstringWork title that was queried
countnumberNumber of quotes found at location
quotesarrayArray of quotes from the specified location
Full JSON Schema
{
  "type": "object",
  "properties": {
    "author_id": {
      "type": "string",
      "description": "Author id used for lookup"
    },
    "work": {
      "type": "string",
      "description": "Work title that was queried"
    },
    "count": {
      "type": "number",
      "description": "Number of quotes found at location"
    },
    "quotes": {
      "type": "array",
      "description": "Array of quotes from the specified location"
    }
  },
  "required": [
    "author_id",
    "work",
    "count",
    "quotes"
  ]
}

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.

Regenerated from source · build May 9, 2026