Skip to main content
Glama
lichman0405

raspa-mcp

by lichman0405

generate_molecule_def

Generate a RASPA2 molecule definition file from atom coordinates and force-field parameters, writing it to the workspace for molecular simulations.

Instructions

Generate a per-molecule .def file at <work_dir>/molecules/<subdirectory>/<molecule_name>.def.

atoms items: {"type": str, "x": float, "y": float, "z": float}. Coords are Å relative to the molecule centre of mass.

bonds items: [i, j, "RIGID_BOND"] (or any RASPA2 bond keyword). bends items: [i, j, k, "<bend_keyword>"]. torsions items: [i, j, k, l, "<torsion_keyword>"].

Set MoleculeDefinition <subdirectory> in simulation.input so RASPA2 finds this file. Avoid MoleculeDefinition local — that points to $RASPA_DIR/share/raspa/molecules/local/, not your workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atomsYes
bendsNo
bondsNo
rigidNo
n_groupsNo
torsionsNo
work_dirYes
return_onlyNo
subdirectoryNoTraPPE
molecule_nameYes
acentric_factorYes
critical_pressure_PaYes
critical_temperature_KYes
Behavior3/5

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

With no annotations, the description discloses important behaviors such as coordinate origin (centre of mass), units (Å), and file path. However, it omits behavior of key parameters like return_only, rigid, n_groups, and doesn't state overwrite behavior or return value.

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

Conciseness5/5

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

The description is well-structured, with a clear purpose line, representative code blocks for array formats, and a usage note. No redundant sentences.

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

Completeness3/5

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

For a 13-parameter tool with no output schema or annotations, the description covers the main file content and path but leaves several parameters undocumented. It provides a good foundation but not enough for fully independent use, especially regarding return_only and thermodynamic parameters.

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?

Schema has zero description coverage for parameters. The description explains the structure of atoms/bonds/bends/torsions arrays and the path template implicitly covers work_dir, subdirectory, molecule_name. But critical properties, rigid, n_groups, and return_only remain unexplained, so coverage is partial.

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?

The description clearly states the tool's function: 'Generate a per-molecule .def file' with a specific path pattern. This distinguishes it from sibling tools like generate_force_field_def and get_molecule_definition.

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

Usage Guidelines4/5

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

Provides clear context on how to use the generated file ('Set MoleculeDefinition <subdirectory> in simulation.input') and a specific warning against 'MoleculeDefinition local'. However, it doesn't explicitly compare against alternative tools for retrieving or generating molecule definitions.

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

Install Server

Other Tools

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/lichman0405/raspa-mcp'

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