Skip to main content
All tools are rail_-prefixed. Each description tells the agent what the tool does, when to use it, when not to, its cost, and its latency.

Evaluation and guardrails

rail_evaluate

Score AI-generated content across the 8 RAIL dimensions (Fairness, Safety, Reliability, Transparency, Privacy, Accountability, Inclusivity, User Impact).
ParameterTypeDefault
contentstring (10–10,000 chars)required
modebasic | deepbasic
dimensionsstring[]all
domaingeneral | healthcare | finance | legal | education | codegeneral
basic is ~1 credit and under 1s; deep is ~3 credits and 2–5s and adds explanations, issues, and suggestions.

rail_check_compliance

Check content against regulatory frameworks: gdpr, ccpa, hipaa, eu_ai_act, india_dpdp, india_ai_gov. Up to 5 per call with a cross-framework summary. 5–10 credits.
ParameterType
contentstring
frameworksstring[] (1–5)

rail_detect_injection

Detect prompt injection in untrusted text before acting on it. Returns the verdict only — never the analyzed text. 0.5 credits, under 500ms.
ParameterType
textstring

rail_evaluate_tool_call

Evaluate a proposed tool call before executing it. Returns allow, warn, or block. Treat block as a hard stop. 1.5–3.0 credits.
ParameterTypeDefault
tool_namestringrequired
argumentsobjectrequired
contextstringnone
modebasic | deepbasic

rail_scan_tool_result

Scan a tool’s output for PII and second-order injection. Returns a verdict, PII types and offsets, and a redacted copy of the text — never raw values. 0.5–1.0 credits.
ParameterType
tool_namestring
resultstring

rail_safe_regenerate

Evaluate content and, if it scores below threshold, iteratively regenerate it server-side until it passes (up to 5 iterations). Slow: tens of seconds, 1–9 credits.
ParameterTypeDefault
contentstringrequired
thresholdfloat (0–10)7.0
dimensionsstring[]all

India DPDP

rail_dpdp_scan

Scan text for Indian personal data under the DPDP Act 2023: Aadhaar (Verhoeff-validated), PAN, mobile, UPI, passport, voter ID, driving license, IFSC, bank account, GSTIN, plus child signals and purpose drift.
ParameterTypeDefault
textstringrequired
modedetect | mask | blockmask
detect returns findings with offsets and masked values only; mask returns the masked text; block returns a verdict.

rail_dpdp_gate

Real-time DPDP processing gate. Returns allow, block, or require_action enforcing child protection, cross-border transfer rules, and consent.
ParameterTypeDefault
activityprocess_data | make_decision | share_data | transfer_cross_border | serve_ad | track_userrequired
purposestringrequired
data_categoriesstring[]none
user_idstringagent-subject
session_idstringnone

rail_dpdp_compliance

DPDP workflow operations selected by action:
actionpayload shape
emit{ "events": [{ "type", "data" }], "session_id"? } (the only write)
require{ "session_id", "workflow_step", "context"? }
evidence{ "type", "params" } (Pro+ only)
session{ "action": "create" | "get", "config"? | "session_id"? }
timers{ "status"?, "type"?, "approaching_days"? }
Sessions are isolated per API key.

Resources

Free, read-only, zero credits:
  • rail://framework/dimensions — the 8 dimensions with definitions and the weights/thresholds configured for your application.
  • rail://account/capabilities — your plan, enabled features, modes, frameworks, and limits.