Skip to main content
Glama

Move/configure a player

player_set
Idempotent

Modify a Garry's Mod player's position, view angles, noclip, or god mode, changing only the fields you provide and returning the updated player state.

Instructions

Changes a player in the server realm: pos teleports it (velocity reset to zero), ang sets its eye angles, noclip switches MOVETYPE_NOCLIP/WALK, god toggles god mode. Only the given fields change. Default player: the first one (the local player in singleplayer). Result: {id, class, model, nick, pos, ang, eye_ang, noclip, god} read right after. The client sees it on a later frame: check with lua_exec {realm: "client", code: "return LocalPlayer():GetPos()"}. Example: {"pos": [0, 0, 64], "ang": [0, 90, 0], "noclip": true}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "player_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoPlayer entity index (players_list `id`, not userid). Default: the first player.
angNoEye angles [pitch, yaw, roll] in degrees.
godNotrue = god mode on.
posNoNew position, [x, y, z] in Hammer units.
noclipNotrue = noclip, false = walk.
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
idNo
angNo
botNo
godNo
posNo
nextNo
nickNo
noteNo
aliveNo
classNo
modelNo
healthNo
noclipNo
useridNo
eye_angNo
eye_posNo
steamidNo
warningNo
next_callNo
answered_byNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the idempotent/non-destructive annotations, it discloses real behavioral traits: partial updates ("Only the given fields change"), the side effect that teleporting resets velocity to zero, the default target when id is omitted, and the eventual-consistency caveat that the client observes changes a frame later. The realm-existence prerequisite is exactly the kind of context annotations cannot carry.

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?

Front-loaded with the action and field semantics, then defaults, return shape, caveats, and an example — no filler sentences. The telegraphic field-by-field style is dense, and the closing prerequisite is buried at the end where a prerequisite arguably belongs earlier.

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 six-parameter mutation tool with an output schema, the description covers everything an agent needs: what each field does, partial-update semantics, defaults, prerequisites, and how to confirm the effect from the client realm. Return values are already specified by the output schema, so no gap remains.

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 100%, so baseline is 3, but the description adds genuine meaning: pos is a teleport that zeroes velocity, noclip is a two-state switch between MOVETYPE_NOCLIP and WALK, and omitting id targets the first/local player. It also gives a concrete example payload, though it does not elaborate on the instance relay parameter beyond the schema.

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 opens with a specific verb+resource ("Changes a player in the server realm") and then enumerates the exact per-field effects (pos teleports, ang sets eye angles, noclip flips MOVETYPE, god toggles). This is clearly distinguishable from siblings like ent_fire or convar_set, which operate on entities/convars rather than player state.

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?

It states the prerequisite explicitly ("Needs a loaded map (map_load): the server and client realms do not exist at the main menu") and names the verification path via lua_exec. It does not, however, say when to prefer this over other mutation siblings such as ent_fire or console_exec, so the alternative-selection guidance is incomplete.

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