Skip to main content
Glama

Nsc Set Source Spectrum

zemax_nsc_set_source_spectrum

Configure spectrum settings and color mode for a non-sequential source object in Zemax OpticStudio.

Instructions

Set typed spectrum settings for an NSC source object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesSource color mode
settingsYes
objectNumberYesOne-based source object number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/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 burden. 'Set' implies mutation but the description says nothing about reversibility, whether prior spectrum data is overwritten, required object state, or what the mode values constrain. For a mutation tool with zero annotation coverage this is a significant gap.

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?

One short sentence with no waste. It is front-loaded with the verb, though brevity here edges toward under-specification rather than true conciseness.

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?

A mutation tool with no annotations, no output schema, a nested opaque settings object, and no guidance on valid modes or expected inputs. The description leaves too much unspecified for an agent to invoke it correctly on the first try.

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 67% and the critical 'settings' parameter is an empty object with additionalProperties=false and no properties defined – the description gives no clue what keys belong there or their form. 'mode' is vaguely described as 'Source color mode' with no enum, and the description adds nothing beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a verb ('Set') and resource ('typed spectrum settings for an NSC source object'), so the action is identifiable. However, 'typed spectrum' is domain jargon not elaborated, and the description doesn't differentiate from sibling zemax_nsc_get_source_spectrum beyond the get/set distinction already in the names.

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?

No when-to-use guidance, no prerequisites, and no mention of the sibling zemax_nsc_get_source_spectrum as the read counterpart. The agent must infer that this mutates the spectrum while the sibling reads it.

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