Skip to main content
Glama

Set Variable Constraints

zemax_set_variable_constraints

Set hard min/max constraints on optimization variables to enforce bounds during Zemax optimization.

Instructions

Set hard min/max constraints on optimization variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
constraintsYesVariable constraints

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?

With no annotations, the description carries full behavioral burden. It discloses that constraints are 'hard' and apply to 'optimization variables,' but says nothing about whether existing constraints are replaced, required variable state, idempotency, side effects, or error behavior for a mutation tool.

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?

A single, front-loaded sentence with no filler. The purpose is immediately visible and the description is appropriately sized for a focused setter 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?

The tool mutates optimization variables, has a nested required parameter, no annotations, and no output schema. The description is too terse to cover key behavioral context, such as persistence, replacement semantics, or interaction with other optimization tools.

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%, and the nested fields include descriptions and the allowed constraint values. The description merely mirrors the min/max concept and adds no syntax or format detail beyond the schema, so the baseline of 3 is appropriate.

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?

States a specific verb and resource: set hard min/max constraints on optimization variables. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling zemax_set_variable tool, which likely also deals with optimization variables.

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?

The description gives no guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. An agent can infer it is used during optimization setup, but nothing is stated explicitly.

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