resolve_selection
Check how many atoms match an MDAnalysis selection to avoid zero-atom errors in .gro files before running measurements.
Instructions
Report how many atoms an MDAnalysis selection matches — use this to catch the common 0-atom trap on bare .gro files before running measurements.
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": {
"path": "<path>",
"selection": "<selection>"
},
"name": "resolve_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| topology | No | ||
| selection | Yes |