Skip to main content
Glama

Load Merit Function File

zemax_load_merit_function_file

Load a .MF merit function file into Ansys Zemax OpticStudio to apply optimization targets for your lens design.

Instructions

Load a .MF merit-function file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute .MF file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/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 of behavioral disclosure. It implies a load operation but does not say whether it replaces the current merit function, requires a connected session, or has any side effects or error behavior.

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 a single front-loaded sentence with no wasted words. It is appropriately concise for a simple tool, though it is very sparse and could benefit from one clarifying clause about side effects.

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 one-parameter simple tool with no output schema and no annotations, the description identifies the operation and file type adequately. However, it omits important behavioral context such as whether loading replaces the existing merit function, leaving a clear gap.

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 100% for the single filePath parameter, so the schema already documents the required absolute .MF path. The description adds no additional parameter meaning, which matches the baseline when schema coverage is high.

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 states a specific verb ('Load') and resource ('.MF merit-function file'), making the operation clear. It does not explicitly differentiate from sibling tools like zemax_save_merit_function_file, though the verb itself contrasts with save.

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?

No when-to-use guidance, prerequisites, or alternatives are provided. The description only restates the operation without helping an agent choose between this and related merit-function tools.

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

Deploy Server

Other Tools