Skip to main content
Glama

Warn or ban a player

set_player_action
DestructiveIdempotent

Warns or bans a player in a project, with a reason kept for the record. A ban makes Paxmod flag every later message from that player id without checking it. A warning is a label only. Replaces any earlier warning or ban on the same player; clear_player_action undoes it. Needs owner, admin or editor access.

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": {
      "project_id": "<project_id>",
      "user_id": "<user_id>",
      "action": "<action>",
      "reason": "<reason>"
    },
    "name": "set_player_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
reasonYesWhy, up to 500 characters. Kept with the action.
user_idYesThe player's id (exact), as the app sends it.
project_idYesThe project's id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds real context beyond them: the action replaces any earlier warning or ban on the same player, a ban causes every later message from that id to be flagged without checking, and owner/admin/editor access is required. That covers what gets overwritten and the auth prerequisite, though it does not say what the call returns or how failures surface.

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?

Four short sentences, front-loaded with the core action and followed by the behavioral consequences, the replacement/undo semantics, and the permission requirement. Dense and mostly waste-free, though the opening clause 'with a reason kept for the record' slightly duplicates what the reason parameter already documents.

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 four-required-parameter mutation with no output schema, the description covers the important ground: mode semantics, overwrite behavior, undo path, and access level. It leaves out return values and error behavior, which is a modest gap given no output schema exists to carry that information.

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%, and the description adds meaning the schema does not: the reason is kept with the action for the record, and the action values carry distinct downstream behavior (flagging vs label only). It reinforces that user_id is the exact player id, but adds nothing about project_id beyond the schema's own pointer to list_projects.

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 pair and resource ('Warns or bans a player in a project') plus the record-keeping side effect, and explicitly contrasts with the sibling clear_player_action, which undoes it. An agent can distinguish this from clear_player_action and get_player_history without opening a schema.

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?

Gives clear context for choosing between the two modes: a ban makes Paxmod flag every later message from that player id without checking it, while a warning is a label only. It also names the undo path (clear_player_action) and the access requirement. It stops short of stating when to prefer a warning over a ban or how this relates to review_flagged_messages, so it is strong but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.