Get Compound 3D Structure
pubchem_get_compound_3d_structureGet one 3D conformer of a compound — atomic coordinates and bonds — for one CID: its default conformer, or the one conformerId names. format="json" (default) returns atoms and bonds parsed into structured fields; format="sdf" returns the raw V2000 SDF text for passthrough to docking, rendering, or conformer tools. Optionally lists the compound's other conformer IDs, each one a value for conformerId. Not every compound has computed 3D coordinates (large molecules, mixtures, and some salts do not).
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": {
"cid": "<cid>"
},
"name": "pubchem_get_compound_3d_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. | |
| format | No | Output format. "json" (default) returns parsed atoms and bonds. "sdf" returns the raw V2000 SDF text for passthrough to other tools. | json |
| maxAtoms | No | Cap the atoms returned in the format="json" preview. atomCount always reports the full total; omitted rows are disclosed via the truncated/shownAtoms enrichment. Defaults to the first 200 atoms. | |
| maxBonds | No | Cap the bonds returned in the format="json" preview. bondCount always reports the full total; omitted rows are disclosed via the truncated/shownBonds enrichment. Defaults to the first 200 bonds. | |
| conformerId | No | Fetch this conformer of the compound instead of its default: a conformer ID from alternateConformerIds (includeAlternateConformerIds: true), 16 hexadecimal digits whose first 8 are the CID in hexadecimal (e.g. "000008C40000000B" for CID 2244). Either case is accepted. Omit, or leave blank, for the default conformer. | |
| includeRawSdf | No | For format="sdf", return the complete raw V2000 SDF even when it exceeds the safe line cap. Default false: an SDF longer than 500 lines is line-capped with disclosure. No effect when format="json". | |
| includeAlternateConformerIds | No | List the IDs of the compound's other computed conformers, each one a value for conformerId. Slower than the default response. Default: false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | No | PubChem Compound ID. | |
| sdf | No | Raw V2000 SDF text. Populated when format="sdf". | |
| atoms | No | Parsed atoms. Populated when format="json". | |
| bonds | No | Parsed bonds. Populated when format="json". | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Guidance naming which lists were capped and how to widen them. | |
| atomCap | No | The atom cap applied (explicit maxAtoms or the safe default), when the atom list was capped. | |
| bondCap | No | The bond cap applied (explicit maxBonds or the safe default), when the bond list was capped. | |
| atomCount | No | Number of atoms in the conformer. | |
| bondCount | No | Number of bonds in the conformer. | |
| truncated | No | True when the atom list, bond list, or raw SDF was capped below its total. atomCount/bondCount always report the full totals. | |
| shownAtoms | No | Atoms returned after the cap, when fewer than atomCount. Raise maxAtoms for more. | |
| shownBonds | No | Bonds returned after the cap, when fewer than bondCount. Raise maxBonds for more. | |
| conformerId | No | ID of the conformer returned: the requested conformerId, or the compound's default conformer. Read from the record's PUBCHEM_CONFORMER_ID data item; omitted when the record carries none. | |
| shownSdfLines | No | SDF lines returned when format="sdf" and the raw text was line-capped. Set includeRawSdf for the full record. | |
| alternateConformerIds | No | The compound's other conformer IDs — every listed ID except the one returned, the default included when another was requested. Pass one as conformerId to fetch that conformer. Present when includeAlternateConformerIds is set and other conformers exist. |