Skip to main content
Glama

Set Aspheric Surface

zemax_set_aspheric_surface

Convert a Zemax surface to an Even Asphere and set its conic constant and alpha coefficients for precise aspheric lens modeling.

Instructions

Convert to Even Asphere and set conic and alpha coefficients.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conicNoConic constant
alpha1NoEven-asphere alpha1 coefficient
alpha2NoEven-asphere alpha2 coefficient
alpha3NoEven-asphere alpha3 coefficient
alpha4NoEven-asphere alpha4 coefficient
alpha5NoEven-asphere alpha5 coefficient
alpha6NoEven-asphere alpha6 coefficient
alpha7NoEven-asphere alpha7 coefficient
alpha8NoEven-asphere alpha8 coefficient
conicVariableNoMake conic variable
surfaceNumberYesSurface number
alpha1VariableNoMake alpha1 variable
alpha2VariableNoMake alpha2 variable
alpha3VariableNoMake alpha3 variable
alpha4VariableNoMake alpha4 variable
alpha5VariableNoMake alpha5 variable
alpha6VariableNoMake alpha6 variable
alpha7VariableNoMake alpha7 variable
alpha8VariableNoMake alpha8 variable

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 exist, so the description carries the full behavioral burden. It does disclose the important trait that the surface is converted to Even Asphere (a real type mutation), but it says nothing about what gets overwritten by the conversion, whether coefficients are optional, or that the *Variable flags mark terms as optimization variables.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its terseness is arguably insufficient given a 19-parameter mutation tool.

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

Completeness2/5

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

For a 19-parameter mutation tool with no annotations and no output schema, the description is too thin. It omits the purpose of the variable flags, the optionality of coefficients, and any post-conversion side effects an agent would need to call it safely.

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%, so each of the 19 parameters is already self-documented, establishing a baseline of 3. The description confirms the conic/alpha coefficient family but adds no syntax, range, or interaction detail (e.g., relationship between alphaN and alphaNVariable) beyond the schema.

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 compound verb ('Convert to Even Asphere and set conic and alpha coefficients') and a clear resource, so an agent knows it both changes the surface type and populates coefficients. However, it does not explicitly distinguish itself from closely-named siblings like zemax_get_aspheric_surface or zemax_set_surface_type, leaving the 'read vs. write' and 'type-change vs. coefficient-set' boundaries to be inferred from naming.

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 guidance on when to use this tool versus alternatives such as zemax_set_surface, zemax_set_surface_parameter, or zemax_set_surface_type. No prerequisites (e.g., an open lens file or valid surface number) are mentioned, so the agent must guess the context.

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