Skip to main content
Glama
Komeiji-Shiki

trpg-dice-mcp

roll_table

Roll on random tables with weighted, ranged, or equal-probability options, including nested trigger rolls for table-driven results.

Instructions

从随机表中抽取结果。支持三种模式互斥:显式范围、权重、等概率。支持嵌套触发。

示例:

  • 范围模式:options=[{"label":"哥布林","min":1,"max":8},{"label":"兽人","min":9,"max":14}], dice="1d20"

  • 权重模式:options=[{"label":"普通","weight":70},{"label":"稀有","weight":25},{"label":"传说","weight":5}]

  • 等概率:options=[{"label":"红","min":1,"max":1},{"label":"蓝","min":2,"max":2}], dice="1d2"(或不传 dice)

  • 嵌套触发:options=[{"label":"遭遇","min":1,"max":5,"trigger_roll":"1d4+1"}]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diceNo骰子表达式(范围模式必填)
tagsNo
timesNo
hiddenNo
localeNozh
reasonNo
uniqueNo不放回抽取
optionsYes选项列表
allow_gapNo允许未命中返回 null
Behavior2/5

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

Annotations are all false and provide no safety profile. The description discloses no side effects, such as whether rolls are recorded in history or how hidden rolls behave, despite the presence of a 'hidden' parameter. This leaves significant behavioral gaps.

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?

The description is compact and front-loaded with the core purpose, followed by concise examples that illustrate each mode. The examples are valuable and not wasteful, though they make the description longer than strictly necessary.

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

Completeness2/5

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

With 9 parameters and no output schema, the description leaves many parameters undocumented and does not describe the return format or how nested triggers affect output. It covers core behavior, but the tool's complexity demands more complete guidance.

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?

The description adds substantial meaning beyond the schema by explaining the options structure (label, min/max, weight, trigger_roll) and dice usage across three modes. This compensates for the low schema coverage, though secondary parameters like tags, times, locale, and reason remain unexplained.

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?

The description clearly states the tool draws results from a random table and details three mutually exclusive modes (range, weight, equal probability) plus nested triggers. This specific verb+resource structure distinguishes it from sibling roll tools like roll_dice or roll_check.

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

Usage Guidelines3/5

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

The description implies usage for random table rolling through examples and the term 'random table', but it never explicitly contrasts with alternatives or provides when-not-to-use guidance. No exclusions are stated, so the guidance is only implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Komeiji-Shiki/trpg-dice-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server