Skip to main content
Glama

Draw several structures

batch_generate
Idempotent

Draw multiple compounds as separate PNG, SVG, or CDXML files and panels, accepting English/IUPAC names or SMILES, with failed names reported and successful structures returned.

Instructions

Draw several individual compounds as separate PNG/SVG files and panels.

Failed names are reported in failed while successful structures are returned. Pass English or IUPAC names, or SMILES.

Not this tool for: one compound (use generate_molecule), all stereoisomers of one compound (use generate_molecule with stereo_variants=True — it enumerates them, meso forms once), structures the user wants to learn or revise (use export_anki_deck — the cards draw the structures themselves), structural differences (use compare_molecules), or a reaction scheme (use generate_reaction).

Args: molecules: List of English/IUPAC compound names or SMILES strings. formats: Output file formats, any of "png", "svg", "cdxml" (default: ["png", "svg"]). Include "cdxml" ONLY when the user wants to edit the structures in ChemDraw. abbreviate_groups: Set True to draw common substituents as short labels (Ph, Bn, OAc, OMe, CO2H, tBu, Boc, Ts …) instead of full skeletons. Applies to every molecule in the batch, so a series of structures stays visually consistent. render_style: Named look applied to every molecule in the batch. Empty = standard style. "compact" for small printed figures, "presentation" for slides, "grayscale" for grayscale printing.

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": {
      "molecules": "<molecules>"
    },
    "name": "batch_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatsNo
moleculesYes
render_styleNo
annotate_stereoNo
abbreviate_groupsNo

Output Schema

NameRequiredDescriptionDefault
typeNobatch
failedNo
moleculesNo
cdxml_pathsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.10.0
    • addedOutput schema / $defs / MoleculePayload / properties / protein
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/ProteinView"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / $defs / ProteinView
      Added value: +{
      +  "description": "Protein cartoon for the panel (backbone N/Cα/O, secondary structure, bound groups).",
      +  "properties": {
      +    "chains": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Chains",
      +      "type": "array"
      +    },
      +    "citation": {
      +      "default": "",
      +      "title": "Citation",
      +      "type": "string"
      +    },
      +    "colorBy": {
      +      "default": "ss",
      +      "title": "Colorby",
      +      "type": "string"
      +    },
      +    "identifier": {
      +      "default": "",
      +      "title": "Identifier",
      +      "type": "string"
      +    },
      +    "ligands": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Ligands",
      +      "type": "array"
      +    },
      +    "plddtMean": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Plddtmean"
      +    },
      +    "scheme": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Scheme"
      +    },
      +    "source": {
      +      "default": "",
      +      "title": "Source",
      +      "type": "string"
      +    },
      +    "ssSource": {
      +      "default": "deposited",
      +      "title": "Sssource",
      +      "type": "string"
      +    },
      +    "subtitle": {
      +      "default": "",
      +      "title": "Subtitle",
      +      "type": "string"
      +    },
      +    "title": {
      +      "default": "",
      +      "title": "Title",
      +      "type": "string"
      +    }
      +  },
      +  "title": "ProteinView",
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.8.0
    • addedOutput schema / $defs / MoleculePayload / properties / foundAs
      Added value: +{
      +  "default": "",
      +  "title": "Foundas",
      +  "type": "string"
      +}
  3. Changed12 schema fields changedv0.6.0
    • addedOutput schema / $defs / IsomerCandidate
      Added value: +{
      +  "description": "One structure a family name (\"xylene\", \"Glucose\") can mean.",
      +  "properties": {
      +    "label": {
      +      "title": "Label",
      +      "type": "string"
      +    },
      +    "name": {
      +      "default": "",
      +      "title": "Name",
      +      "type": "string"
      +    },
      +    "smiles": {
      +      "title": "Smiles",
      +      "type": "string"
      +    },
      +    "svg": {
      +      "default": "",
      +      "title": "Svg",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "label",
      +    "smiles"
      +  ],
      +  "title": "IsomerCandidate",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / candidates
      Added value: +{
      +  "default": [],
      +  "items": {
      +    "$ref": "#/$defs/IsomerCandidate"
      +  },
      +  "title": "Candidates",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / initialView
      Added value: +{
      +  "default": "",
      +  "title": "Initialview",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / message
      Added value: +{
      +  "default": "",
      +  "title": "Message",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / projectionNote
      Added value: +{
      +  "default": "",
      +  "title": "Projectionnote",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / stereoNote
      Added value: +{
      +  "default": "",
      +  "title": "Stereonote",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / stereoWarnings
      Added value: +{
      +  "default": [],
      +  "items": {
      +    "$ref": "#/$defs/StereoWarning"
      +  },
      +  "title": "Stereowarnings",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / viewAtoms
      Added value: +{
      +  "default": [],
      +  "items": {
      +    "$ref": "#/$defs/AtomData"
      +  },
      +  "title": "Viewatoms",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / viewRequest
      Added value: +{
      +  "additionalProperties": true,
      +  "default": {},
      +  "title": "Viewrequest",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / viewSvg
      Added value: +{
      +  "default": "",
      +  "title": "Viewsvg",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MoleculePayload / properties / views
      Added value: +{
      +  "default": [],
      +  "items": {
      +    "type": "string"
      +  },
      +  "title": "Views",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / StereoWarning
      Added value: +{
      +  "description": "Ein Stereoelement, dessen Konfiguration die Eingabe offen lässt.",
      +  "properties": {
      +    "atoms": {
      +      "default": [],
      +      "items": {
      +        "type": "integer"
      +      },
      +      "title": "Atoms",
      +      "type": "array"
      +    },
      +    "kind": {
      +      "title": "Kind",
      +      "type": "string"
      +    },
      +    "label": {
      +      "default": "",
      +      "title": "Label",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind"
      +  ],
      +  "title": "StereoWarning",
      +  "type": "object"
      +}
  4. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare a non-read-only, open-world, idempotent, non-destructive write. The description adds genuinely useful behavior beyond that: partial batch failure is reported per-name in failed while successes are still returned, which tells the agent the call is not all-or-nothing. It does not say where files land on disk or whether names are written.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then failure semantics, then accepted input syntax, then exclusions, then args — a logical order an agent can scan. Slightly padded by the repeated "applies to every molecule in the batch" phrasing across two args and a long exclusion list, but nothing is truly wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need no explanation, and the risky-parameter cases (cdxml only for editing, batch-wide styling flags) are covered. The one real hole is that annotate_stereo is undocumented in both schema and description for a 5-parameter draw tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the parameter burden and it mostly does: formats lists allowed values, the default, and a conditional rule for cdxml; abbreviate_groups gives label examples and notes it applies batch-wide for visual consistency; render_style names its concrete values and the meaning of empty. Only annotate_stereo, present in the schema, is never mentioned.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Draw several individual compounds") plus the output artifact ("separate PNG/SVG files and panels"), and the plural/multi-molecule scope immediately separates it from generate_molecule.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The "Not this tool for" block names five distinct alternatives with the exact condition that selects each: generate_molecule for one compound, generate_molecule with stereo_variants=True for stereoisomers, export_anki_deck for learning, compare_molecules for differences, generate_reaction for schemes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.