Skip to main content
Glama
LensBench MCP

LensBench MCP

Official
by OpticChat

set

Modify parameters on a single optical surface with minimal edits that preserve comments, and preview changes with a dry run before applying them to an optical design.

Instructions

Modify parameters on a single optical surface (minimal edit preserving comments). [Mutates design]

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": {
      "surf": "<surf>",
      "values": "<values>"
    },
    "name": "set"
  }
}

Input Schema

NameRequiredDescriptionDefault
surfYes
valuesYes
dry_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It does add real behavioral context by stating the tool mutates the design and that the edit is minimal and preserves comments. However, it says nothing about reversibility, permissions, or the meaning of dry_run (which the schema defaults to false), leaving meaningful behavior undocumented.

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 compact sentences, front-loaded with the action, and the bracketed mutation tag is a terse warning. Nothing is wasted, though the bracketed tag is a stylistic fragment rather than integrated prose.

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 three-parameter mutation tool with no annotations, no output schema, and zero schema documentation, the description is thin: it omits the values encoding, dry_run behavior, and what the tool returns or confirms. What it does provide (scope, minimal-edit guarantee, mutation warning) is accurate but insufficient to call the tool confidently.

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 three parameters, so the description must compensate and it largely does not. It hints that 'surf' selects a single optical surface, but the required 'values' array is completely unexplained (expected string format, ordering, whether it is 'PARAM=value' pairs) and 'dry_run' is never mentioned.

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 names a specific verb and resource: 'Modify parameters on a single optical surface.' The parenthetical 'minimal edit preserving comments' clarifies the edit semantics. It falls short of 5 because it never contrasts with sibling tools such as spec_add or lens_apply, so the agent must infer that 'set' targets an existing surface whereas others add or apply wholesale.

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 explicit when-to-use or when-not-to-use guidance. '[Mutates design]' flags a consequence of calling it but does not tell the agent which situation warrants this tool versus the other lens-editing siblings. Usage is only vaguely implied by 'single optical surface'.

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