filter_items
Keep only the rows of a table-shaped output that meet a condition — the bands above a size, the guides over a score, the assays under a penalty.
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": {
"items": "<items>"
},
"name": "filter_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | upper bound, inclusive. Only applies when operator is between. | |
| min | No | lower bound, inclusive. Only applies when operator is between. | |
| set | No | the values the field must be one of (or none of). Only applies when operator is in or not_in. | |
| text | No | the text a field must contain. Only applies when operator is contains. | |
| field | No | which field of each row to test (e.g. `size`, `score`, `length`). Leave empty to test the row itself when it is a plain number. | |
| items | Yes | the rows to filter — wire a json/list output (bands, guides, assays, amplicons). | |
| value | No | the value to compare against. Only applies when operator is == or != or > or >= or < or <=. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| operator | No | how to compare. Values: == (equals), != (does not equal), > (greater than), >= (at least), < (less than), <= (at most), between (between (inclusive)), in (is one of), not_in (is none of), contains (contains text), is_true (is true), not_empty (is not empty). | >= |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | how many rows were kept — wire this into check_value to gate on it | |
| items | Yes | the rows that met the condition | |
| dropped | Yes | how many rows were removed |