search_uniprotkb
Search UniProtKB for protein entries using native query syntax. Filter by gene, organism, keyword, length, and review status. Get results as summary, FASTA, or TSV.
Instructions
Search UniProtKB and return matching protein entries.
Use this to find proteins by gene, name, organism, keyword, length, etc.
Returns a compact summary (accession, entry name, protein name, gene,
organism, length, Swiss-Prot/TrEMBL) by default. Pass reviewed=True to
restrict to curated Swiss-Prot entries, and organism_id to filter by
species. The total match count is always reported so you can page or narrow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | UniProtKB query in native syntax, e.g. 'gene:BRCA1' or 'keyword:Kinase AND length:[300 TO 500]'. Query syntax: field:value joined by AND/OR/NOT, parentheses to group, quote phrases. Key fields: gene:, organism_id:, taxonomy_id:, reviewed:true, length:[X TO Y], existence:, keyword:, ec:, database:pdb, go:. Full reference: resource://uniprot/query-cheatsheet. | |
| reviewed | No | True = Swiss-Prot (reviewed) only; False = TrEMBL only; None = both. Appended to the query for you. | |
| organism_id | No | NCBI taxonomy id filter, e.g. 9606 for human. Resolve a name with get_taxonomy. Appended to the query for you. | |
| fields | No | Comma-separated result fields for format='tsv' (e.g. 'accession,gene_names,length'). Ignored for 'summary'. | |
| size | No | Max entries to return (1-500). | |
| format | No | 'summary' = compact per-entry digest (default); 'fasta' = raw sequences; 'tsv' = tab-separated table. | summary |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |