random_poems

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

Get random poems from the collection—specify count for multiple. Returns full text, title, and author. Use for discovery or creative inspiration.

Parameters

NameTypeRequiredDescription
countnumbernoNumber of random poems to return (default 1, max 10)

Example call

Arguments

{
  "count": 1
}

curl

curl -X POST https://gateway.pipeworx.io/poetry/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"random_poems","arguments":{"count":1}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('random_poems', {
  "count": 1
});

More examples

{
  "count": 5
}

Response shape

Always returns: count, poems

FieldTypeDescription
countnumberNumber of random poems returned
poemsarrayList of random poems
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Number of random poems returned"
    },
    "poems": {
      "type": "array",
      "description": "List of random poems",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Poem title"
          },
          "author": {
            "type": "string",
            "description": "Poem author name"
          },
          "line_count": {
            "type": "number",
            "description": "Number of lines in the poem"
          },
          "text": {
            "type": "string",
            "description": "Full text of the poem with lines joined by newlines"
          }
        },
        "required": [
          "title",
          "author",
          "line_count",
          "text"
        ]
      }
    }
  },
  "required": [
    "count",
    "poems"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "poetry": {
      "url": "https://gateway.pipeworx.io/poetry/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026