Skip to main content
Glama
LensBench MCP

LensBench MCP

Official
by OpticChat

import_zmx

Converts a sequential Zemax .zmx file into .lens format and opens the imported prescription in the current session for further analysis and editing.

Instructions

Import a sequential Zemax .zmx file into .lens format and open it in the session.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "zmx_path": "<zmx_path>"
    },
    "name": "import_zmx"
  }
}

Input Schema

NameRequiredDescriptionDefault
zmx_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that only 'sequential' files are supported and that the file is both converted and opened, but says nothing about whether an existing lens in the session is replaced, what happens on parse failure or on a non-sequential file, or what the caller gets back.

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; each clause (import, convert to .lens, open in session) adds a distinct fact.

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, no-output-schema, session-mutating tool, this covers the essentials of what it does but leaves the side effects on existing session state and the failure modes undefined.

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?

One parameter at 0% schema coverage, so the description must compensate. It does add meaning—zmx_path points at a Zemax .zmx file and must be sequential—but gives no path format hints (absolute vs. relative, extensions, working directory).

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: import a Zemax .zmx file, convert it to .lens, and open it in the session. The conversion-plus-open clause clearly separates it from a plain 'open' or 'export_zmx', though it never names those siblings explicitly.

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?

Usage is only implied—an agent can infer you reach for this when you have an external .zmx to bring into the session. There is no explicit when-to-use vs. 'open' or 'export_zmx', and no stated prerequisites (does a lens already need to be loaded?).

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