Paxmod

v1.2.0
com.paxmod/paxmod Checked 3 days ago Published 12 days ago

Content 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.

ParameterTypeDescription
namestringOptional project name, for example the game's name.
sourcestringOptional: 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).

ParameterTypeDescription
api_key *stringPaxmod API key for the project.
message *stringThe message to check, up to 5000 characters.
context_idstringOptional: the chat, channel or match it was sent in.
user_idstringOptional: 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.

ParameterTypeDescription
api_key *stringPaxmod API key for the project.
examples *arrayMessages to test, up to 50.
policystringDraft policy in plain English, up to 1,000 characters. Leave out to test the saved policy.
thresholdnumberFlag 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.

ParameterTypeDescription
api_key *stringPaxmod API key for the project.
messages *arrayMessages to test, up to 50.
word_rulesarrayDraft 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.

ParameterTypeDescription
project_id *stringThe 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.

ParameterTypeDescription
project_id *stringThe project's id, from list_projects.
daysnumberHow 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.

ParameterTypeDescription
examples *arrayMessages to test, up to 50.
project_id *stringThe project's id, from list_projects.
policystringDraft policy in plain English, up to 1,000 characters. Leave out to test the saved policy.
thresholdnumberFlag 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.

ParameterTypeDescription
project_id *stringThe project's id, from list_projects.
categorystringOnly this flag reason, for example Harassment.
limitnumberHow many, 1 to 50. Default 20.
sincestringOnly messages after this date or time (ISO 8601), for example 2026-11-01.
user_idstringOnly 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.

ParameterTypeDescription
project_id *stringThe project's id, from list_projects.
user_id *stringThe player's id (exact).
limitnumberHow 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.

ParameterTypeDescription
policy *stringThe policy in plain English, up to 1000 characters.
project_id *stringThe 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.

ParameterTypeDescription
project_id *stringThe project's id, from list_projects.
word_rules *arrayThe 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.

ParameterTypeDescription
project_id *stringThe 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.

ParameterTypeDescription
action *string
project_id *stringThe project's id, from list_projects.
reason *stringWhy, up to 500 characters. Kept with the action.
user_id *stringThe 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.

ParameterTypeDescription
project_id *stringThe project's id, from list_projects.
user_id *stringThe player's id (exact).