Test Rule
test_ruleBack-test a custom pre-match rule on point-in-time match data to get hit rate, break-even odds, and a baseline comparison for stability.
Instructions
Back-test the user's own rule on all data, point-in-time: for every match that passes the filters, features are computed ONLY from matches played before it, then the conditions decide if the rule fires and the market outcome is checked. Returns hit rate, break-even odds (1 / hit rate) and a baseline (the same market without the conditions) plus a split for stability. There are no odds in the data: tell the user to compare break_even_odds with their bookmaker's odds, and flag samples under ~50 as unreliable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"market": "<market>",
"pick": "<pick>",
"conditions": "<conditions>"
},
"name": "test_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| era | No | 'current' (default), 'all', or an era id such as 'FC26' | current |
| line | No | Total-goals line, required for over_under | |
| pick | Yes | over/under (over_under), yes/no (btts), home/draw/away (1x2; home = p1) | |
| since | No | First Battle day to include, YYYY-MM-DD | |
| until | No | Last Battle day to include, YYYY-MM-DD | |
| venue | No | Stamford Bridge, Old Trafford, Wembley, San Siro, Bernabeu (8 min) or Anfield, Etihad (12 min) | |
| format | No | Match length | |
| market | Yes | ||
| player | No | Only this player's matches; p1 is always this player | |
| turnus | No | Block number within the Battle day (1-11 for 8 min, 1-8 for Latest/12 min) | |
| session | No | Session, derived from the turnus | |
| time_to | No | Latest local kick-off time HH:MM | |
| group_by | No | month | |
| last_days | No | Only the last N Battle days (overrides since) | |
| time_from | No | Earliest local kick-off time HH:MM (window may wrap midnight) | |
| conditions | Yes | Pre-match conditions, all must hold | |
| min_history | No | Skip a match if a feature has fewer earlier matches | |
| history_scope | No | Which earlier matches feed the features | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||