Skip to main content
Glama
stge4code
by stge4code

refine

Run least-squares structure refinement using SHELXL or CGLS, processing .ins and .hkl files to produce refined .res models and .lst summaries for crystallographic analysis.

Instructions

Run least-squares structure refinement with SHELXL (or CGLS via shelxt).

Requires a complete .ins file (with L.S. / CGLS and HKLF instructions) and the .hkl reflection data. Returns the .lst summary and refined .res model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hklNo
insYes
programNoshelxl
timeoutNo
basenameNorefine

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the input requirements and the outputs (.lst summary and .res model), which is helpful. However, it doesn't disclose side effects—refinement typically writes intermediate files including potentially overwriting .res, .lst, .fcf, and log files—nor does it mention error behavior when input is invalid. The output description adds context but stops short of full behavioral disclosure.

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 description is two concise paragraphs. The first delivers the core purpose efficiently, and the second covers inputs/outputs. No filler or redundant phrasing. Slightly more could be added on parameters, but it's tight and front-loaded with the most important information.

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?

The tool has 5 parameters (0% schema coverage), multiple sibling tools, and an output schema. The description identifies the key inputs, outputs, and supported programs. However, for a computation-heavy tool with no annotations, it would benefit from disclosing expected runtime implications, file side effects, or common failure modes. The presence of an output schema lightens the return-format explanation burden, but the behavioral/parameter gaps remain.

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 description coverage is 0%, so the description must compensate. It explains what ins and hkl are (the .ins file and .hkl reflection data) through the prose. However, it doesn't explain program (beyond the CGLS mention), timeout, or basename semantics—these are named in the schema but their purpose isn't elaborated in the description. Partial compensation, leaving several parameters underspecified.

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

Purpose4/5

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

The description clearly states the tool runs least-squares structure refinement using SHELXL or CGLS via shelxt, with a specific verb (refine) and resource (structure). It distinguishes itself from siblings like solve (solving vs refining) and validate_ins, though it doesn't explicitly name these alternatives.

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?

The description specifies prerequisites (complete .ins file with L.S./CGLS and HKLF instructions, plus .hkl data), which gives the agent clear context for when this tool is appropriate. It doesn't explicitly call out when NOT to use it, but the prerequisites effectively gate usage. It mentions the program parameter supports shelxl or CGLS via shelxt, which is useful guidance.

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/stge4code/shelx-mcp'

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