Skip to main content
Glama

protein_search

Search UniProtKB or RCSB PDB by query to retrieve protein entries, genes, organisms, and PDB IDs, with paging for large result sets.

Instructions

Search UniProtKB or RCSB PDB.

Pick kind:

  • uniprot (default): query uses UniProt syntax, e.g. gene:TP53 AND organism_id:9606. Item shape: accession, entry name, protein name, genes, organism, taxid, reviewed, length. size is 1-500; pass the returned next_cursor for the next page.

  • pdb: query is free text (e.g. "hemoglobin"); item shape is {"pdb_id": "..."} only. size is 1-100; cursor is the numeric start offset as a string.

Both kinds return count, items and next_cursor (null on the last page); pdb also returns total. Empty lists are true upstream answers. Use protein_record to fetch a full record for an id.

Args: query: UniProt query string or PDB free text. kind: "uniprot" or "pdb". size: Page size (uniprot 1-500, pdb 1-100). cursor: Opaque next-page token from a previous call.

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": {
      "query": "<query>"
    },
    "name": "protein_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNouniprot
sizeNo
queryYes
cursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses per-kind size limits, pagination mechanics (`next_cursor`, null on the last page, numeric offset for pdb), item shapes for each kind, that `pdb` also returns `total`, and that empty lists are true upstream answers rather than errors. That last point is exactly the kind of non-obvious behavior an agent would otherwise misread.

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?

Front-loaded with the core statement, then cleanly split by kind, with return-shape notes grouped at the end. The trailing `Args:` block partially repeats the size ranges and cursor definition already given above, which is mild redundancy rather than waste.

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 four-parameter, multi-backend search with no annotations and no output schema, the description supplies everything needed: query syntax, limits, pagination loop, response fields, and item shapes for both kinds. An agent can invoke and page this tool correctly from the description alone.

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

Parameters5/5

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

Schema coverage is 0% (only bare titles and a default), so the description must compensate, and it does: it defines the syntax of `query` per kind with an example, enumerates the valid `kind` values, states the numeric range of `size` per kind, and clarifies that `cursor` is an opaque token for uniprot but a numeric string offset for pdb. This meaningfully exceeds what the schema conveys.

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

Purpose5/5

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

The opening sentence gives a specific verb (Search) and both resources (UniProtKB, RCSB PDB), and the `kind` breakdown immediately explains the two distinct operating modes. It also names the sibling `protein_record` for full records, so an agent can distinguish search from retrieval without opening the sibling's schema.

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

Usage Guidelines5/5

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

Explicitly tells the agent how to choose `kind` (with `uniprot` as default), what query syntax applies in each mode, and when to switch to `protein_record` instead of paging. The only absent piece is a "when not to use this" exclusion, which is minor given how concretely the alternatives are framed.

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