Get PubChem compound attributes
get_compound_attributes_from_pubchemRetrieve core PubChem compound attributes by CID, including IUPAC name, molecular formula, weight, SMILES, InChI, IRI, and structure image URL for chemical data lookup.
Instructions
Get core attributes of one PubChem compound: IUPAC name, molecular formula, molecular weight, SMILES, InChI, its identifiers.org IRI and a structure-image URL. Served by a DBCLS SPARQList API over PubChem RDF (https://togodx.dbcls.jp/human/sparqlist/api/metastanza_pubchem_compound).
RETURNS a JSON array string with one object for the CID (keys ID, URL,
label, molecular_formula, molecular_weight, SMILES, InChI,
formula_img). An unknown CID is NOT an error: it returns the same object with
label, molecular_formula, SMILES and InChI as empty strings — treat an
empty label as "not found". On upstream/HTTP
failure this tool does NOT raise — it returns a plain string beginning with
"Error:" (not JSON). check for the "Error:" prefix before parsing.
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": {
"pubchem_compound_id": "<pubchem_compound_id>"
},
"name": "get_compound_attributes_from_pubchem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pubchem_compound_id | Yes | PubChem Compound ID (CID), e.g. "445154". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |