Skip to main content
Glama

Roll Custom Table

roll_custom_table
Read-onlyIdempotent

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. Entries may contain {{table:}} references to Pipeworx's BUILT-IN random tables (e.g. "{{table:npc_personality}}"), resolved recursively (up to 6 levels deep). Optional seed makes the roll reproducible; the seed used is always returned. No session support for custom tables, use roll_table for session-tracked built-in tables.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "seed": "pw-smoke-2",
      "count": 3,
      "entries": [
        {
          "text": "a {{table:npc_occupation}} with a grudge"
        },
        {
          "text": "an ordinary traveler",
          "weight": 2
        }
      ]
    },
    "name": "roll_custom_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional seed for a reproducible roll. Omit for fresh randomness; the seed actually used is always returned.
countNoHow many entries to roll, 1-20 (default 1).
entriesYesYour table: a non-empty array of { text: string, weight?: number > 0 (default 1) }. Up to 500 entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is free. The description still earns credit for behavior beyond them: recursive resolution of {{table:...}} references up to 6 levels, the guarantee that the used seed is returned, and the absence of session tracking. It stops short of saying what happens when a referenced table id is invalid or unknown.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action and payload shape, then templating, then the sibling redirect — every sentence carries information. Minor waste in emphatic capitalization ('YOU', 'BUILT-IN') and the redundant restatement of the { text, weight? } shape already given in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description partly compensates by saying the result is a reproducible weighted draw with the used seed returned, though it does not state the concrete return shape (e.g. array of entry texts vs objects). For a 3-parameter, fully documented read tool with annotations present, that is nearly sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and already documents seed, count (1-20, default 1) and weight (default 1), so the baseline is 3. The description adds meaning on top: the ref-embedding syntax in entry text, recursive resolution depth, and the always-returned actual seed when seed is omitted — behavior the schema only hints at.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('roll one or more entries from a table YOU supply') and pins the defining characteristic — a caller-supplied weighted list of { text, weight? } — which no built-in-table sibling has. It draws an explicit line against roll_table, so an agent can pick correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear when-to-use condition (your own weighted table) and an explicit exclusion plus redirect: 'No session support for custom tables, use roll_table for session-tracked built-in tables.' It does not address the read-only discovery siblings (get_random_table, list_random_tables) that could confuse an agent assembling table ids, but the core routing decision is covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.