Search PDB structures
search_pdb_entitySearch PDBj for protein structures, chemical components, or BIRD molecules and get named fields per hit, such as method, resolution, ligands, SMILES, and formula.
Instructions
Search PDBj for structures, chemical components, or BIRD molecules.
Returns rich, named fields per hit (not just the title) — for pdb,
each result carries the experimental method, resolution, bound ligands,
and citation; for cc, the formula, SMILES, and InChI.
RETURNS a JSON string {"total": int | null, "results": [ {…fields…} ]}.
total is null when PDBj gives no count (typical for structured-filter
searches) — that is NOT zero and does NOT mean "no results"; consult
results directly. On upstream/HTTP failure returns a JSON object with an
error key instead — check for error before reading results.
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": {
"db": "<db>"
},
"name": "search_pdb_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | The database to search in. Allowed values are: - "pdb" (Protein Data Bank, macromolecular structures) - "cc" (Chemical Component Dictionary, ligands / small molecules) - "prd" (BIRD, Biologically Interesting Reference Molecule Dictionary, mostly peptides). | |
| name | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| term | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| limit | No | Max results to return, in [0, 500]. Default 20. | |
| query | No | Free-text keywords. May be empty when at least one structured filter is supplied. Accepts aliases: `search`, `term`, `keyword`, `keywords`, `search_term`, `name`. If both `query` and an alias are given with different values, this raises ValueError (pass only one). | |
| ligand | No | db="pdb" filter: keep entries whose ligand list contains this string. SUBSTRING match, not an exact CCD code: "ATP" also matches "dATP". Pass the exact ligand name for precision. | |
| method | No | db="pdb" filter: experimental method. "em" is cryo-EM. Filters that do not apply to the chosen `db` are ignored. | |
| offset | No | Number of leading results to skip (server-side pagination). Default 0. | |
| search | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| smiles | No | db="cc" filter: SMILES substructure query. | |
| source | No | db="pdb" filter: source organism, e.g. "Homo sapiens". | |
| formula | No | db="cc" filter: molecular formula in the canonical SPACED, element-counted form, e.g. "C8 H10 N4 O2". The unspaced form ("C8H10N4O2") is NOT matched by PDBj. | |
| keyword | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| res_max | No | db="pdb" filter: maximum resolution in Angstrom. | |
| res_min | No | db="pdb" filter: minimum resolution in Angstrom. | |
| keywords | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| search_term | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |