Skip to main content
Glama
LensBench MCP

LensBench MCP

Official
by OpticChat

optimize

Adjust active variables to minimize the merit function in optical designs, with local/hammer modes and dry-run preview before mutating the design.

Instructions

Optimize active variables to minimize the merit function. [Mutates design] [Long-running]

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": "optimize"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNolocal
dry_runNo
backgroundNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does useful work by flagging [Mutates design] and [Long-running] — exactly the traits an agent needs to know before committing. However, it says nothing about whether a running optimization can be interrupted, whether it persists results automatically, or what it returns. The tags are valuable but incomplete for a mutation tool with zero annotation coverage.

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?

Two short clauses plus bracketed traits, fully front-loaded with the action and its effect. Every element earns its place, with no filler. It is terse to the point of omitting needed parameter context, but the wording itself is clean.

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 mutating, long-running, three-parameter tool with no annotations and no output schema, the description omits too much: parameter behavior, prerequisites for active variables, and any hint about results or failure handling. An agent knows what the tool does at a high level but not how to call it correctly.

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 description coverage is 0% across 3 parameters, so the schema does nothing to explain mode (local vs hammer), dry_run, or background. The description mentions 'active variables' but never clarifies what the two modes do or how background interacts with dry_run, leaving the agent to guess at the most consequential parameter.

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 gives a specific verb and object: it optimizes the active variables to minimize the merit function. That is far more informative than a bare 'optimize', and it implicitly separates this tool from siblings like check, verify, or run_tool that do not change the design. It does not explicitly name a sibling or state its scope, so it stops short of a 5.

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?

Mentioning 'active variables' implies that variables must already be marked active (presumably via set), but the description never states that prerequisite. Nor does it say when to prefer a plain evaluation like spot or mtf over an actual optimization, or when to use local versus hammer mode. Usage is only inferable, not stated.

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