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
| Name | Type | Required | Description |
|---|---|---|---|
entries | array | no | Your table: a non-empty array of { text: string, weight?: number > 0 (default 1) }. Up to 500 entries. |
items | object | no | The entry text; may embed {{table: |
properties | string | no | The entry text; may embed {{table: |
text | string | yes | The entry text; may embed {{table: |
weight | number | no | Relative weight, > 0 (default 1). |
count | number | no | How many entries to roll, 1-20 (default 1). |
seed | string | no | Optional 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.