Molecular Structure Properties Calculation
Invocation
Use the exact tool name and parameter schema exposed by the current harness. Tool names in SDK examples below are raw MCP names, not model-facing aliases. Local files must be uploaded with molclaw-file-transfer before a server tool can use them. Repair PDB inputs first when the workflow requires it.
The description of tool calculate_mol_structure_complexity.
texCompute a set of molecular structure complexity descriptors for each SMILES. Args: smiles_list (List[str]): List of input SMILES strings, (e.g., ["N[C@@H](Cc1ccc(O)cc1)C(=O)O", "CC(C)C1=CC=CC=C1"]) Return: status (str): success/error msg (str): message metrics (List[dict]): List of dict, each containing feature keys. --smiles (str): A SMILES string of smiles_list --num_rotatable_bonds (int): Number of rotatable bonds --num_rings (int): Number of total rings --num_aromatic_rings (int): Number of aromatic rings --num_aliphatic_rings (int): Number of aliphatic rings --num_saturated_rings (int): Number of saturated rings --num_heteroatoms (int): Number of heteroatoms --fraction_csp3 (float): The fraction of sp³-hybridized carbon atoms (Fsp³) --num_bridgehead_atoms (int): Number of bridgehead atoms
How to use tool calculate_mol_structure_complexity:
pythonresponse = await client.session.call_tool( "calculate_mol_structure_complexity", arguments={ "smiles_list": smiles_list } ) result = client.parse_result(response) metrics = result["metrics"]


