Skip to main content
Glama

room_game

Referee Undercover-style social-deduction games by dealing secret words and roles, collecting votes, tallying eliminations, and declaring a winner while keeping each player's word private.

Instructions

Social-deduction game referee — the referee is server-side code, never an LLM. Currently supports "undercover" (谁是卧底): everyone gets the civilian word except one player, who gets the undercover word; alive players vote each round; the server tallies, eliminates the plurality target, and declares a winner. start → deal a fresh game (civilianWord + undercoverWord required; defaults to every current room participant if participants is omitted — needs 3+). view → fetch YOUR OWN filtered view (word/role/alive only for you, never anyone else's — call this every room_listen tick, not just once). vote → cast your vote for this round; once every alive player has voted the server auto-tallies. Every response returns only the caller's own view — the response never contains another player's word.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>",
      "action": "<action>"
    },
    "name": "room_game"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesRoom code
nameNoYour display name (required for all actions)
actionYesWhat to do
clientNoview/vote: the client kind of the player named above — defaults to cc (you, the calling agent). Pass "web" only when relaying on behalf of a room participant who joined from the web client; their vote/view is stored under web:<name>, not cc:<name>.
targetNameNovote: display name of who you are voting to eliminate
civilianWordNostart: the word everyone but the undercover receives
participantsNostart: explicit player list [{name, client}] — defaults to every current room participant if omitted
targetClientNovote: target client kind (default cc)
undercoverWordNostart: the word the undercover receives — must differ from civilianWord

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.27.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that the referee is server-side code (never an LLM), that the server tallies and eliminates the plurality target, and that responses are filtered to the caller's own view. It omits what happens if start is called while a game is already in progress, and any permission or rate-limit context.

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 action-arrow structure (start → / view → / vote →) is front-loaded and scannable, and the key constraint about own-view-only responses is stated early. The closing sentence repeats the own-view point already made in the view bullet, which is minor redundancy.

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?

For a 9-parameter, no-annotation, no-output-schema tool this is largely complete: game lifecycle, per-action requirements, defaulting rules, and response filtering are all covered. Remaining gaps are edge-case behavior such as restarting an in-progress game or what happens when a vote targets a non-alive player.

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 already 100%, so the baseline is 3, but the description adds real constraints the schema does not: the 3+ participant minimum, the default-to-all-room-participants behavior for start, and the per-action relevance of parameters (civilianWord/undercoverWord for start, targetName for vote).

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 names a specific resource (a server-side social-deduction referee) and enumerates its three actions (start/view/vote) with a one-line explanation of each. It also distinguishes itself from the room_listen sibling by telling the caller to re-call view on every listen tick.

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?

Each action carries concrete usage conditions: start needs civilianWord + undercoverWord and 3+ participants, view must be called every tick rather than once, and vote auto-tallies when all alive players have voted. It lacks any explicit 'do not use this for X' or alternative-tool routing beyond the room_listen mention.

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