Skip to main content
Glama

Change potion effects

set_effects

Change an online player's potion effects by clearing, removing, then adding effects, and get a report of what succeeded, failed, or was skipped.

Instructions

Change a player's potion effects: clear first, then remove, then add, and answer with the effects afterwards. A failed step stops the rest, and the answer says what was done, what failed, and what wasn't. 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_effects"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
clearNoEvery effect
playerYesPlayer name or UUID
removeNoEffect keys

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv5.0.0
    • removedInput schema / properties / add / description
      Removed value: -"Effects to give"
    • changedInput schema / properties / add / items / properties / durationSeconds / description
      Previous value: -"Leave out for an infinite effect"New value: +"Infinite when left out"
    • changedInput schema / properties / add / items / properties / durationSeconds / maximum
      Previous value: -9007199254740991New value: +1000000
    • changedInput schema / properties / clear / description
      Previous value: -"Take away every effect first"New value: +"Every effect"
    • changedInput schema / properties / remove / description
      Previous value: -"Effect keys to take away"New value: +"Effect keys"
  2. Changed1 schema field changedv4.2.1
    • addedInput schema / properties / add / description
      Added value: +"Effects to give"
  3. First observedv4.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark the tool as a non-read-only, non-destructive mutation. The description adds substantial behavior beyond that: the clear-then-remove-then-add ordering, fail-fast semantics ('a failed step stops the rest'), and the response content ('what was done, what failed, and what wasn't'). This is exactly the kind of operational detail annotations cannot convey.

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?

Three compact sentences, front-loaded with the core operation and ordering. The failure and response details are stated without redundancy, and the online prerequisite is placed last.

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

Completeness5/5

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

For a four-parameter mutation tool with no output schema, the description covers the critical context: operation order, failure behavior, response shape, and the online prerequisite. Remaining parameter details are handled by the schema, so nothing essential is missing.

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 75%, so the schema already documents most parameter details, including effect type, amplifier, duration, and player. The description adds cross-parameter semantics by defining the precedence among clear, remove, and add, which is not captured in the schema. It does not explain the individual add-item fields, but the schema covers those.

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?

States a specific verb and resource: change a player's potion effects. It also names the sub-operations (clear, remove, add), making it distinguishable from set_player_property, set_blocks, and other sibling tools without opening the schema.

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 provides a prerequisite (the player must be online) and explains the internal order of operations, but it does not state when to choose this tool over alternatives or when not to use it. Usage is implied by the tool's name and resource.

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