roll_custom_table

Pack: random-tables · 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/roll_custom_table for the schema, then POST the same URL with its arguments for the data.

Pipeworx original random tables: roll one or more entries from a table YOU supply — bring your own weighted list of { text, weight? } and get back a reproducible weighted draw.

Parameters

NameTypeRequiredDescription
entriesarraynoYour table: a non-empty array of { text: string, weight?: number > 0 (default 1) }. Up to 500 entries.
itemsobjectnoThe entry text; may embed {{table:}} references.
propertiesstringnoThe entry text; may embed {{table:}} references.
textstringyesThe entry text; may embed {{table:}} references.
weightnumbernoRelative weight, > 0 (default 1).
countnumbernoHow many entries to roll, 1-20 (default 1).
seedstringnoOptional seed for a reproducible roll. Omit for fresh randomness; the seed actually used is always returned.

Example call

Arguments

{
  "entries": [
    {
      "text": "a {{table:npc_occupation}} with a grudge"
    },
    {
      "text": "an ordinary traveler",
      "weight": 2
    }
  ],
  "count": 3,
  "seed": "pw-smoke-2"
}

curl

curl -X POST https://gateway.pipeworx.io/random-tables/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"roll_custom_table","arguments":{"entries":[{"text":"a {{table:npc_occupation}} with a grudge"},{"text":"an ordinary traveler","weight":2}],"count":3,"seed":"pw-smoke-2"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('roll_custom_table', {
  "entries": [
    {
      "text": "a {{table:npc_occupation}} with a grudge"
    },
    {
      "text": "an ordinary traveler",
      "weight": 2
    }
  ],
  "count": 3,
  "seed": "pw-smoke-2"
});

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 random-tables pack
{
  "mcpServers": {
    "random-tables": {
      "url": "https://gateway.pipeworx.io/random-tables/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 22, 2026