Iblai api agent safety
Agent skills + a chat MCP server to operate the ibl.ai platform via its REST API. Install: npx skills add iblai/api
npx -y skills add iblai/api --skill iblai-api-agent-safetyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Configure an ibl.ai agent's moderation and safety systems via the platform API — enable flags, system prompts and responses (saved through the agent settings endpoint) — and review or delete flagged-prompt moderation logs. Use when setting guardrails or auditing flagged content.
SKILL.md
3.3 KB, as published. Nobody here has run it
iblai-api-agent-safety
Configure an agent's moderation and safety systems via the API: the moderation
and safety enable flags, system prompts, and responses (all saved through the
single settings/ endpoint), plus reviewing and deleting flagged-prompt
moderation logs. Use when setting guardrails or auditing flagged content.
Auth & conventions
- Base URL:
https://api.iblai.app - Header:
Authorization: Api-Token $IBLAI_API_KEYon every request. - Path vars:
{org}=$IBLAI_ORG,{username}=$IBLAI_USERNAME,{mentor}= the agent's unique id (e.g.d17dc729-60fd-4363-81a0-f67d9318b03e). - Settings writes go through one endpoint —
PUT
…/users/{username}/mentors/{mentor}/settings/withmultipart/form-data— sending only the changed field(s). - Not connected yet? Run
/iblai-api-loginfirst to populateIBLAI_ORG,IBLAI_USERNAME, andIBLAI_API_KEY.
Reads
- GET
https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/users/{username}/mentors/{mentor}/settings/— load moderation/safety prompts, responses, and enable flags. - GET
https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/users/{username}/moderation-logs/?mentor={mentor}&page={n}&page_size={n}&search={q}&target_system={Moderation System|Safety System}&start_time={iso}&end_time={iso}— list flagged prompts.
Writes
- PUT
…/users/{username}/mentors/{mentor}/settings/— update moderation/safety fields (multipart/form-data, send only changed keys):{ "enable_moderation": "boolean", "enable_safety_system": "boolean", "moderation_system_prompt": "string", "moderation_response": "string", "safety_system_prompt": "string", "safety_response": "string" } - DELETE
https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/users/{username}/moderation-logs/{id}/— delete a flagged log (no body). Destructive — confirm with the user first.
Example
Enable the moderation system and set its system prompt and response (only the changed fields are sent):
curl -X PUT \
"https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/$MENTOR/settings/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-F "enable_moderation=true" \
-F "moderation_system_prompt=Flag any request for medical, legal, or financial advice." \
-F "moderation_response=I can't help with that. Please consult a licensed professional."
Notes
- A field left out of the PUT is left unchanged — never resend the whole object.
- Safety and moderation prompts/responses/flags all persist through the same
settings/endpoint as the rest of the agent's configuration. target_systemfilters flagged prompts by which system tripped — eitherModeration SystemorSafety System; combine withsearch,start_time, andend_timeto narrow an audit.- Deleting a moderation log only removes the audit record — it does not change the agent's safety configuration.