biothings_query_taxons
Search taxa using Lucene queries with filters like scientific name, rank, or taxid. Returns taxon details and query metadata.
Instructions
Search taxa via Lucene query (e.g., scientific name, rank), returning taxon details and query metadata.
Search for taxa using a query string with various filtering options.
**Supported Query Features:**
1. Simple Queries: "scientific_name:Homo sapiens", "common_name:human"
2. Fielded Queries: "rank:species", "parent_taxid:9606", "has_gene:true"
3. Range Queries: "taxid:[9606 TO 10090]", "lineage:>9606"
4. Boolean Queries: "rank:species AND has_gene:true", "scientific_name:Homo* AND NOT rank:genus"
5. Wildcard Queries: "scientific_name:Homo*", "common_name:*mouse*"
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": {
"q": "<q>"
},
"name": "biothings_query_taxons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | ||
| size | No | ||
| skip | No | ||
| sort | No | ||
| No | |||
| fields | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes | ||
| took | No | ||
| total | No | ||
| max_score | No |