classify_calls_batch
Batch-classify unclassified calls on demand using OpenAI Moderation. Process up to 100 records per request for instant safety assessment.
Instructions
Batch safety-classify unclassified calls on demand (via OpenAI Moderation, POST /v1/safety-assessments/scan-batch). Complements the cron (every 15 min, 50 records) with a "right now" path — an AI agent can finish "classify all of last week's calls" in one prompt. Pro+ only (Free relies on the cron); the backend enforces the plan gate and budget gate. maxRecords (1-100, default 50); returns { scanned, assessed, flagged, failures, skipped }. Recorded with source='mcp' (distinguished from cron entries, so the dashboard can visualize on-demand classification). Audit: emits a safety.scan_batch_run event to the audit log.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "classify_calls_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxRecords | No | Max records scanned per request (1-100, default 50). Capped considering OpenAI's 1000 RPM limit and the 10s CPU/IO limit per worker request |