build_chai_restraints
Builds and pre-flight validates a Chai-1 .restraints CSV against a FASTA, mapping entity names to chain IDs and verifying residue positions and wild-type letters to reject specs that would be dropped.
Instructions
Build and pre-flight validate a Chai-1 .restraints CSV against a FASTA.
Maps FASTA entity names to sequential chain IDs (A, B, ...) with an explicit warning, verifies 1-based residue positions and exact wild-type residue letters, and refuses specs that chai-lab would silently drop.
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": {
"fasta_text": "<fasta_text>",
"restraints": "<restraints>"
},
"name": "build_chai_restraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fasta_text | Yes | ||
| restraints | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| note | No | ||
| found | Yes | ||
| sources | No | ||
| warnings | No |