Paxmod
v1.2.0Content moderation for chat and comments: free test keys, message checks, plain-English policies.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_integration_guide Get the Paxmod integration guide
The full Paxmod API guide for coding agents: endpoints, request and response shapes, error codes, rate limits and code samples (Node, Python, Unity, Roblox and more).
create_test_api_key Create a Paxmod test API key
Creates a working text-moderation API key with no account: 100 messages over 72 hours, standard mode, every category on. Returns api_key and claim_url; opening claim_url keeps the key in a Paxmod account. Limited to 3 keys per address per day.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional project name, for example the game's name. |
source | string | Optional: the agent or tool asking, for example claude-code. |
moderate_text Moderate a message
Checks one chat message with Paxmod, using the project's categories and thresholds. Returns flagged or not_flagged with a score per category. Counts as one of the project's messages, like a live request. Needs a Paxmod API key (create_test_api_key gives one).
| Parameter | Type | Description |
|---|---|---|
api_key * | string | Paxmod API key for the project. |
message * | string | The message to check, up to 5000 characters. |
context_id | string | Optional: the chat, channel or match it was sent in. |
user_id | string | Optional: the player who sent it. |
test_policy Test a moderation policy
Runs example messages against an Advanced mode policy and says which would be flagged, with a score and reason for each. Send a draft policy to try changes before saving them; leave it out to test the saved policy. Mark each example with expect "flag" or "pass" and the summary counts how many came back as expected. The project's word rules run first, as they do live. Nothing is stored. No credits are used, except on a free test key from create_test_api_key, where each message checked counts toward its 100 free messages. Up to 50 examples per call.
| Parameter | Type | Description |
|---|---|---|
api_key * | string | Paxmod API key for the project. |
examples * | array | Messages to test, up to 50. |
policy | string | Draft policy in plain English, up to 1,000 characters. Leave out to test the saved policy. |
threshold | number | Flag above this score, 0 to 1. Leave out to use the project's setting. |
test_word_rules Test word rules
Shows what a project's word rules do to each message: block (flag without checking), bypass (pass without checking), or scan with the text rewritten by remove and replace rules. Send draft rules to try changes before saving them. No model call, nothing stored, no credits used.
| Parameter | Type | Description |
|---|---|---|
api_key * | string | Paxmod API key for the project. |
messages * | array | Messages to test, up to 50. |
word_rules | array | Draft rules. Leave out to test the saved ones. Whole words, case insensitive. |
list_projects List my Paxmod projects
Lists the signed-in user's Paxmod projects: their own and those in organizations they belong to, with each project's id, name, type (text or image), mode (standard or advanced), organization and the user's role. API keys are not included.
get_project_settings Get project settings
Returns a project's moderation settings: type, mode, categories and thresholds, the Advanced mode policy, and word rules. The API key is not included.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The project's id, from list_projects. |
get_usage Get project usage
Returns how many messages a project has sent per day over the last 30 days (up to 90), plus the total for the current calendar month. Counts are updated through the day.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The project's id, from list_projects. |
days | number | How many days back, 1 to 90. Default 30. |
test_policy_on_project Test a policy on my project
Runs example messages against one of the user's Advanced mode projects, with a draft policy or the saved one, and says which would be flagged, with a score and reason for each. Mark each example with expect "flag" or "pass" and the summary counts how many came back as expected. The project's word rules run first, as they do live. Nothing is stored and no credits are used. Up to 50 examples per call.
| Parameter | Type | Description |
|---|---|---|
examples * | array | Messages to test, up to 50. |
project_id * | string | The project's id, from list_projects. |
policy | string | Draft policy in plain English, up to 1,000 characters. Leave out to test the saved policy. |
threshold | number | Flag above this score, 0 to 1. Leave out to use the project's setting. |
list_flagged_messages List flagged messages
Lists a project's most recent flagged messages, newest first, with the reason, confidence, player id, context id and any reviewer verdict (TP or FP). Filter by date, category or player. Up to 50 per call. Not available for organizations that keep player data in a separate region unless Paxmod has enabled it.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The project's id, from list_projects. |
category | string | Only this flag reason, for example Harassment. |
limit | number | How many, 1 to 50. Default 20. |
since | string | Only messages after this date or time (ISO 8601), for example 2026-11-01. |
user_id | string | Only this player's messages (exact id). |
get_player_history Get a player's flag history
Returns one player's flagged messages in a project, newest first (up to 50), with a count by reason. Use the player id the game or app sends as user_id. Not available for organizations that keep player data in a separate region unless Paxmod has enabled it.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The project's id, from list_projects. |
user_id * | string | The player's id (exact). |
limit | number | How many messages, 1 to 50. Default 50. |
save_policy Save a project's policy
Saves a new Advanced mode policy on one of the user's projects, replacing the current one. Returns the previous policy so it can be put back. Live traffic uses the new policy within about 5 minutes. Only for Advanced mode text projects. Needs owner, admin or editor access.
| Parameter | Type | Description |
|---|---|---|
policy * | string | The policy in plain English, up to 1000 characters. |
project_id * | string | The project's id, from list_projects. |
save_word_rules Save a project's word rules
Replaces a text project's word rules. Each rule has a term (whole word, case insensitive) and a mode: block (flag without checking), bypass (pass without checking), remove (strip the word before checking) or substitute (swap in replacement before checking). Returns the previous rules so they can be put back. Live within about 5 minutes. Up to 500 rules. Needs owner, admin or editor access.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The project's id, from list_projects. |
word_rules * | array | The full new set of rules. An empty list removes them all. |
review_flagged_messages Mark flagged messages right or wrong
Records a reviewer verdict on flagged messages: TP (rightly flagged), FP (wrongly flagged) or null (clear the verdict). The same verdicts as the console's review queue. Up to 100 messages per call, by message_id from list_flagged_messages. Needs owner, admin or editor access.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The project's id, from list_projects. |
reviews * | array |
set_player_action Warn or ban a player
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.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
project_id * | string | The project's id, from list_projects. |
reason * | string | Why, up to 500 characters. Kept with the action. |
user_id * | string | The player's id (exact), as the app sends it. |
clear_player_action Clear a player's warning or ban
Removes a warning or ban from a player in a project, so their messages are checked as normal again. Returns what was removed. Needs owner, admin or editor access.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The project's id, from list_projects. |
user_id * | string | The player's id (exact). |