Skip to main content
Glama

Change a player

set_player_property
Destructive

Configure an online Minecraft player's game mode, health, food, XP, flight and speed, display or tab name, invulnerability, fire, and air levels in one call.

Instructions

Set game mode, health (0 kills), food, saturation, XP, flight, walk or fly speed, display or tab-list name, invulnerability, fire, or air. The player must be online.

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": {
      "player": "<player>"
    },
    "name": "set_player_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
expNoProgress to the next level
foodNo
levelNo
flyingNo
formatNo`minimessage` reads tags like `<green>Hi`plain
healthNo2 per heart
playerYesPlayer name or UUID
flySpeedNo0.1 is normal
gameModeNo
listNameNoTab list
fireTicksNo20 a second
walkSpeedNo0.2 is normal
exhaustionNo4 costs a point of saturation or food
saturationNo
allowFlightNo
displayNameNo
invulnerableNo
remainingAirNoTicks, 300 is full

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed25 schema fields changedv5.0.0
    • removedInput schema / properties / allowFlight / description
      Removed value: -"May fly"
    • removedInput schema / properties / displayName / description
      Removed value: -"Name in chat"
    • changedInput schema / properties / exhaustion / description
      Previous value: -"At 4, costs a point of saturation or food"New value: +"4 costs a point of saturation or food"
    • changedInput schema / properties / fireTicks / description
      Previous value: -"20 per second; 0 puts it out"New value: +"20 a second"
    • removedInput schema / properties / fireTicks / maximum
      Removed value: -9007199254740991
    • changedInput schema / properties / fireTicks / minimum
      Previous value: --9007199254740991New value: +0
    • addedInput schema / properties / fireTicks / multipleOf
      Added value: +1
    • changedInput schema / properties / fireTicks / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / flying / description
      Removed value: -"Needs allowFlight"
    • removedInput schema / properties / food / description
      Removed value: -"Hunger bar"
    • changedInput schema / properties / format / description
      Previous value: -"`minimessage` reads tags like `<green>Hi` or `<bold>`; `plain` sends the text as is"New value: +"`minimessage` reads tags like `<green>Hi`"
    • removedInput schema / properties / gameMode / description
      Removed value: -"Game mode"
    • changedInput schema / properties / health / description
      Previous value: -"2 per heart, up to the max; 0 kills"New value: +"2 per heart"
    • removedInput schema / properties / invulnerable / description
      Removed value: -"Takes no damage"
    • removedInput schema / properties / level / description
      Removed value: -"XP level"
    • removedInput schema / properties / level / maximum
      Removed value: -9007199254740991
    • addedInput schema / properties / level / multipleOf
      Added value: +1
    • changedInput schema / properties / level / type
      Previous value: -"integer"New value: +"number"
    • changedInput schema / properties / listName / description
      Previous value: -"Name in the tab list"New value: +"Tab list"
    • changedInput schema / properties / remainingAir / description
      Previous value: -"Ticks, up to the max (300 by default)"New value: +"Ticks, 300 is full"
    • removedInput schema / properties / remainingAir / maximum
      Removed value: -9007199254740991
    • changedInput schema / properties / remainingAir / minimum
      Previous value: --9007199254740991New value: +0
    • addedInput schema / properties / remainingAir / multipleOf
      Added value: +1
    • changedInput schema / properties / remainingAir / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / saturation / description
      Removed value: -"Spent before food"
  2. Changed15 schema fields changedv4.2.1
    • addedInput schema / properties / allowFlight / description
      Added value: +"May fly"
    • addedInput schema / properties / displayName / description
      Added value: +"Name in chat"
    • addedInput schema / properties / exhaustion / description
      Added value: +"At 4, costs a point of saturation or food"
    • addedInput schema / properties / fireTicks / description
      Added value: +"20 per second; 0 puts it out"
    • addedInput schema / properties / flySpeed / description
      Added value: +"0.1 is normal"
    • addedInput schema / properties / flying / description
      Added value: +"Needs allowFlight"
    • addedInput schema / properties / food / description
      Added value: +"Hunger bar"
    • addedInput schema / properties / gameMode / description
      Added value: +"Game mode"
    • addedInput schema / properties / health / description
      Added value: +"2 per heart, up to the max; 0 kills"
    • addedInput schema / properties / invulnerable / description
      Added value: +"Takes no damage"
    • addedInput schema / properties / level / description
      Added value: +"XP level"
    • addedInput schema / properties / listName / description
      Added value: +"Name in the tab list"
    • addedInput schema / properties / remainingAir / description
      Added value: +"Ticks, up to the max (300 by default)"
    • addedInput schema / properties / saturation / description
      Added value: +"Spent before food"
    • addedInput schema / properties / walkSpeed / description
      Added value: +"0.2 is normal"
  3. First observedv4.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the mutation profile is known. The description adds real value with the online requirement and the note that health 0 kills the player, but it does not say whether unspecified properties are left untouched, what permissions are required, or whether changes are reversible/undoable via undo_change.

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?

Two sentences, no filler, and the capability list is front-loaded ahead of the constraint. The enumeration is dense to the point of being a wall of comma-separated items, but each item corresponds to a real parameter and earns its place.

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

Completeness3/5

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

For an 18-parameter destructive mutation with no output schema, the definition covers what can be set and the online precondition, which is the core need. It stops short of explaining partial-update semantics, error behavior for offline players, or the response, leaving an agent to infer how omitted fields behave.

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?

With only 56% schema description coverage across 18 parameters, the description does meaningful work: it names nearly every settable field and maps colloquial terms ('XP', 'tab-list name', 'fly speed') onto schema keys, plus adds the semantic consequence '0 kills'. The remaining gaps (format, exhaustion, and the precise exp vs level distinction) are left to the schema.

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?

The verb 'Set' plus an enumerated list of mutable player attributes (game mode, health, food, saturation, XP, flight, speeds, names, invulnerability, fire, air) makes the resource and scope unmistakable. It implicitly separates itself from read-only siblings like get_player and from set_effects/set_advancement by naming the exact fields it touches, though it never explicitly contrasts with them.

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 gives one concrete prerequisite ('The player must be online'), which is genuinely useful selection context. However, it offers no when-to-use/when-not guidance and never points to an alternative sibling for cases this tool does not cover (e.g., teleport_player or set_effects).

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