Skip to main content
Glama

Analyze a structure

analyze_structure
Read-only

Name, SMILES (with stereochemistry), molecular formula, exact (monoisotopic) mass, molecular weight, elemental analysis and isotope pattern (m/z). Mixtures and salts are also given per structure. For a drawing (a HexSketch link or CDXML), also its arrows and text: the reagents and conditions written on each arrow.

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": {
      "structure": "<structure>"
    },
    "name": "analyze_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
structureYesThe structure: SMILES (e.g. "CC(=O)Oc1ccccc1C(=O)O"), molfile or CDXML text, or a HexSketch link (https://hexsketch.com/#smiles=... or #cdxml=...). Not a name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safe, closed-world read profile is covered structurally. The description adds genuine behavioral context beyond that: mixtures and salts are reported per structure, and for drawings the arrow annotations (reagents and conditions) are also returned. It does not disclose failure behavior for malformed SMILES or unsupported inputs, which is a meaningful gap for an analysis tool.

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?

The text is dense and tightly sized, with the most valuable outputs (name, SMILES with stereochemistry, formula, mass) front-loaded and no filler sentences. The lack of an opening framing clause makes the first sentence read as a bare enumeration, a minor structural weakness. Every clause does carry output information, though.

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?

There is no output schema, so the description carries the burden of describing return values, and it does so thoroughly, including the per-structure treatment of mixtures and salts and the extra arrow data for drawings. Combined with the fully documented input schema and read-only annotations, an agent has enough to call it correctly. It falls short only on error and limitation handling.

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

Parameters3/5

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

With a single parameter and 100% schema description coverage, the schema already explains that the input is SMILES, molfile, CDXML text, or a HexSketch link and explicitly is not a name. The description's mention of drawings via HexSketch link or CDXML reinforces this but adds no syntax or validation detail beyond the schema. Baseline 3 applies.

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

Purpose3/5

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

The description opens with a bare list of computed properties (name, SMILES, formula, monoisotopic mass, molecular weight, elemental analysis, isotope pattern) rather than a verb-led statement of what the tool does, so the operation must be inferred from the name and title. It never distinguishes itself from siblings like name_structure or convert_structure, which plausibly overlap with the naming and format-conversion parts of its output. The scope is decipherable, but an agent must work to construct it.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus convert_structure, name_structure, or validate_structure, and no prerequisites or exclusions are given. The only usage-adjacent information is the implicit handling of drawings (HexSketch link or CDXML), which the input schema already spells out in full. The agent is left to infer selection criteria entirely.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.