apply_constraint_rules
Applies base, duplicate, and overlap rules to an immutable candidate snapshot, returning final outcomes bound to the snapshot hash for provenance-aware epitope decisions.
Instructions
Apply base, duplicate, and overlap rules to one immutable candidate snapshot and return final rule outcomes. Use after validate_thresholds, remove_duplicate_candidates, and detect_overlapping_epitopes when their inputs are ready. The snapshot hash binds the decision to supplied evidence; this tool does not fetch new evidence.
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": {
"runId": "<runId>",
"snapshotHash": "<snapshotHash>",
"ruleProfileVersion": "<ruleProfileVersion>",
"baseConstraints": "<baseConstraints>",
"duplicateCandidates": "<duplicateCandidates>",
"overlapCandidates": "<overlapCandidates>",
"overlapThreshold": "<overlapThreshold>"
},
"name": "apply_constraint_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | Caller-chosen identifier linking this call to one research run. | |
| snapshotHash | Yes | SHA-256 identity of the immutable evidence snapshot. | |
| baseConstraints | Yes | Previously evaluated base rule inputs for final constraint application. | |
| overlapThreshold | Yes | Minimum overlap fraction used by the final overlap rule. | |
| overlapCandidates | Yes | Candidate records whose positional overlaps enter final constraint rules. | |
| ruleProfileVersion | Yes | Version of the biological constraint rule profile. | |
| duplicateCandidates | Yes | Candidate records to evaluate for exact positional duplication. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether execution completed successfully. | |
| data | No | Tool-specific result fields on success. | |
| meta | Yes | Run identifiers, timings, and input/output hashes. | |
| error | No | Structured failure on unsuccessful execution. |