gate_check
Tests candidate transition-state rule code against real and distorted DFT examples, returning pass rates, failing cases, and feedback for revision.
Instructions
Test a candidate rule check against 9,540 real DFT transition states (RDB7 training set) and distorted ones. python_source must define check(rxn, xyz) -> (passed: bool, detail: str); numpy is available as np and math as math; no imports. rxn offers: n, atoms, symbols, reactant_xyz, product_xyz, reactant_bonds, product_bonds ({(i, j): order}), changed_bonds, reaction_centre, neighbours('reactant'|'product'), reactant_chiral_tags, product_chiral_tags. Accepted if it passes >= 99% of real TSs, never crashes, and rejects >= 1% of mirrored or noisy TSs. Returns failing examples and feedback to revise the code.
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": {
"rule_text": "<rule_text>",
"python_source": "<python_source>"
},
"name": "gate_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_text | Yes | ||
| python_source | Yes |