wavescan

v0.1.0
io.github.CloudCorpRecords/wavescan Checked 1 day ago Published 7 days ago

Stateless anomaly and risk scans over your own data: outliers, drift, wash trading, manipulation.

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

waveguard_scan

Find outliers and anomalies in structured data — ideal as a second step after pulling records from Google Sheets, Airtable, Supabase, Notion databases, HubSpot, Financial APIs, GitHub, NPM, or any source that returns rows of JSON. Fully stateless: send known-good rows as training and suspect rows as test in ONE call. Returns per-row anomaly scores, confidence levels, and the top features explaining WHY each row was flagged. Typical workflow: (1) Pull data from another tool (e.g. Google Sheets, Supabase query, HubSpot deals). (2) Pass the first N rows as training (normal baseline). (3) Pass…

ParameterTypeDescription
test *array1+ data points to check for anomalies — new entries, recent rows, or the subset you want validated. Same type/shape as training. Each sample is scored independently.
training *array2+ examples of NORMAL/expected data — the known-good baseline. Typically the bulk of rows from a spreadsheet, database query, or API response. All samples should be the same type/shape. More samples…
encoder_typestringData encoder type. Omit to auto-detect from data shape.
field_levelintegerPhysics field complexity. 0 = real scalar (default). 1 = complex field (phase-aware, 62-dim fingerprint).
sensitivitynumberAnomaly threshold multiplier (default: 2.0). Lower = more sensitive. Higher = less sensitive. Range: 0.5 to 5.0.

waveguard_scan_timeseries

Detect anomalies in time-series data — use after pulling numeric metrics from monitoring APIs, financial data sources, IoT sensors, or spreadsheet columns. Send a single numeric array and specify a window size. Early windows define 'normal', recent windows are tested for anomalies. Typical workflow: (1) Pull a column of numbers from Sheets, a Supabase time-series table, or a metrics API. (2) Pass the array here. (3) Get back which time windows are anomalous. Examples: - Revenue monitoring: Pull monthly revenue from Sheets → detect anomalous months - Stock screening: Pull 90 days of closi…

ParameterTypeDescription
data *arrayNumeric time-series array, ordered chronologically. Should have at least 3x window_size data points.
sensitivitynumberAnomaly sensitivity (default: 1.0). Higher = more sensitive.
test_windowsintegerNumber of most recent windows to test (default: half of total windows). The rest are used as training (normal baseline).
window_sizeintegerNumber of data points per window (default: 10). Smaller windows detect finer-grained anomalies.

waveguard_health

Check WaveGuard API health, GPU availability, version, and engine status. No authentication required. Returns status, version, and GPU info.

ParameterTypeDescription
verbosebooleanReturn detailed health info including memory and uptime (default: false).

waveguard_fingerprint

Get a physics embedding of any data item (52-dim at Level 0, 62-dim at Level 1 with phase statistics). The fingerprint captures structural properties via wave-equation dynamics — useful for similarity search, clustering, baseline comparison, and drift detection. Works on JSON objects, token metrics, wallet activity, trading data, or any structured data. Returns a deterministic vector with labeled dimensions (chi statistics, energy distribution, gradient patterns, and phase coherence at Level 1).

ParameterTypeDescription
data *Any data item to fingerprint: JSON object, numeric array, string, or structured record.
encoder_typestringData encoder. Omit to auto-detect.
field_levelinteger0 = real scalar 52-dim (default), 1 = complex field 62-dim.

waveguard_compare

Compare two data items for structural similarity using physics-based fingerprints. Returns cosine similarity (0–1) and Euclidean distance. Use for duplicate detection, behavioral matching, drift analysis, or checking if two tokens/wallets/contracts are structurally similar. Cosine similarity > 0.95 = very similar. < 0.80 = structurally different.

ParameterTypeDescription
data_a *First data item to compare.
data_b *Second data item to compare (same type as data_a).
encoder_typestringData encoder. Omit to auto-detect.

waveguard_token_risk

Assess crypto token legitimacy risk. Send metrics from known-good tokens as training (price, volume, holders, liquidity, market_cap, age_days, etc.) and suspect tokens as test. Detects pump-and-dump patterns, fake metrics, and anomalous token profiles. Example: Pull CoinGecko data for 20 established tokens → train. Test a new token → get risk score and which metrics are suspicious.

ParameterTypeDescription
test *array1+ suspect token metric objects to evaluate.
training *array3+ known-good token metric objects. Each should include fields like price, volume_24h, market_cap, holders, liquidity, age_days, etc.
sensitivitynumberRisk sensitivity (default: 1.5). Higher = more flags.

waveguard_wallet_profile

Profile wallet behavior against baselines. Send normal wallet transaction patterns as training (tx_count, avg_value, unique_tokens, gas_spent, active_days, etc.) and suspect wallets as test. Detects bot activity, wash trading wallets, and sybil patterns. Example: Profile 50 organic wallets → test 10 suspect addresses.

ParameterTypeDescription
test *array1+ suspect wallet profiles to evaluate.
training *array3+ known-organic wallet activity profiles.
sensitivitynumberDetection sensitivity (default: 1.5).

waveguard_volume_check

Detect wash trading and fake volume in OHLCV candle data. Send known-legitimate candles as training and suspect candles as test. Detects artificial volume spikes, suspiciously regular patterns, and manipulated price-volume relationships. Example: Send 100 candles from a liquid pair as baseline, test candles from a suspicious pair.

ParameterTypeDescription
test *array1+ suspect candle objects to evaluate.
training *array3+ OHLCV candle objects from known-legitimate trading. Fields: open, high, low, close, volume.
sensitivitynumberDetection sensitivity (default: 1.5).

waveguard_price_manipulation

Detect price manipulation in time-series data. Send a price or price+volume history as a numeric array. Early windows define 'normal' trading, recent windows are tested for manipulation patterns (pump-and-dump, spoofing, layering). Example: Send 90 days of closing prices → detect manipulated windows.

ParameterTypeDescription
data *arrayPrice time-series array (chronological). At least 20 data points.
sensitivitynumberDetection sensitivity (default: 1.5).
test_windowsintegerNumber of recent windows to test (default: half).
window_sizeintegerWindow size (default: 10). Smaller = finer detection.

waveguard_market_data

Fetch live crypto market data from CoinGecko and DexScreener. No external data needed — WaveGuard pulls it for you. Use 'coin_id' for CoinGecko (e.g. 'bitcoin', 'ethereum', 'solana'). Use 'contract_address' for DexScreener (any chain). Use 'search' to find token IDs by name/symbol. Returns: price, volume, market cap, liquidity, price history, OHLC candles — ready to feed into waveguard_token_risk, waveguard_volume_check, or waveguard_price_manipulation.

ParameterTypeDescription
action *stringWhat data to fetch: - token_data: full metrics for a CoinGecko coin - price_history: daily prices (for price_manipulation) - ohlc: OHLC candles (for volume_check) - top_coins: top N by market cap (tra…
coin_idstringCoinGecko coin ID (e.g. 'bitcoin', 'ethereum'). Required for token_data, price_history, ohlc.
contract_addressstringToken contract address (any chain). Required for dex_token.
countintegerNumber of results for top_coins (default: 25).
daysintegerNumber of days of history (default: 90 for price_history, 30 for ohlc).
querystringSearch query. Required for search, dex_search.

waveguard_counterfactual

Run baseline plus counterfactual variants and measure verdict/score sensitivity.

ParameterTypeDescription
base_test *Baseline candidate sample to evaluate before counterfactual perturbations.
counterfactual_tests *array1+ perturbed variants of base_test for sensitivity analysis.
training *array2+ baseline normal samples used to build the reference profile.
encoder_typestringOptional encoder override. Omit to auto-detect from input structure.
field_levelinteger0 = real scalar field (faster), 1 = complex field (richer phase dynamics).
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0). Higher values flag more aggressively.

waveguard_trajectory_scan

Analyze sequence drift and regime shifts over ordered samples.

ParameterTypeDescription
sequence *arrayOrdered samples (time sequence) to scan for drift and regime shifts.
training *array2+ baseline normal samples used to establish the reference regime.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelinteger0 = real scalar field, 1 = complex field.
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).

waveguard_instability

Estimate instability under controlled perturb-and-resolve trials.

ParameterTypeDescription
test *array1+ candidate samples to stress-test with perturbation trials.
training *array2+ baseline normal samples for reference dynamics.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelinteger0 = real scalar field, 1 = complex field.
perturbation_strengthnumberRelative perturbation amplitude applied during instability assay.
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).
trialsintegerNumber of perturbation trials per sample.

waveguard_phase_coherence

Measure coherence/entropy and collapse-risk indicators for candidate data.

ParameterTypeDescription
test *array1+ candidate samples to evaluate for phase coherence and entropy.
training *array2+ baseline normal samples for reference coherence metrics.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelintegerField representation level. Default 1 for phase-aware analysis.
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).

waveguard_interaction_matrix

Compute pairwise interaction matrix and cluster decomposition for entities.

ParameterTypeDescription
entities *array2+ entities to evaluate for pairwise interaction effects.
training_context *array2+ baseline context samples used for normalization.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelintegerField representation level. Default 1 for interaction/phase features.
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).

waveguard_cascade_risk

Estimate shock propagation and resilience from adjacency-linked entities.

ParameterTypeDescription
adjacency_matrix *arrayN×N weighted adjacency matrix describing link strengths between entities.
entities *array2+ entities/nodes participating in the cascade graph.
shock_indices *arrayIndices of initially shocked entities within the entities array.
training_context *array2+ baseline context samples used for normalization.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelintegerField representation level. Default 1 for graph interaction dynamics.
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).
shock_strengthnumberInitial perturbation magnitude injected at shock indices.

waveguard_mechanism_probe

Run targeted interventions and rank effect sizes.

ParameterTypeDescription
base_test *Baseline candidate sample before interventions.
intervention_tests *array1+ intervention variants used to estimate effect sizes.
training *array2+ baseline normal samples used to construct the reference profile.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelinteger0 = real scalar field, 1 = complex field.
intervention_labelsarrayOptional labels for intervention variants (same order as intervention_tests).
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).

waveguard_action_surface

Score candidate actions and extract robust action zones.

ParameterTypeDescription
action_tests *array1+ candidate actions/scenarios to score against baseline.
training *array2+ baseline normal samples used to define the reference profile.
action_labelsarrayOptional labels for each action variant.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelinteger0 = real scalar field, 1 = complex field.
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).

waveguard_multi_horizon_outlook

Compute horizon-specific anomaly outlook and consistency across windows.

ParameterTypeDescription
horizons *arrayList of horizon lengths (in sequence steps) to evaluate.
sequence *arrayOrdered sample sequence used for multi-horizon outlook analysis.
training *array2+ baseline normal samples used to establish reference behavior.
encoder_typestringOptional encoder override. Omit to auto-detect.
field_levelinteger0 = real scalar field, 1 = complex field.
sensitivitynumberAnomaly sensitivity multiplier (default: 1.0).