Skip to main content
Glama

Search UniProt proteins

search_uniprot_entity
Read-only

Find UniProt accession, protein name, and organism by Solr-style query; put filters like organism_id and reviewed in the query string.

Instructions

Search for a UniProt entity ID by query.

⚠️ Only the search string and limit are accepted. Extra parameters like taxon, organism, reviewed, species, etc. are silently dropped and have no effect — express such filters inside the Solr query string instead (e.g., organism_id:9606 AND reviewed:true).

⚠️ An unrecognised FIELD NAME inside the query string is not silently ignored: UniProt rejects it (HTTP 400, "'taxon' is not a valid search field") and this tool returns the "Error:" string described below. Common wrong guesses that fail this way: taxon, organism, species, go_id. What CAN fail silently is a valid field given an ill-formed value — it returns 0 rows, or rows you did not expect, with HTTP 200.

The search string can be passed as any of: query (canonical), search, term, keyword, keywords, search_term, or name.

RETURNS a TSV string with columns: accession, protein_name, organism_name. On upstream/HTTP failure this tool does NOT raise — it returns a plain string beginning with "Error:" (not TSV). check for the "Error:" prefix before parsing rows.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_uniprot_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
termNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
limitNoThe maximum number of results to return. Default is 20.
queryNoThe Solr-style query string for the UniProtKB /search endpoint. QUERY SYNTAX: - Simple keyword: "rubisco" - Field-specific: "field:value" (e.g., "gene:BRCA1", "protein_name:rubisco") - Boolean operators: AND, OR, NOT (e.g., "gene:TP53 AND organism_id:9606") - Grouping with parentheses: "((gene:CTNNB1) AND (taxonomy_id:9606))" - Wildcards (* suffix): "gene:PRO*" matches any gene starting with PRO - Ranges: "length:[1000 TO 2000]" or open-ended "length:[5000 TO *]" KEY QUERY FIELDS: Identity / Name: accession UniProt primary accession (e.g., "accession:P04637") id UniProt entry name / mnemonic (e.g., "id:P53_HUMAN") protein_name Protein name, including synonyms (e.g., "protein_name:rubisco") gene Gene name with wildcard support (e.g., "gene:BRCA*") gene_exact Exact gene name match (e.g., "gene_exact:TP53") ec Enzyme Commission number (e.g., "ec:1.1.1.1") Taxonomy: organism_id NCBI taxonomy ID (e.g., "organism_id:9606" for human, "organism_id:10090" for mouse) organism_name Organism scientific or common name taxonomy_id Taxon ID including all descendants lineage Taxonomic lineage keyword Annotation status: reviewed true = Swiss-Prot (manually reviewed), false = TrEMBL (automatically annotated) ALWAYS add "reviewed:true" when seeking high-quality entries. Sequence properties: length Sequence length as a range (e.g., "length:[100 TO 500]") mass Molecular mass in Daltons (range supported) existence Protein existence level: 1 (protein), 2 (transcript), 3 (homology), 4 (predicted), 5 (uncertain) Functional annotation: keyword UniProt keyword name (e.g., "keyword:Kinase") keyword_id UniProt keyword ID (e.g., "keyword_id:KW-0418") go Gene Ontology term, by ID or by term name (e.g., "go:0043202", 'go:"lysosomal lumen"'). TWO behaviours to know: (1) the ID must be zero-padded to 7 digits — "go:43202" is a VALID field with an unmatchable value, so it returns 0 rows and no error; (2) the match includes the term's GO DESCENDANTS, so "go:0043202" also returns proteins annotated only to its children (acrosomal lumen, endolysosome lumen) — 192 reviewed entries carry the term directly, 214 once descendants are counted (2026-08-20). function Function free-text annotation family Protein family (e.g., "family:globin") organelle Subcellular organelle (e.g., "organelle:chloroplast") cc_subcellular_location Subcellular location comment Cross-references: database Database cross-reference (e.g., "database:PDB") xref Cross-reference ID (e.g., "xref:pdb-1A2B") chebi ChEBI ID (e.g., "chebi:15422") interactor UniProt accession of interacting protein Literature: lit_author Author surname (e.g., "lit_author:Smith") lit_pubmed PubMed ID lit_doi DOI EXAMPLES (structured queries): # Reviewed human TP53 protein "gene_exact:TP53 AND organism_id:9606 AND reviewed:true" # All human kinases manually reviewed "keyword:Kinase AND organism_id:9606 AND reviewed:true" # EGFR in human or mouse "gene_exact:EGFR AND (organism_id:9606 OR organism_id:10090) AND reviewed:true" # Long chloroplast proteins (>= 5000 aa) in any organism "organelle:chloroplast AND length:[5000 TO *]" # Proteins with PDB structures involved in apoptosis "database:PDB AND keyword:Apoptosis AND organism_id:9606 AND reviewed:true" # Proteins encoded by gene names starting with "PIK3" "gene:PIK3* AND organism_id:9606 AND reviewed:true"
searchNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
keywordNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
keywordsNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
search_termNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.34.1
    • addedInput schema / properties / keyword / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / keywords / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / name / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / search / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / search_term / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / term / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
  2. Changed1 schema field changedv2.0.1
    • changedInput schema / properties / query / description
      Previous value: -"The Solr-style query string for the UniProtKB /search endpoint.\n\nQUERY SYNTAX:\n- Simple keyword: \"rubisco\"\n- Field-specific: \"field:value\"  (e.g., \"gene:BRCA1\", \"protein_name:rubisco\")\n- Boolean operators: AND, OR, NOT  (e.g., \"gene:TP53 AND organism_id:9606\")\n- Grouping with parentheses: \"((gene:CTNNB1) AND (taxonomy_id:9606))\"\n- Wildcards (* suffix): \"gene:PRO*\" matches any gene starting with PRO\n- Ranges: \"length:[1000 TO 2000]\" or open-ended \"length:[5000 TO *]\"\n\nKEY QUERY FIELDS:\nIdentity / Name:\n  accession          UniProt primary accession (e.g., \"accession:P04637\")\n  id                 UniProt entry name / mnemonic (e.g., \"id:P53_HUMAN\")\n  protein_name       Protein name, including synonyms (e.g., \"protein_name:rubisco\")\n  gene               Gene name with wildcard support (e.g., \"gene:BRCA*\")\n  gene_exact         Exact gene name match (e.g., \"gene_exact:TP53\")\n  ec                 Enzyme Commission number (e.g., \"ec:1.1.1.1\")\n\nTaxonomy:\n  organism_id        NCBI taxonomy ID (e.g., \"organism_id:9606\" for human,\n                     \"organism_id:10090\" for mouse)\n  organism_name      Organism scientific or common name\n  taxonomy_id        Taxon ID including all descendants\n  lineage            Taxonomic lineage keyword\n\nAnnotation status:\n  reviewed           true = Swiss-Prot (manually reviewed),\n                     false = TrEMBL (automatically annotated)\n                     ALWAYS add \"reviewed:true\" when seeking high-quality entries.\n\nSequence properties:\n  length             Sequence length as a range (e.g., \"length:[100 TO 500]\")\n  mass               Molecular mass in Daltons (range supported)\n  existence          Protein existence level: 1 (protein), 2 (transcript),\n                     3 (homology), 4 (predicted), 5 (uncertain)\n\nFunctional annotation:\n  keyword            UniProt keyword name (e.g., \"keyword:Kinase\")\n  keyword_id         UniProt keyword ID (e.g., \"keyword_id:KW-0418\")\n  function           Function free-text annotation\n  family             Protein family (e.g., \"family:globin\")\n  organelle          Subcellular organelle (e.g., \"organelle:chloroplast\")\n  cc_subcellular_location  Subcellular location comment\n\nCross-references:\n  database           Database cross-reference (e.g., \"database:PDB\")\n  xref               Cross-reference ID (e.g., \"xref:pdb-1A2B\")\n  chebi              ChEBI ID (e.g., \"chebi:15422\")\n  interactor         UniProt accession of interacting protein\n\nLiterature:\n  lit_author         Author surname (e.g., \"lit_author:Smith\")\n  lit_pubmed         PubMed ID\n  lit_doi            DOI\n\nEXAMPLES (structured queries):\n  # Reviewed human TP53 protein\n  \"gene_exact:TP53 AND organism_id:9606 AND reviewed:true\"\n\n  # All human kinases manually reviewed\n  \"keyword:Kinase AND organism_id:9606 AND reviewed:true\"\n\n  # EGFR in human or mouse\n  \"gene_exact:EGFR AND (organism_id:9606 OR organism_id:10090) AND reviewed:true\"\n\n  # Long chloroplast proteins (>= 5000 aa) in any organism\n  \"organelle:chloroplast AND length:[5000 TO *]\"\n\n  # Proteins with PDB structures involved in apoptosis\n  \"database:PDB AND keyword:Apoptosis AND organism_id:9606 AND reviewed:true\"\n\n  # Proteins encoded by gene names starting with \"PIK3\"\n  \"gene:PIK3* AND organism_id:9606 AND reviewed:true\""New value: +"The Solr-style query string for the UniProtKB /search endpoint.\n\nQUERY SYNTAX:\n- Simple keyword: \"rubisco\"\n- Field-specific: \"field:value\"  (e.g., \"gene:BRCA1\", \"protein_name:rubisco\")\n- Boolean operators: AND, OR, NOT  (e.g., \"gene:TP53 AND organism_id:9606\")\n- Grouping with parentheses: \"((gene:CTNNB1) AND (taxonomy_id:9606))\"\n- Wildcards (* suffix): \"gene:PRO*\" matches any gene starting with PRO\n- Ranges: \"length:[1000 TO 2000]\" or open-ended \"length:[5000 TO *]\"\n\nKEY QUERY FIELDS:\nIdentity / Name:\n  accession          UniProt primary accession (e.g., \"accession:P04637\")\n  id                 UniProt entry name / mnemonic (e.g., \"id:P53_HUMAN\")\n  protein_name       Protein name, including synonyms (e.g., \"protein_name:rubisco\")\n  gene               Gene name with wildcard support (e.g., \"gene:BRCA*\")\n  gene_exact         Exact gene name match (e.g., \"gene_exact:TP53\")\n  ec                 Enzyme Commission number (e.g., \"ec:1.1.1.1\")\n\nTaxonomy:\n  organism_id        NCBI taxonomy ID (e.g., \"organism_id:9606\" for human,\n                     \"organism_id:10090\" for mouse)\n  organism_name      Organism scientific or common name\n  taxonomy_id        Taxon ID including all descendants\n  lineage            Taxonomic lineage keyword\n\nAnnotation status:\n  reviewed           true = Swiss-Prot (manually reviewed),\n                     false = TrEMBL (automatically annotated)\n                     ALWAYS add \"reviewed:true\" when seeking high-quality entries.\n\nSequence properties:\n  length             Sequence length as a range (e.g., \"length:[100 TO 500]\")\n  mass               Molecular mass in Daltons (range supported)\n  existence          Protein existence level: 1 (protein), 2 (transcript),\n                     3 (homology), 4 (predicted), 5 (uncertain)\n\nFunctional annotation:\n  keyword            UniProt keyword name (e.g., \"keyword:Kinase\")\n  keyword_id         UniProt keyword ID (e.g., \"keyword_id:KW-0418\")\n  go                 Gene Ontology term, by ID or by term name\n                     (e.g., \"go:0043202\", 'go:\"lysosomal lumen\"').\n                     TWO behaviours to know: (1) the ID must be\n                     zero-padded to 7 digits — \"go:43202\" is a VALID\n                     field with an unmatchable value, so it returns 0\n                     rows and no error; (2) the match includes the\n                     term's GO DESCENDANTS, so \"go:0043202\" also\n                     returns proteins annotated only to its children\n                     (acrosomal lumen, endolysosome lumen) — 192\n                     reviewed entries carry the term directly, 214\n                     once descendants are counted (2026-08-20).\n  function           Function free-text annotation\n  family             Protein family (e.g., \"family:globin\")\n  organelle          Subcellular organelle (e.g., \"organelle:chloroplast\")\n  cc_subcellular_location  Subcellular location comment\n\nCross-references:\n  database           Database cross-reference (e.g., \"database:PDB\")\n  xref               Cross-reference ID (e.g., \"xref:pdb-1A2B\")\n  chebi              ChEBI ID (e.g., \"chebi:15422\")\n  interactor         UniProt accession of interacting protein\n\nLiterature:\n  lit_author         Author surname (e.g., \"lit_author:Smith\")\n  lit_pubmed         PubMed ID\n  lit_doi            DOI\n\nEXAMPLES (structured queries):\n  # Reviewed human TP53 protein\n  \"gene_exact:TP53 AND organism_id:9606 AND reviewed:true\"\n\n  # All human kinases manually reviewed\n  \"keyword:Kinase AND organism_id:9606 AND reviewed:true\"\n\n  # EGFR in human or mouse\n  \"gene_exact:EGFR AND (organism_id:9606 OR organism_id:10090) AND reviewed:true\"\n\n  # Long chloroplast proteins (>= 5000 aa) in any organism\n  \"organelle:chloroplast AND length:[5000 TO *]\"\n\n  # Proteins with PDB structures involved in apoptosis\n  \"database:PDB AND keyword:Apoptosis AND organism_id:9606 AND reviewed:true\"\n\n  # Proteins encoded by gene names starting with \"PIK3\"\n  \"gene:PIK3* AND organism_id:9606 AND reviewed:true\""
  3. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / limit / description
      Added value: +"The maximum number of results to return. Default is 20."
    • addedInput schema / properties / query / description
      Added value: +"The Solr-style query string for the UniProtKB /search endpoint.\n\nQUERY SYNTAX:\n- Simple keyword: \"rubisco\"\n- Field-specific: \"field:value\"  (e.g., \"gene:BRCA1\", \"protein_name:rubisco\")\n- Boolean operators: AND, OR, NOT  (e.g., \"gene:TP53 AND organism_id:9606\")\n- Grouping with parentheses: \"((gene:CTNNB1) AND (taxonomy_id:9606))\"\n- Wildcards (* suffix): \"gene:PRO*\" matches any gene starting with PRO\n- Ranges: \"length:[1000 TO 2000]\" or open-ended \"length:[5000 TO *]\"\n\nKEY QUERY FIELDS:\nIdentity / Name:\n  accession          UniProt primary accession (e.g., \"accession:P04637\")\n  id                 UniProt entry name / mnemonic (e.g., \"id:P53_HUMAN\")\n  protein_name       Protein name, including synonyms (e.g., \"protein_name:rubisco\")\n  gene               Gene name with wildcard support (e.g., \"gene:BRCA*\")\n  gene_exact         Exact gene name match (e.g., \"gene_exact:TP53\")\n  ec                 Enzyme Commission number (e.g., \"ec:1.1.1.1\")\n\nTaxonomy:\n  organism_id        NCBI taxonomy ID (e.g., \"organism_id:9606\" for human,\n                     \"organism_id:10090\" for mouse)\n  organism_name      Organism scientific or common name\n  taxonomy_id        Taxon ID including all descendants\n  lineage            Taxonomic lineage keyword\n\nAnnotation status:\n  reviewed           true = Swiss-Prot (manually reviewed),\n                     false = TrEMBL (automatically annotated)\n                     ALWAYS add \"reviewed:true\" when seeking high-quality entries.\n\nSequence properties:\n  length             Sequence length as a range (e.g., \"length:[100 TO 500]\")\n  mass               Molecular mass in Daltons (range supported)\n  existence          Protein existence level: 1 (protein), 2 (transcript),\n                     3 (homology), 4 (predicted), 5 (uncertain)\n\nFunctional annotation:\n  keyword            UniProt keyword name (e.g., \"keyword:Kinase\")\n  keyword_id         UniProt keyword ID (e.g., \"keyword_id:KW-0418\")\n  function           Function free-text annotation\n  family             Protein family (e.g., \"family:globin\")\n  organelle          Subcellular organelle (e.g., \"organelle:chloroplast\")\n  cc_subcellular_location  Subcellular location comment\n\nCross-references:\n  database           Database cross-reference (e.g., \"database:PDB\")\n  xref               Cross-reference ID (e.g., \"xref:pdb-1A2B\")\n  chebi              ChEBI ID (e.g., \"chebi:15422\")\n  interactor         UniProt accession of interacting protein\n\nLiterature:\n  lit_author         Author surname (e.g., \"lit_author:Smith\")\n  lit_pubmed         PubMed ID\n  lit_doi            DOI\n\nEXAMPLES (structured queries):\n  # Reviewed human TP53 protein\n  \"gene_exact:TP53 AND organism_id:9606 AND reviewed:true\"\n\n  # All human kinases manually reviewed\n  \"keyword:Kinase AND organism_id:9606 AND reviewed:true\"\n\n  # EGFR in human or mouse\n  \"gene_exact:EGFR AND (organism_id:9606 OR organism_id:10090) AND reviewed:true\"\n\n  # Long chloroplast proteins (>= 5000 aa) in any organism\n  \"organelle:chloroplast AND length:[5000 TO *]\"\n\n  # Proteins with PDB structures involved in apoptosis\n  \"database:PDB AND keyword:Apoptosis AND organism_id:9606 AND reviewed:true\"\n\n  # Proteins encoded by gene names starting with \"PIK3\"\n  \"gene:PIK3* AND organism_id:9606 AND reviewed:true\""
  4. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations cover safety (readOnlyHint, openWorldHint), and the description adds genuinely non-obvious behavior beyond them: extra parameters are silently dropped, an unrecognised field name inside the query triggers an HTTP 400 rather than being ignored, an ill-formed value on a valid field returns 0 rows with HTTP 200, and upstream failures come back as a plain "Error:" prefixed string instead of raising. That is exactly the kind of failure-mode disclosure an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The two warnings are front-loaded and the return/error contract closes the description, so the important information is easy to find. It is somewhat verbose — the sentence distinguishing invalid field names from ill-formed values restates the same point twice — but every paragraph carries actionable content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool whose annotations already declare read-only and open-world behavior, the description covers query construction, dropped-parameter pitfalls, silent-failure modes, and the return format including the "Error:" prefix. Even though an output schema exists, the non-raising error-string contract is worth stating and it is, so nothing an agent needs in order to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the alias mechanism with its ValueError is already documented per-property, so the baseline is 3. The description adds meaning beyond the schema by clarifying that non-alias parameters like taxon or species are silently dropped and that such constraints must be embedded in the query string, which tells the agent how to use the parameters rather than just what they are.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Search for a UniProt entity ID by query"), which cleanly separates it from siblings like search_pdb_entity or search_chembl_molecule by resource alone. It falls short of 5 only because it calls the result an "entity ID" while later stating the output is a three-column TSV (accession, protein_name, organism_name), a small internal mismatch about what you actually get back.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Strong operational guidance: it states that only the search string and limit are accepted, that filters such as taxon/organism/reviewed must be expressed inside the Solr query string, and gives a worked example ("organism_id:9606 AND reviewed:true"). There is no explicit when-to-use-this-vs-a-sibling routing (e.g. ncbi_esearch or the other search_*_entity tools), which keeps it from a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.