Skip to main content
Glama
Komeiji-Shiki

trpg-dice-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
roll_diceA

掷骰并计算完整算术表达式。支持四则运算、括号、取整函数及全部修饰符。

示例:

  • 普通掷骰:expression="3d6+2"

  • 优弃:expression="4d6kh3"(4d6 取最高的 3 个)

  • 爆炸骰:expression="3d6!"(骰出 6 追加一骰)

  • 带除法:expression="(8d6)/2"

  • 百分骰:expression="d%"

  • Fudge骰:expression="4dF"

  • d66查表骰:expression="d66"

roll_tableA

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

示例:

  • 范围模式: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"}]

roll_checkB

技能/属性检定。支持多种规则预设和自定义成功等级。

示例:

  • CoC 7e 技能检定:preset="coc7", target=60

  • D&D 5e 攻击:preset="dnd5e", dice="1d20+5", target=15

  • PbtA 检定:preset="pbta", dice="2d6+1"

  • 优势攻击:dice="1d20+5", target=15, advantage="adv"

roll_poolA

骰池检定(Shadowrun / WoD / Year Zero 等)。统计满足条件的成功骰数。

示例:

  • Shadowrun:count=10, sides=6, success_condition=">=target", target=5, ones_glitch=true

  • WoD:count=6, sides=10, target=8, ones_cancel=true, tens_crit=true

  • Year Zero:count=8, sides=6, target=6

roll_fateB

FATE 系统专用:4dF + 修正值,带梯形评价。

示例:

  • roll_fate modifier=3 difficulty=2

pick_randomA

从列表中随机抽取。Fisher-Yates 洗牌 + 密码学随机。

示例:

  • 先攻排序:items=["Alice","Bob","Carol","Dave"](不放回抽取全部)

  • 抽 3 张牌:items=["♠A","♠K","♠Q","♠J","♠10"], count=3

get_roll_historyA

查询掷骰历史。暗骰条目只显示"结果保密"。

示例:

  • 最近 10 条:limit=10

  • 按标签过滤:tag="理智检定"

  • 分页:limit=10, offset=10

reveal_hidden_rollA

解锁查看暗骰结果,返回完整掷骰明细。

示例:

  • reveal_hidden_roll roll_id="h7"

  • reveal_hidden_roll roll_id="#h12" reason="战斗结束后揭示"

opposed_checkA

双方对抗检定。比较两名角色的 margin/total/成功等级判定胜负。

示例:

  • CoC 对抗:preset="coc7", actor1={"modifier":0}, actor2={"modifier":0}, target=60

  • D&D 先攻对抗:dice="1d20", actor1={"modifier":3}, actor2={"modifier":1}, mode="roll_over"

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
CoC 7th Edition
D&D 5th Edition
Powered by the Apocalypse
GURPS
RuneQuest
FATE

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