Skip to main content
Glama
LensBench MCP

LensBench MCP

Official
by OpticChat

export_zmx

Exports the active lens prescription to a Zemax .zmx file, enabling transfer to Zemax OpticStudio.

Instructions

Export the active lens to Zemax .zmx.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_zmx"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.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 behavioral burden, and it discloses very little. It does not say whether an existing file is overwritten, whether a path is required, what the default destination is, or what a failure looks like for an export that writes to disk.

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 tight, though brevity here edges toward under-specification rather than efficiency.

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 file-writing tool with an undocumented optional path parameter and no output schema, the description should cover destination resolution and overwrite behavior. As written it leaves an agent unable to predict what the call will do on disk beyond producing a .zmx file.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter 'out' is never referenced in the description, so the agent gets no help understanding whether it is a file path, directory, or filename, or what happens if it is omitted. Since the parameter is optional this is not critical, but the description adds nothing beyond the bare 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?

States a specific verb (Export), resource (the active lens), and target format (Zemax .zmx), which cleanly separates it from the sibling import_zmx. It stops short of an explicit contrast with that sibling, but the direction of the operation is unambiguous.

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

Usage Guidelines3/5

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

The verb implies usage (saving the current lens to a file) but there is no stated when-to-use guidance, no prerequisite such as an active lens being open, and no mention of alternatives. The agent must infer the context entirely from 'active lens'.

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