Skip to main content
Glama

Set game mode

set_gamemode
Idempotent

Change an online Minecraft player's game mode to survival, creative, adventure, or spectator by specifying the exact username and desired mode.

Instructions

Change an online player's game mode (survival, creative, adventure or spectator).

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": {
      "username": "<username>",
      "mode": "<mode>"
    },
    "name": "set_gamemode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesNew game mode.
usernameYesExact, case-sensitive name of an online player.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, idempotent, non-destructive, closed-world mutation, so the safety profile is covered. The description adds the operational constraint that the target must be an online player and enumerates mode values, but says nothing about required permissions/operator level or what happens if the player is offline or the name mismatches.

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

Conciseness5/5

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

A single sentence with the action and target front-loaded and the mode list appended as a compact parenthetical. No filler or redundant phrasing.

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 simple two-parameter mutation with full schema coverage, annotations, and an output schema, the description covers the essential action and target. The only meaningful omission is guidance distinguishing it from set_default_gamemode.

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

Parameters3/5

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

Schema description coverage is 100%, with the mode enum and the case-sensitive username constraint fully documented, so the baseline is 3. The description only restates the mode values already listed in the enum and adds no new meaning about username matching or validation.

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

Purpose4/5

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

States a specific verb (change) and resource (an online player's game mode) and enumerates the four allowed modes, so the agent knows exactly what operation this performs. It does not differentiate itself from the sibling set_default_gamemode, which is the most likely confusion point.

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 phrase 'an online player's' implicitly signals the usage condition (a target player must currently be connected), which rules out offline/global changes. However, there is no explicit when-to-use vs. when-not guidance and no reference to the sibling set_default_gamemode, which is the natural alternative for a world-level default.

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