get_poem_lines
Pack: poetrydb · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_poem_lines for the schema, then POST the same URL with its arguments for the data.
Full-text search within poem lines on PoetryDB — finds any poem containing the given phrase in one of its lines. Returns full poem text (capped). Keyless.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | yes | Phrase to find inside any line of a poem, e.g. “Nature”, “the road not taken”. |
limit | number | no | Max poems to return (default 10, max 20). |
Example call
Arguments
{
"text": "Nature"
}
curl
curl -X POST https://gateway.pipeworx.io/poetrydb/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_poem_lines","arguments":{"text":"Nature"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_poem_lines', {
"text": "Nature"
});
More examples
{
"text": "the road not taken",
"limit": 3
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the poetrydb pack
{
"mcpServers": {
"poetrydb": {
"url": "https://gateway.pipeworx.io/poetrydb/mcp"
}
}
}
See Getting Started for client-specific install steps.