WhiteBoxXAI

v0.3.2
io.github.AgentaFlow/whiteboxxai-mcp Checked 8 hours ago Published 1 month ago

AI observability, explainability and governance: drift, fairness, ISO 42001, risk register.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

whitebox_models_register

Register a new model in WhiteBoxXAI's model registry. Args: name: Model name (alphanumeric, spaces, dashes, underscores only) model_type: e.g. "classification", "regression" features: List of input feature names baseline_metrics: Baseline performance metrics, e.g. {"accuracy": 0.94} framework: ML framework (sklearn, pytorch, tensorflow, etc.) version: Model version (semantic versioning, e.g. "1.0.0") description: Human-readable description target_variable: Name of the target/label variable…

ParameterTypeDescription
baseline_metrics *object
features *array
model_type *string
name *string
description
fairness_attributes
framework
tags
target_variable
version

whitebox_models_get

Get a registered model's full record by its model_id.

ParameterTypeDescription
model_id *string

whitebox_models_list

List registered models, optionally filtered by status/type/tags/search text. Args: skip: Number of results to skip (pagination) limit: Maximum results to return (1-1000) status_filter: One of ACTIVE, INACTIVE, DEPRECATED, ARCHIVED model_type: e.g. "classification", "regression" search: Free-text search over name/description tags: Comma-separated list of tags to filter by

ParameterTypeDescription
limitinteger
model_type
search
skipinteger
status_filter
tags

whitebox_models_update

Partially update a model's metadata. Only provided fields are changed.

ParameterTypeDescription
model_id *string
description
fairness_attributes
tags
target_variable

whitebox_models_update_status

Update a model's status: ACTIVE, INACTIVE, DEPRECATED, or ARCHIVED.

ParameterTypeDescription
model_id *string
new_status *string

whitebox_models_versions

List all versions of a model by name, newest first.

ParameterTypeDescription
model_name *string
limitinteger
skipinteger

whitebox_models_latest

Get the most recently created version of a model by name.

ParameterTypeDescription
model_name *string

whitebox_models_update_baseline

Refresh a model's baseline metrics/profile, e.g. after retraining. This baseline is what drift detection compares recent predictions against, so update it whenever the model is retrained or revalidated.

ParameterTypeDescription
baseline_metrics *object
model_id *string
baseline_data_count
baseline_data_hash

whitebox_models_archive

Archive a model (soft delete; can be restored later).

ParameterTypeDescription
model_id *string

whitebox_models_restore

Restore a previously archived model to active status.

ParameterTypeDescription
model_id *string

whitebox_models_delete

Permanently delete a model. This is a hard delete and cannot be undone; prefer whitebox_models_archive for reversible removal.

ParameterTypeDescription
model_id *string

whitebox_models_compare_versions

Compare two Git-backed model versions, returning architecture changes, parameter deltas, and breaking change flags.

ParameterTypeDescription
version1_id *string
version2_id *string

whitebox_models_version_changelog

Generate a markdown changelog between two Git-backed model versions.

ParameterTypeDescription
version1_id *string
version2_id *string

whitebox_models_list_git_versions

List Git-backed version sources for a model, newest first.

ParameterTypeDescription
model_id *string
limitinteger

whitebox_models_architecture_timeline

Get the architecture changes timeline across all versions of a model.

ParameterTypeDescription
model_id *string

whitebox_predictions_log

Log a single model prediction for monitoring. Args: model_id: Registered model's ID input_data: Input features as a JSON object output_data: The model's prediction/output as a JSON object prediction_id: Optional external prediction ID (generated if omitted) latency_ms: Prediction latency in milliseconds metadata: Additional free-form metadata

ParameterTypeDescription
input_data *object
model_id *string
output_data *object
latency_ms
metadata
prediction_id

whitebox_predictions_log_batch

Log up to 1000 predictions in a single batch call. Args: model_id: Registered model's ID predictions: List of objects, each with "input_data" and "output_data" keys (and optionally "prediction_id", "latency_ms", "metadata") Returns: Summary: {total, logged, failed, errors}

ParameterTypeDescription
model_id *string
predictions *array

whitebox_predictions_get

Get a single logged prediction by its prediction_id.

ParameterTypeDescription
prediction_id *string

whitebox_predictions_query

Query logged predictions for a model, optionally within a time range. Args: model_id: Registered model's ID (required) start_time: ISO-8601 timestamp; only predictions after this time end_time: ISO-8601 timestamp; only predictions before this time limit: Maximum results to return (1-1000) offset: Number of results to skip

ParameterTypeDescription
model_id *string
end_time
limitinteger
offsetinteger
start_time

whitebox_predictions_stats

Get prediction volume/latency statistics for a model. Defaults to the trailing 24 hours if no time range is given.

ParameterTypeDescription
model_id *string
end_time
start_time

whitebox_predictions_recent

Get the most recent predictions for a model (max 100).

ParameterTypeDescription
model_id *string
limitinteger

whitebox_prompts_list_templates

List all prompt governance templates for the authenticated tenant.

whitebox_prompts_get_template

Get details of a specific prompt template by ID.

ParameterTypeDescription
template_id *string

whitebox_prompts_create_template

Create a new prompt template container for versioning.

ParameterTypeDescription
name *string
description
tags

whitebox_prompts_list_versions

List all append-only governed versions for a prompt template.

ParameterTypeDescription
template_id *string

whitebox_prompts_get_version

Get details, lifecycle stage, and verification status of a prompt version.

ParameterTypeDescription
template_id *string
version_id *string

whitebox_prompts_create_version

Create a new governed prompt version in 'design' lifecycle stage.

ParameterTypeDescription
template_id *string
user_message_template *string
commit_hash
model_id
model_name
system_message
temperature
tool_schemas
version_tag

whitebox_prompts_advance_stage

Advance a prompt version through the lifecycle stages (design -> verify -> deploy -> retired). Promotion from verify to deploy requires a verified benchmark run.

ParameterTypeDescription
target_stage *string
template_id *string
version_id *string
notes
verification_run_id

whitebox_prompts_deploy

Promote a prompt version to active production deployment. Enforces single active deployment per template and requires benchmark verification (unless force=True).

ParameterTypeDescription
template_id *string
version_id *string
deployment_notes
forceboolean

whitebox_prompts_rollback

Emergency rollback to a target version or the most recently verified version.

ParameterTypeDescription
template_id *string
reason
target_version_id

whitebox_prompts_compute_drift

Compute prompt drift analysis comparing production completions with baseline expectations.

ParameterTypeDescription
template_id *string
version_id *string
baseline_dataset_id
sample_sizeinteger

whitebox_prompts_list_drift_reports

List historical prompt drift reports for a prompt version.

ParameterTypeDescription
template_id *string
version_id *string

whitebox_prompts_get_drift_report

Get a specific prompt drift report with metrics, divergence, and auditor verdict.

ParameterTypeDescription
report_id *string
template_id *string
version_id *string

whitebox_prompts_get_incidents

Get security incidents and alerts associated with a prompt version.

ParameterTypeDescription
template_id *string
version_id *string

whitebox_drift_detect

Run an ad-hoc data drift check for a model (not persisted as a report). Compares the most recent `window_size` predictions against the model's baseline data using statistical tests (KS, chi-squared, Jensen-Shannon, PSI) per feature. This can take several seconds for large window sizes since it computes synchronously. Args: model_id: Registered model's ID window_size: Number of recent predictions to analyze (100-10000) feature_names: Optional subset of features to analyze (all if omitted)

ParameterTypeDescription
model_id *string
feature_names
window_sizeinteger

whitebox_drift_create_report

Run drift analysis and persist the result as a drift report. Use this (rather than whitebox_drift_detect) when the result should be retrievable later via whitebox_drift_get_report / _list_reports.

ParameterTypeDescription
model_id *string
window_sizeinteger

whitebox_drift_list_reports

List drift reports for a model, most recent first.

ParameterTypeDescription
model_id *string
limitinteger
skipinteger

whitebox_drift_get_report

Get a specific drift report, including per-feature statistics.

ParameterTypeDescription
model_id *string
report_id *string

whitebox_drift_trend

Get a model's drift trend over time (1-90 days).

ParameterTypeDescription
model_id *string
daysinteger

whitebox_fairness_audit

Run a bias/fairness audit on model predictions across demographic groups. Unlike most WhiteBoxXAI tools, this is not a data-source query: the caller must already have the ground-truth labels, predicted labels, and per-attribute group assignments in hand (e.g. pulled via whitebox_predictions_query and joined with demographic data), all aligned to the same sample order. Args: model_id: Registered model's ID sensitive_attributes: Protected attributes to analyze (race, gender, age, ethnicity, religion, disabi…

ParameterTypeDescription
group_data *object
model_id *string
sensitive_attributes *array
y_pred *array
y_true *array
metrics_to_compute
y_prob

whitebox_fairness_get_audit

Get full bias audit results by audit_id.

ParameterTypeDescription
audit_id *string

whitebox_fairness_list_audits

List bias audit summaries, optionally filtered to one model.

ParameterTypeDescription
limitinteger
model_id
offsetinteger

whitebox_fairness_bias_history

Get a model's historical bias/fairness trend (1-365 days).

ParameterTypeDescription
model_id *string
daysinteger

whitebox_fairness_metric_history

Get history for one specific fairness metric on a model. Args: model_id: Registered model's ID metric_type: One of demographic_parity, equal_opportunity, equalized_odds, disparate_impact, predictive_parity, calibration, false_positive_rate_parity, false_negative_rate_parity, statistical_parity_difference, average_odds_difference days: Lookback window in days (1-365)

ParameterTypeDescription
metric_type *string
model_id *string
daysinteger

whitebox_fairness_latest_audit

Get the most recent bias audit for a model.

ParameterTypeDescription
model_id *string

whitebox_explanations_generate

Generate a SHAP/LIME explanation and block until it's computed. For a fast model this is fine; for slow models prefer whitebox_explanations_generate_async + polling instead, since this call has no timeout of its own. Args: model_id: Registered model's ID instance: Feature values for the instance to explain, e.g. {"age": 42, "income": 50000} method: "shap" or "lime" (uses the model's configured default if omitted) prediction_id: Optional ID of the prediction this explanation is for num_features: Number…

ParameterTypeDescription
instance *object
model_id *string
desired_classstring
features_to_vary
method
num_featuresinteger
num_samplesinteger
prediction_id
total_cfsinteger
use_cacheboolean

whitebox_explanations_generate_bulk

Start explanation generation for multiple instances at once (non-blocking). Dispatches one Celery task per instance (max 100 instances per call) and returns immediately with one PENDING explanation_id per instance. Poll whitebox_explanations_get for each ID, same as whitebox_explanations_generate_async. Args: model_id: Registered model's ID instances: Feature values for each instance to explain (max 100) method: "shap" or "lime" (uses the model's configured default if omitted) num_features: Number of top…

ParameterTypeDescription
instances *array
model_id *string
desired_classstring
features_to_vary
method
num_featuresinteger
num_samplesinteger
parallelboolean
total_cfsinteger

whitebox_explanations_generate_async

Start real SHAP/LIME explanation generation for a model instance. Returns immediately with a PENDING explanation_id -- this does NOT block until the explanation is ready. Computation happens on a Celery worker and can take several seconds to tens of seconds. Call whitebox_explanations_get with the returned explanation_id and poll (e.g. every 1-2 seconds) until status is no longer "pending" before reading feature_weights. Args: model_id: Registered model's ID instance: Feature values for the instance to explain, e…

ParameterTypeDescription
instance *object
model_id *string
desired_classstring
features_to_vary
method
num_featuresinteger
num_samplesinteger
prediction_id
total_cfsinteger

whitebox_explanations_get

Get an explanation by ID, including its status and (once ready) results. Poll this after whitebox_explanations_generate_async: while status is "pending" the explanation is still computing on a background worker and feature_weights will be empty. Poll again until status is "completed" (read feature_weights, base_value, score) or "failed" (read the error).

ParameterTypeDescription
explanation_id *string

whitebox_explanations_list_by_model

List explanations for a model, optionally filtered by method or status.

ParameterTypeDescription
model_id *string
limitinteger
method
offsetinteger
status

whitebox_explanations_get_by_prediction

Get the explanation associated with a prediction, if one exists.

ParameterTypeDescription
prediction_id *string

whitebox_explanations_stats

Get aggregated explanation statistics for a model (counts by method/status, average computation time).

ParameterTypeDescription
model_id *string

whitebox_explanations_set_config

Create or update a model's explanation configuration (upsert).

ParameterTypeDescription
model_id *string
auto_explainboolean
cache_enabledboolean
cache_ttl_hoursinteger
default_methodstring
enabledboolean
lime_config
shap_config
visualization_config

whitebox_explanations_get_config

Get a model's explanation configuration.

ParameterTypeDescription
model_id *string

whitebox_explanations_delete_config

Delete a model's explanation configuration.

ParameterTypeDescription
model_id *string

whitebox_explanations_compare

Compare 2-20 explanations against each other. comparison_type: "feature_importance", "instance_similarity", or "method_agreement".

ParameterTypeDescription
explanation_ids *array
comparison_typestring

whitebox_explanations_visualize

Get visualization data for a single explanation. plot_type: "waterfall", "force", or "feature_importance".

ParameterTypeDescription
explanation_id *string
plot_type *string
config
max_featuresinteger

whitebox_explanations_visualize_multi

Get visualization data spanning multiple explanations. plot_type: "summary", "decision", or "dependence". feature_index/ interaction_index are used for dependence plots; highlight_index highlights one explanation in decision plots.

ParameterTypeDescription
explanation_ids *array
plot_type *string
feature_index
highlight_index
interaction_index
max_featuresinteger

whitebox_risk_register_list

List AI risk register entries, optionally filtered. Args: status: One of identified, assessed, mitigation_planned, mitigated, closed severity: One of low, medium, high, critical category: Risk category (org-specific taxonomy, e.g. bias, drift, security) model_id: Restrict to risks linked to one registered model limit: Page size skip: Page offset Returns: {"items": [...], "total": int, "skip": int, "limit": int} -- each item includes `iso42001_clause_refs`, the ISO 42001 clause…

ParameterTypeDescription
category
limitinteger
model_id
severity
skipinteger
status

whitebox_risk_register_get

Get a single AI risk register entry by ID.

ParameterTypeDescription
entry_id *string

whitebox_risk_register_portfolio

Get the likelihood x impact heat map and top open risks across the organization's risk register.

whitebox_governance_list_boards

List governance review boards for the organization.

whitebox_governance_list_review_requests

List governance review requests, optionally filtered. Args: board_id: Restrict to one review board status: One of draft, submitted, under_review, approved, denied, withdrawn

ParameterTypeDescription
board_id
status

whitebox_governance_get_review_request

Get a specific governance review request dossier (board, submitter, decisions, comments, vote tally, and SHA-256 evidence snapshot hash).

ParameterTypeDescription
request_id *string

whitebox_governance_submit_decision

Record a board member's vote on a governance review request. App-only: called by the dossier card's vote buttons, never by the agent. Needs the reviewer's own JWT (the backend refuses organization API keys), two-factor authentication enabled on their account, and a current authenticator code. Refused if the request changed since the dossier was shown. Args: request_id: UUID of the governance review request decision: One of 'approve', 'deny', 'abstain', 'request_changes' evidence_snapshot_hash: `evidence_snaps…

ParameterTypeDescription
decision *string
evidence_snapshot_hash *string
request_id *string
totp_code *string
conditions
justification

whitebox_governance_raci_grid

Get the RACI grid: review requests and their Responsible / Accountable / Consulted / Informed assignments (ISO 42001 Clause 5.3, Annex A.3), optionally scoped to one board.

ParameterTypeDescription
board_id

whitebox_compliance_iso42001_score

Get the organization's ISO/IEC 42001 readiness score and clause breakdown. When `assessed` is False in the response, no control assessments have been recorded yet and numeric scores are 0.0 because of unassessed state, not control failure.

whitebox_compliance_iso42001_gaps

Get the organization's open ISO/IEC 42001 compliance gaps. Args: clause_filter: Optional ISO/IEC 42001 clause prefix (e.g. '4', '8') severity_filter: Optional gap severity filter (e.g. 'high', 'critical')

ParameterTypeDescription
clause_filter
severity_filter

whitebox_compliance_iso42001_status

Get a composite ISO/IEC 42001 readiness scorecard, open gap matrix, and linked AI risk register entries in a single call for the `ui://whitebox/iso42001-status-card` widget.

ParameterTypeDescription
clause_filter
severity_filter

whitebox_compliance_list_frameworks

List all supported compliance frameworks in the Control Catalog (ISO/IEC 42001, GDPR, CCPA, EU AI Act, NIST AI RMF) with control counts.

whitebox_compliance_get_framework_controls

Get the full control catalog for one compliance framework. Args: framework: Framework slug (e.g. 'iso_42001', 'eu_ai_act', 'nist_ai_rmf', 'gdpr', 'ccpa')

ParameterTypeDescription
framework *string

whitebox_llm_xai_attention

Analyze transformer attention patterns for a prompt/completion pair. Extracts and aggregates multi-head attention weights to show what the model focused on. Requires attention_weights to be supplied (this endpoint does not itself run the model).

ParameterTypeDescription
prompt *string
aggregate_headsboolean
attention_weights
completion
layers
llm_log_id
model_id
top_kinteger

whitebox_llm_xai_token_importance

Calculate token-level importance scores for a prompt/completion pair. method: "gradient", "attention", or "perturbation".

ParameterTypeDescription
completion *string
prompt *string
llm_log_id
methodstring
model_id
top_kinteger

whitebox_llm_xai_prompt_sensitivity

Test prompt robustness by perturbing it and measuring output stability.

ParameterTypeDescription
baseline_output *string
prompt *string
llm_log_id
model_id
num_perturbationsinteger
perturbation_typestring

whitebox_llm_xai_counterfactuals

Generate minimal prompt edits that change the model's output, useful for understanding decision boundaries.

ParameterTypeDescription
original_output *string
prompt *string
llm_log_id
max_editsinteger
model_id
num_candidatesinteger
search_strategystring
target_changestring

whitebox_llm_xai_debug_prompt

Assess prompt quality across multiple dimensions and get improvement recommendations.

ParameterTypeDescription
prompt *string
check_clarityboolean
check_completenessboolean
check_consistencyboolean
check_specificityboolean
llm_log_id
model_id
prompt_version_id
suggest_improvementsboolean

whitebox_llm_xai_get_explanation

Get a specific attention/token-importance/sensitivity/counterfactual explanation by ID.

ParameterTypeDescription
explanation_id *string

whitebox_llm_xai_get_prompt_analysis

Get a specific prompt debug analysis by ID.

ParameterTypeDescription
analysis_id *string

whitebox_llm_xai_list_explanations

List explanations, optionally filtered by LLM log, type (attention_analysis/token_importance/sensitivity_analysis/ counterfactual_generation), or model.

ParameterTypeDescription
explanation_type
limitinteger
llm_log_id
model_id

whitebox_llm_xai_list_prompt_analyses

List prompt analyses, optionally filtered by similar prompt text, model, or minimum quality score (0-1).

ParameterTypeDescription
limitinteger
min_quality_score
model_id
prompt

whitebox_llm_xai_stats

Get aggregated LLM-XAI usage statistics (counts by explanation type, average computation time, prompt quality).

ParameterTypeDescription
daysinteger
model_id

whitebox_llm_xai_visualize_attention

Get attention-heatmap visualization data for an explanation (for rendering with Plotly/D3.js-style tools).

ParameterTypeDescription
explanation_id *string

whitebox_llm_xai_visualize_token_importance

Get token-importance bar-chart visualization data for an explanation.

ParameterTypeDescription
explanation_id *string
top_kinteger

whitebox_llm_xai_batch_analyze

Run multiple explanation analyses on a single LLM log in one call (more efficient than calling each analysis tool separately).

ParameterTypeDescription
llm_log_id *string
include_attentionboolean
include_prompt_debugboolean
include_sensitivityboolean
include_token_importanceboolean

whitebox_llm_monitoring_log_call

Log a single LLM call with real token/cost/latency data.

ParameterTypeDescription
latency_ms *number
model_name *string
prompt *string
provider *string
completion
completion_tokens
environment
error_message
finish_reason
max_tokens
model_id
prompt_tokens
prompt_version_id
request_id
session_id
status
temperature
user_id

whitebox_llm_monitoring_log_calls_batch

Log multiple LLM calls in one request (max 1000). Each dict is shaped like whitebox_llm_monitoring_log_call's arguments.

ParameterTypeDescription
logs *array

whitebox_llm_monitoring_get_log

Get a single LLM log by ID.

ParameterTypeDescription
log_id *string

whitebox_llm_monitoring_query_logs

Query LLM logs with filters and pagination. Returns {logs, total, skip, limit}. Passing a model_id owned by the caller's organization is the only fully tenant-scoped way to call this today (results are otherwise platform-wide).

ParameterTypeDescription
end_time
environment
limitinteger
max_cost
max_latency_ms
min_cost
min_latency_ms
model_id
model_name
provider
session_id
skipinteger
start_time
status
user_id

whitebox_llm_monitoring_session_logs

Get all LLM logs for a specific session.

ParameterTypeDescription
session_id *string

whitebox_llm_monitoring_usage_stats

Get aggregated LLM usage statistics (tokens, cost, latency, by_model).

ParameterTypeDescription
end_time
environment
model_id
provider
start_time

whitebox_llm_monitoring_recent

Get recent LLM logs (requires a model_id owned by the caller's org).

ParameterTypeDescription
limitinteger
model_id
provider

whitebox_llm_monitoring_cost_breakdown

Get detailed cost breakdown (platform-wide aggregate).

ParameterTypeDescription
end_time
include_environmentboolean
include_userboolean
start_time

whitebox_llm_monitoring_performance

Get LLM latency/throughput performance metrics.

ParameterTypeDescription
end_time
model_id
provider
start_time

whitebox_llm_monitoring_usage_stats_detailed

Get detailed, grouped usage statistics (granularity: hour/day/week/month).

ParameterTypeDescription
end_time *string
start_time *string
environment
granularitystring
model_id
model_name
provider
user_id

whitebox_llm_monitoring_cost_threshold_alert

Check whether costs over the recent period exceed a threshold.

ParameterTypeDescription
period_minutesinteger
thresholdnumber

whitebox_llm_monitoring_latency_threshold_alert

Check whether average latency over the recent period exceeds a threshold.

ParameterTypeDescription
period_minutesinteger
threshold_msnumber

whitebox_llm_monitoring_error_rate_alert

Check whether the error rate over the recent period exceeds a threshold.

ParameterTypeDescription
period_minutesinteger
threshold_percentnumber

whitebox_llm_monitoring_cleanup_logs

Delete LLM logs older than `days`. Admin-only on the backend.

ParameterTypeDescription
daysinteger

whitebox_rag_log_retrieval

Log a retrieval operation, with real quality metrics computed server-side when ground_truth_ids is supplied.

ParameterTypeDescription
query *string
results *array
retrieval_method *string
top_k *integer
answer
answer_latency_ms
environment
ground_truth_ids
llm_log_id
metadata
model_id
query_typestring
retrieval_latency_ms
retrieval_params
session_id
user_id

whitebox_rag_get_retrieval

Get a specific retrieval log by ID.

ParameterTypeDescription
log_id *string

whitebox_rag_list_retrievals

Query retrieval logs for a model. model_id is required (owned by the caller's organization) until organization-wide RAG log scoping ships.

ParameterTypeDescription
model_id *string
end_time
environment
limitinteger
offsetinteger
retrieval_method
session_id
start_time
user_id

whitebox_rag_stats

Get aggregated RAG statistics (precision/recall/MRR/NDCG/relevance/latency).

ParameterTypeDescription
end_time
environment
model_id
start_time

whitebox_rag_create_evaluation

Create a RAG evaluation, aggregating already-logged retrievals for each query. Queries with no matching logged retrieval are reported in detailed_results.queries_without_data, not silently scored as zero.

ParameterTypeDescription
name *string
queries *array
description
environment
evaluation_typestring
ground_truth
metadata
model_id
system_version

whitebox_rag_get_evaluation

Get a specific RAG evaluation by ID.

ParameterTypeDescription
evaluation_id *string

whitebox_rag_list_evaluations

List RAG evaluations with optional filters.

ParameterTypeDescription
environment
evaluation_type
limitinteger
model_id
offsetinteger

whitebox_rag_metrics_precision

Get Precision@K metrics for the given K values (default [1, 3, 5, 10]). A K with no scoreable logged retrievals returns null, not a fabricated 0.0.

ParameterTypeDescription
end_time
environment
k_values
model_id
start_time

whitebox_rag_metrics_relevance

Get average relevance metrics (context/answer/faithfulness).

ParameterTypeDescription
end_time
model_id
start_time

whitebox_safety_analyze

Analyze content for toxicity, PII, and harmful content. Returns full safety analysis: toxicity_scores, pii_results, harmful_content, safety_status, flagged_categories, etc.

ParameterTypeDescription
content *string
check_harmfulboolean
check_piiboolean
check_toxicityboolean
content_typestring
environment
languagestring
llm_log_id
model_id
session_id
user_id

whitebox_safety_analyze_batch

Analyze multiple content items in one request (max 100). Items that fail analysis are silently skipped, not raised.

ParameterTypeDescription
contents *array
check_harmfulboolean
check_piiboolean
check_toxicityboolean
content_typestring
environment
languagestring
model_id
user_id

whitebox_safety_get_score

Get a specific safety score by ID.

ParameterTypeDescription
score_id *string

whitebox_safety_get_scores

Query safety analysis scores with filters.

ParameterTypeDescription
contains_pii
end_time
environment
limitinteger
model_id
offsetinteger
safety_status
start_time

whitebox_safety_stats

Get aggregated safety statistics (per-category toxicity averages, flagged categories, PII types).

ParameterTypeDescription
end_time
environment
model_id
start_time

whitebox_safety_create_threshold

Create a safety threshold configuration controlling when content is flagged as unsafe. action_on_violation: "warning", "block", or "alert".

ParameterTypeDescription
name *string
action_on_violationstring
allowed_pii_types
block_piiboolean
description
identity_attack_thresholdnumber
insult_thresholdnumber
max_pii_count
model_id
profanity_thresholdnumber
send_alertsboolean
severe_toxicity_thresholdnumber
sexually_explicit_thresholdnumber
threat_thresholdnumber
toxicity_thresholdnumber

whitebox_safety_list_thresholds

List safety thresholds for the caller's organization.

ParameterTypeDescription
is_active
model_id

whitebox_safety_get_threshold

Get a specific safety threshold by ID.

ParameterTypeDescription
threshold_id *string

whitebox_safety_update_threshold

Update a safety threshold configuration. Only non-null arguments are changed.

ParameterTypeDescription
threshold_id *string
action_on_violation
block_pii
description
is_active
name
send_alerts
toxicity_threshold

whitebox_safety_delete_threshold

Delete a safety threshold configuration.

ParameterTypeDescription
threshold_id *string

whitebox_alerts_create_rule

Create an alert rule with threshold or anomaly-based conditions. conditions: list of {metric_name, operator (gt/gte/lt/lte/eq/ne), threshold, window_minutes?, aggregation?}, combined by logic_operator.

ParameterTypeDescription
alert_type *string
conditions *array
name *string
severity *string
cooldown_minutesinteger
description
is_activeboolean
logic_operatorstring
model_id
notification_channels
throttle_minutesinteger

whitebox_alerts_list_rules

List alert rules for the caller's organization.

ParameterTypeDescription
alert_type
is_active
limitinteger
model_id
skipinteger

whitebox_alerts_get_rule

Get a specific alert rule by ID.

ParameterTypeDescription
rule_id *string

whitebox_alerts_update_rule

Update an alert rule. Only non-null arguments are changed.

ParameterTypeDescription
rule_id *string
conditions
cooldown_minutes
description
is_active
name
severity
throttle_minutes

whitebox_alerts_delete_rule

Delete an alert rule.

ParameterTypeDescription
rule_id *string

whitebox_alerts_evaluate_rule

Test whether an alert rule would trigger given metric values, without creating a real alert instance. Useful for validating a rule before activation.

ParameterTypeDescription
rule_id *string
historical_values
metadata
metric_values
model_id

whitebox_alerts_list_instances

List triggered alert instances with optional filters.

ParameterTypeDescription
alert_type
hours
limitinteger
model_id
rule_id
severity
skipinteger
status

whitebox_alerts_get_instance

Get a specific triggered alert instance by ID.

ParameterTypeDescription
alert_id *string

whitebox_alerts_get_triage_context

Get a triggered alert instance together with its model's latest drift reports and a plain-language triage verdict. Args: alert_id: Triggered alert instance ID drift_report_limit: Number of recent drift reports to include when the alert is associated with a model (default 1)

ParameterTypeDescription
alert_id *string
drift_report_limitinteger

whitebox_alerts_acknowledge

Acknowledge an active alert instance.

ParameterTypeDescription
alert_id *string
user_id *string
notes

whitebox_alerts_resolve

Resolve an alert instance.

ParameterTypeDescription
alert_id *string
user_id *string
resolution_notes

whitebox_alerts_snooze

Snooze an active alert instance for `snooze_minutes` (max 1 week).

ParameterTypeDescription
alert_id *string
snooze_minutes *integer

whitebox_alerts_statistics

Get alert statistics for the organization (counts, severity distribution, mean time to acknowledge/resolve) over the last `hours`.

ParameterTypeDescription
hoursinteger

whitebox_alert_intelligence_detect_correlations

Detect correlations for an alert (temporal, model, feature, and pattern-based relationships to other alerts).

ParameterTypeDescription
alert_id *string
look_back_hoursinteger
min_scorenumber

whitebox_alert_intelligence_get_correlation_clusters

Get clusters of highly correlated alerts -- useful for spotting widespread issues or cascading failures.

ParameterTypeDescription
hours_backinteger
min_cluster_sizeinteger
min_scorenumber

whitebox_alert_intelligence_analyze_root_cause

Analyze potential root causes (data drift, model degradation, feature anomalies, system issues) for an alert.

ParameterTypeDescription
alert_id *string
analyze_historyboolean

whitebox_alert_intelligence_verify_root_cause

Mark a previously computed root cause as verified or rejected.

ParameterTypeDescription
root_cause_id *integer
verified *boolean
notes

whitebox_alert_intelligence_get_similar_incidents

Find past alerts sharing the same root-cause type -- useful for learning from historical resolutions.

ParameterTypeDescription
cause_type *string
limitinteger

whitebox_alert_intelligence_calculate_priority

Compute a weighted priority score (0-100) and level (critical/high/medium/low) for an alert.

ParameterTypeDescription
alert_id *string
business_impact_weightnumber
criticality_weightnumber
history_weightnumber
urgency_weightnumber

whitebox_alert_intelligence_adjust_priority

Manually override a calculated priority. `adjustment_reason` is required justification for the override.

ParameterTypeDescription
adjustment_reason *string
alert_id *string
new_priority_level *string
new_priority_score *number

whitebox_alert_intelligence_get_priority_distribution

Get a breakdown of alerts by priority level.

ParameterTypeDescription
hours_backinteger

whitebox_alert_intelligence_get_priority_queue

Get the prioritized alert queue for triage and assignment.

ParameterTypeDescription
limitinteger

whitebox_alert_intelligence_detect_patterns

Detect recurring temporal/frequency/correlation/anomaly patterns in alerts.

ParameterTypeDescription
hours_backinteger

whitebox_alert_intelligence_get_pattern

Get a specific alert pattern's details.

ParameterTypeDescription
pattern_id *integer

whitebox_alert_intelligence_deactivate_pattern

Mark a pattern inactive (resolved or no longer relevant).

ParameterTypeDescription
pattern_id *integer

whitebox_alert_intelligence_apply_fatigue_reduction

Apply automated throttling/grouping/snoozing to reduce alert noise. Returns a summary of actions taken and recommendations.

ParameterTypeDescription
auto_snooze_thresholdinteger
enable_auto_snoozeboolean
enable_auto_throttlingboolean
enable_intelligent_groupingboolean
grouping_window_minutesinteger
similarity_thresholdnumber

whitebox_alert_intelligence_get_throttle_recommendations

Get recommended alert-throttling rules to reduce fatigue without missing critical issues.

whitebox_alert_intelligence_ml_grouping

Cluster alerts via ML (kmeans/dbscan/hierarchical). Automatically determines the optimal number of clusters if not specified.

ParameterTypeDescription
clustering_methodstring
num_clusters

whitebox_alert_intelligence_temporal_grouping

Group alerts occurring in the same time window with similar characteristics.

ParameterTypeDescription
similarity_thresholdnumber
time_window_minutesinteger

whitebox_alert_intelligence_detect_seasonality

Detect hour-of-day seasonality in alert volume. Real detection from the organization's actual alert history (24 hourly buckets summed across the requested window). Day-of-week/ week-of-month cycles are not computed, so pattern_type is always "hourly" (or "insufficient_data" below a 24-data-point floor), never a fabricated "daily"/"weekly" label.

ParameterTypeDescription
days_backinteger

whitebox_alert_intelligence_enhanced_trend_analysis

Combine real alert-volume time-series data with a real hour-of-day seasonality estimate, a numpy.polyfit trend prediction (with an R²-based confidence score), and real z-score anomaly detection over the same window -- all computed from the organization's actual alert history. Not a full forecasting model (no ARIMA/Prophet).

ParameterTypeDescription
hours_backinteger
metricstring

whitebox_alert_intelligence_forecast_volume

Forecast future alert volume with confidence intervals. Uses a least-squares linear trend (numpy.polyfit) over real historical hourly alert counts, shaped by the organization's real hour-of-day seasonality. NOT ARIMA/Prophet. Forward-looking anomaly_predictions are intentionally always empty -- predicting future anomalies needs its own model, out of scope here; anomaly detection over *observed* data is available via whitebox_alert_intelligence_enhanced_trend_analysis instead. Falls back to an honestly-labeled zeroed forecast…

ParameterTypeDescription
forecast_hoursinteger

whitebox_alert_management_get_history

Get the full action timeline (triggered/acknowledged/snoozed/ resolved/escalated/commented) for an alert.

ParameterTypeDescription
alert_id *string

whitebox_alert_management_get_analytics

Get comprehensive alert analytics (counts, MTTA/MTTR, distributions, escalation metrics) for the caller's organization. `start_time`/`end_time` are ISO 8601 timestamps.

ParameterTypeDescription
end_time
start_time

whitebox_alert_management_get_trend

Get alert volume as a time series between `start` and `end` (ISO 8601 timestamps), bucketed by `interval` (hour/day/week).

ParameterTypeDescription
end *string
start *string
filters
group_by
intervalstring

whitebox_alert_management_get_velocity

Get alert generation rate trends (hour-over-hour, day-over-day, rolling averages) for the caller's organization.

whitebox_alert_management_get_grouping

Group active alerts by a dimension: "type", "severity", "model", or "rule" -- useful for spotting hotspots.

ParameterTypeDescription
group_by *string

whitebox_alert_management_detect_fatigue

Detect alert-fatigue indicators and get recommendations for reducing alert noise.

whitebox_alert_management_acknowledge

Acknowledge an alert (hits /alert-management/alerts/{id}/acknowledge; distinct from whitebox_alerts_acknowledge).

ParameterTypeDescription
alert_id *string
notes

whitebox_alert_management_resolve

Resolve an alert (hits /alert-management/alerts/{id}/resolve; distinct from whitebox_alerts_resolve).

ParameterTypeDescription
alert_id *string
resolution_notes

whitebox_alert_management_snooze

Snooze an alert for `snooze_minutes` (max 1 week; hits /alert-management/alerts/{id}/snooze, distinct from whitebox_alerts_snooze).

ParameterTypeDescription
alert_id *string
snooze_minutes *integer

whitebox_alert_management_create_comment

Add a comment to an alert (comment_type: note/action/resolution).

ParameterTypeDescription
alert_id *string
comment *string
comment_typestring

whitebox_alert_management_get_comments

List all comments on an alert.

ParameterTypeDescription
alert_id *string

whitebox_alert_management_process_pending_escalations

Manually trigger processing of pending escalations (normally a scheduled background task).

whitebox_alert_management_unsnooze_expired_alerts

Manually trigger reactivation of alerts whose snooze period has expired (normally a scheduled background task).

whitebox_agent_workflows_create_and_start

Create a new multi-agent workflow. framework: "crewai", "langchain", "autogen", "n8n", or "custom". Returns the created workflow (including its id) for subsequent agent/task registration.

ParameterTypeDescription
framework *string
name *string
meta_data
tags

whitebox_agent_workflows_start

Mark a workflow as running. Call after registering agents/tasks and before executing.

ParameterTypeDescription
workflow_id *string
inputs

whitebox_agent_workflows_complete

Mark a workflow completed/failed/cancelled and optionally trigger async analytics (metrics, cost, bottlenecks, timeline).

ParameterTypeDescription
status *string
workflow_id *string
error_message
outputs
trigger_analyticsboolean

whitebox_agent_workflows_list

List workflows for the organization. Returns {workflows, total, skip, limit}.

ParameterTypeDescription
framework
limitinteger
skipinteger
status

whitebox_agent_workflows_get

Get a workflow by ID.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_delete

Delete a workflow and all related agents/executions/tasks/interactions.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_register_agent

Register an agent in a workflow. Call once per agent before starting execution.

ParameterTypeDescription
name *string
workflow_id *string
agent_type
backstory
capabilities
goal
llm_config
llm_provider
meta_data
model_name
role
system_prompt
tools

whitebox_agent_workflows_list_agents

List all agents registered in a workflow.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_create_execution

Log that an agent started executing. Set parent_execution_id for hierarchical/delegated executions.

ParameterTypeDescription
agent_id *string
workflow_id *string
execution_order
inputs
parent_execution_id

whitebox_agent_workflows_log_interaction

Log agent-to-agent communication. interaction_type: handoff, delegation, query, feedback, or broadcast.

ParameterTypeDescription
interaction_type *string
workflow_id *string
from_agent_id
from_execution_id
message
meta_data
to_agent_id
to_execution_id

whitebox_agent_workflows_list_interactions

List all agent-to-agent interactions in a workflow, chronologically.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_create_task

Create a workflow task. task_type: research/write/analyze/delegate/review.

ParameterTypeDescription
task_name *string
workflow_id *string
agent_id
context
description
expected_output
input_data
parent_task_id
priorityinteger
task_type

whitebox_agent_workflows_update_task_status

Update a task's status. status: pending/running/completed/failed/skipped.

ParameterTypeDescription
status *string
task_id *string
error_message
output_data

whitebox_agent_workflows_list_tasks

List all tasks in a workflow, with status, assignments, and results.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_analytics

Get workflow analytics (tokens, costs, execution counts, durations). Calculated asynchronously after workflow completion.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_cost_breakdown

Get per-agent cost breakdown (tokens, cost, execution count, avg duration). This may take up to ~30s: it runs a Celery task the backend blocks on server-side before responding.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_bottlenecks

Identify workflow bottlenecks: slowest agents, slowest tasks, failing agents. This may take up to ~30s: it runs a Celery task the backend blocks on server-side before responding.

ParameterTypeDescription
workflow_id *string

whitebox_agent_workflows_timeline

Get a chronological timeline of workflow events (start/end, agent executions, task updates, interactions). This may take up to ~30s: it runs a Celery task the backend blocks on server-side before responding.

ParameterTypeDescription
workflow_id *string

whitebox_metrics_create

Create a new metric record for a model.

ParameterTypeDescription
metric_name *string
metric_type *string
metric_value *number
model_id *string
metric_metadata
sample_size

whitebox_metrics_create_batch

Create multiple metrics at once (max 100). Each dict in `metrics` needs metric_type/metric_name/metric_value.

ParameterTypeDescription
metrics *array
model_id *string

whitebox_metrics_calculate_classification

Calculate classification metrics (accuracy/precision/recall/F1/etc.) from predictions, without persisting anything.

ParameterTypeDescription
y_pred *array
y_true *array
averagestring
pos_labelinteger
y_pred_proba

whitebox_metrics_calculate_regression

Calculate regression metrics (MAE/MSE/RMSE/R2/etc.) from predictions, without persisting anything.

ParameterTypeDescription
y_pred *array
y_true *array

whitebox_metrics_get_model_metrics

Get metrics recorded for a model, with optional type/date filters.

ParameterTypeDescription
model_id *string
end_date
limitinteger
metric_type
skipinteger
start_date

whitebox_metrics_latest

Get the most recent metric of a specific type for a model.

ParameterTypeDescription
metric_type *string
model_id *string

whitebox_metrics_timeseries

Get time series data for a metric over a required date range.

ParameterTypeDescription
end_date *string
metric_type *string
model_id *string
start_date *string

whitebox_metrics_aggregate

Get metrics aggregated over `period` (e.g. "daily", "weekly"). Defaults to the last 30 days if no date range is given.

ParameterTypeDescription
model_id *string
period *string
end_date
force_recomputeboolean
metric_type
start_date

whitebox_metrics_trend

Get trend statistics for a metric over `lookback_days`.

ParameterTypeDescription
metric_type *string
model_id *string
lookback_daysinteger

whitebox_metrics_rolling

Get rolling-window statistics for a metric over `window_days`.

ParameterTypeDescription
metric_type *string
model_id *string
window_daysinteger

whitebox_metrics_summary

Get a summary of all metrics for a model over the last `days`.

ParameterTypeDescription
model_id *string
daysinteger

whitebox_metrics_delete

Delete all metrics for a model.

ParameterTypeDescription
model_id *string