Skip to main content
Glama

molecule_lookup

Convert chemical names and identifiers to SMILES strings for molecular workflows using the Chemical Identifier Resolver.

Instructions

Convert molecule names to SMILES using Chemical Identifier Resolver (CIR).

Args: molecule_name: Common name, IUPAC name, or CAS number of molecule (e.g., 'aspirin', 'caffeine', '50-78-2') fallback_to_input: If lookup fails, return the input string assuming it might be SMILES

This tool enables natural language input for molecules by converting common names, IUPAC names, CAS numbers, and other identifiers to SMILES strings that can be used with Rowan workflows.

Supported Input Types:

  • Common names: 'aspirin', 'caffeine', 'benzene', 'glucose'

  • IUPAC names: '2-acetoxybenzoic acid', '1,3,7-trimethylpurine-2,6-dione'

  • CAS numbers: '50-78-2' (aspirin), '58-08-2' (caffeine)

  • InChI strings

  • Already valid SMILES (will be validated)

Returns: SMILES string if successful, error message if not found

Examples: # Common drug name result = molecule_lookup("aspirin") # Returns: "CC(=O)Oc1ccccc1C(=O)O"

# IUPAC name result = molecule_lookup("2-acetoxybenzoic acid") # Returns: "CC(=O)Oc1ccccc1C(=O)O" # CAS number result = molecule_lookup("50-78-2") # Returns: "CC(=O)Oc1ccccc1C(=O)O" # Complex molecule result = molecule_lookup("paracetamol") # Returns: "CC(=O)Nc1ccc(O)cc1"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
molecule_nameYesCommon name, IUPAC name, or CAS number of molecule (e.g., 'aspirin', 'caffeine', '50-78-2')
fallback_to_inputNoIf lookup fails, return the input string assuming it might be SMILES

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/k-yenko/rowan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server