Skip to main content
Glama

Roll Table

roll_table
Read-onlyIdempotent

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. Entries may contain {{table:}} references to OTHER built-in tables, resolved recursively (up to 6 levels deep), the response gives both the raw entry text and the fully resolved text. Optional seed makes the roll reproducible (same seed + arguments = same result; the seed used is always returned). Optional session_id draws without replacement across repeated calls (hosted only, via the gateway's shared KV), pass none to get an ordinary independent weighted roll every time, or pass any string to start tracking a no-repeat session (the response returns the real session_id to reuse). No text from any commercial RPG product, every table and entry is written for Pipeworx.

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-1",
      "count": 2,
      "table": "npc_full"
    },
    "name": "roll_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).
tableYesBuilt-in table id, e.g. "loot", "npc_full", "encounters_fantasy". Call list_random_tables to see every id.
session_idNoOptional. 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / session_id / description
      Previous value: -"Optional. 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."New value: +"Optional. 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."
  2. 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 readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real value beyond them: recursive {{table:<id>}} resolution up to 6 levels, raw plus resolved text in the response, the seed being returned, and the hosted-only/no-replacement nature of session_id. The tension between idempotentHint and session_id consuming draws across calls is disclosed rather than hidden, but return-shape and pagination detail remain thin.

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

Conciseness3/5

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

Purpose and table ids are front-loaded, which is good, but the body is one dense paragraph of comma-chained clauses covering recursion, seeding, sessions, and licensing. The commercial-RPG disclaimer is marginal to tool selection and the unbroken structure makes the key behavioral facts harder to scan than necessary.

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

Completeness5/5

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

For a four-parameter, read-only, no-output-schema tool, it covers table selection, count, determinism, session state, recursive resolution, and response contents. An agent has everything needed to call it correctly, with only minor gaps around return formatting or size limits.

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%, so the baseline is 3; the description nonetheless adds meaning, notably that same seed plus same arguments yields the same result, that the actual seed is always returned, and that any session_id string starts no-repeat tracking with the real id echoed back. It largely restates the count range and table-id guidance already in the schema, which keeps it below a 5.

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 built-in table") and enumerates every built-in table id, so the agent knows exactly what domain it covers. The phrase "built-in" implicitly separates it from roll_custom_table, and list_random_tables is named as the id-lookup sibling.

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 clear conditional guidance for the optional parameters: omit seed for fresh randomness, use seed for reproducibility, pass session_id to draw without replacement or omit it for independent rolls. It lacks an explicit statement of when to prefer roll_custom_table or get_random_table over this tool, so it stops short of full alternative routing.

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.