roll_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_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 built-in table — encounters_fantasy, encounters_scifi, encounters_modern, loot, weather, complication, npc_personality, npc_secret, npc_occupation, plot_hook, tavern, rumour, settlement_quirk, npc_full.

Parameters

NameTypeRequiredDescription
tablestringyesBuilt-in table id, e.g. “loot”, “npc_full”, “encounters_fantasy”. Call list_random_tables to see every id.
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.
session_idstringnoOptional. Omit for an ordinary independent weighted roll. Pass a session_id (your own first time, or one returned by a previous call) to draw without replacement across calls — hosted only.

Example call

Arguments

{
  "table": "npc_full",
  "count": 2,
  "seed": "pw-smoke-1"
}

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_table","arguments":{"table":"npc_full","count":2,"seed":"pw-smoke-1"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('roll_table', {
  "table": "npc_full",
  "count": 2,
  "seed": "pw-smoke-1"
});

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