Search Genes by Keyword or Symbol
mygene.genes.searchSearch the MyGene.info gene database by keyword, gene symbol, gene name, GO term, or any other gene annotation. Backed by NCBI Entrez Gene, Ensembl, UniProt, and other authoritative databases aggregated by the BioThings project. Returns NCBI Gene IDs, symbols, names, gene type, taxon, and summary text. Supports wildcard queries (e.g. "CDK*" returns all CDK family members) and species filtering. Use the returned Entrez Gene IDs with mygene.genes.info or mygene.genes.batch for full annotations including GO terms, KEGG/Reactome pathways, UniProt accessions, and genomic coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Gene query string. Supports full-text search by gene symbol (e.g. "BRCA1"), gene name (e.g. "breast cancer 1"), keyword (e.g. "kinase"), GO term ID (e.g. "GO:0006915"), or Entrez Gene ID (e.g. "1017"). Wildcards supported: "CDK*" matches CDK1, CDK2, etc. | |
| size | No | Maximum number of gene results to return (1–50, default 10). | |
| fields | No | Comma-separated fields to return per hit. Default: symbol,name,taxid,entrezgene,type_of_gene,summary. Other useful fields: ensembl.gene, uniprot, alias, genomic_pos, go, pathway. Use "all" for every available field. | |
| species | No | Filter by species. Common values: "human" (Homo sapiens, taxid 9606), "mouse" (Mus musculus, taxid 10090), "rat" (Rattus norvegicus), "fruitfly" (Drosophila melanogaster), "zebrafish" (Danio rerio). Can also use NCBI taxid directly (e.g. "9606"). Use "all" to search across all species. | human |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |