Skip to main content
Glama

set_player_state

Sets a player's money (in integer cents), job, salary, or RP name in DarkRP. Requires confirmation for audited changes.

Instructions

GUARDED, DarkRP. Sets a player's money, job, salary or RP name. Money is in INTEGER CENTS (1.50$ is 150) and goes through the r-capitalism ledger when it is loaded, so the audited invariant stays intact. Fails with a named error when DarkRP is absent. Requires confirm:true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobNoJob command (e.g. 'police'), job name, or team index.
rpnameNo
salaryNo
targetYes
confirmNoMust be true: this changes the running game and is audited. Otherwise the call is refused.
money_centsNoAbsolute balance in integer cents. The ledger records the delta as an issue or a burn.
Behavior4/5

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

The description discloses that the tool is guarded, audited, and requires confirmation. It explains the money is in cents and goes through a ledger. These details add value beyond the sparse annotations (only title). No contradictions with annotations.

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?

The description is two sentences long with no fluff. The first sentence states the purpose, and the second adds critical details about units, ledger, error handling, and confirmation requirement. Every sentence is valuable.

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?

Given the tool has 6 parameters and no output schema, the description covers the essential behavioral traits (DarkRP dependency, confirm requirement, money unit). It lacks explicit mention of return values or failure modes beyond 'named error', but overall it provides enough context for an agent to use it safely.

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 50%, and the description adds the crucial clarification that money is in integer cents. However, it does not explain the job parameter or rpname further. The description avoids repeating schema details, but given the moderate coverage, it provides minimal extra guidance.

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 clearly states it sets a player's money, job, salary, or RP name. It distinguishes from sibling tools by specifying 'GUARDED, DarkRP' and the scope of state mutation, which sets it apart from read-only and debug tools.

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?

The description notes that it fails with a named error when DarkRP is absent, telling when not to use it. It also emphasizes the need for confirm:true. However, it does not explicitly compare to alternatives or provide conditions for when to use this tool over others.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheRolists/gmod-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server