Commonlands Optics: M12 Lens and C-Mount Lens Finder + Field-of-View Calculator

v0.4.2
com.commonlands/optics-mcp Checked 3 days ago Published 1 month ago

M12 lens and C-mount lens finder with image-sensor matching and field-of-view calculator.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

request_cad_download Request a STEP model

Request a STEP file for a full variant SKU listed in resolve_lens_product.cadModels. Before requesting a preview or asking for an email, use the workspace that will save the file to GET https://mcp.commonlands.com/cad/download without credentials. Expect HTTP 200 and the HTML page titled "Commonlands CAD download". If the workspace cannot make this request or the check fails, stop before registration and report the access issue. Preview with the selected SKU alone. Show the disclosure and ask permission to share the user’s email with Commonlands. After approval, send the same sku, requestTok…

ParameterTypeDescription
sku *string
confirmboolean
emailstring
requestTokenstring

get_purchase_options Check quantity purchase options

Read current Shopify price, currency, online inventory and backorder policy for an exact full SKU and quantity. Base-price arithmetic is not a binding quote; unverified volume terms require an RFQ. Optionally read an existing owner-authorized checkout for shipping/tax estimates. Creates no cart, checkout, order or RFQ.

ParameterTypeDescription
quantity *integer
sku *stringExact full variant SKU from resolve_lens_product.
checkout_access_tokenstringMatching owner credential from create_checkout; never a Shop OAuth token.
checkout_idstringOptional existing checkout to read; its single line must match this variant and quantity.
variant_idstringOptional Shopify Variant GID; must match the full SKU.

resolve_lens_product Resolve a live lens product

Resolve a lens family such as CIL034 to published Shopify variants. Select the full SKU from products[].variants[] using its selectedOptions, or look up that SKU directly. For STEP files, match the selected SKU to cadModels[].sku when available. Use the optical part number with calculate_field_of_view for sensor-specific optics.

ParameterTypeDescription
sku *string

assess_lens_requirements Check a lens against engineering requirements

Start with the sensor dimensions and a shortlisted optical part number. Check FoV ranges, image-circle coverage, nominal mount and axis-specific calculated distortion using the existing live FoV backend. Explicitly report unknown mass/dimensions without source units and missing engineering evidence. No fixture lens substitution, recalculated optics, product qualification or purchase action.

ParameterTypeDescription
lens_sku *stringExact optical part number from search/matching, e.g. CIL353; not an inferred Shopify configuration.
requirements *object
heightPxintegerCustom sensor: vertical pixel count (e.g. 3040).
pixelSizeUmnumberCustom sensor: pixel pitch in microns (e.g. 1.55).
sensorstringSensor part number. Alternatively provide custom dimensions, not both.
sensorHeightMmnumberCustom sensor: active-area height in mm.
sensorWidthMmnumberCustom sensor: active-area width in mm (alternative to pixels x pitch).
widthPxintegerCustom sensor: horizontal pixel count (e.g. 4056). Use with heightPx and pixelSizeUm.

calculate_field_of_view Calculate Commonlands field of view

Calculate Commonlands lens field of view for a lens/sensor pair and return HFOV, VFOV, DFOV, coverage, distortion status, and an explicit rectilinear comparison. Use this tool for FOV, HFOV, VFOV, DFOV, field of view, "lens for", lens-to-sensor, AR0234, IMX290, IMX477, and sensor part-number requests. It returns Commonlands data the model cannot derive: live backend FoV when configured, distortion model/status, image-circle coverage, live stock through Shopify read tools where applicable, and MTF/CRA/BFL fields if present in upstream catalog data. Do not use naive rectilinear fallback, focal-l…

ParameterTypeDescription
focalLengthMmnumberFallback rectilinear reference only when no Commonlands lens SKU is available. Camel-case alias for focal_length_mm.
focal_length_mmnumberFallback rectilinear reference only when no Commonlands lens SKU is available. Snake-case alias for focalLengthMm.
heightPxintegerCustom sensor: vertical pixel count (e.g. 3040).
horizontalPixelsintegerAlias for widthPx.
lensSkustringCommonlands lens SKU, for example CIL250. Camel-case alias for lens_sku.
lens_skustringCommonlands lens SKU, for example CIL250. Snake-case alias for lensSku.
pixelPitchUmnumberAlias for pixelSizeUm.
pixelSizeUmnumberCustom sensor: pixel pitch in microns (e.g. 1.55).
sensorSensor part number or safe sensor object. Supports AR0234, IMX290/IMX477 when present in the live catalog, and fixture sensors listed in the enum.
sensorHeightMmnumberCustom sensor: active-area height in mm.
sensorPartNumberSensor part number. Camel-case alias for sensor.
sensorWidthMmnumberCustom sensor: active-area width in mm (alternative to pixels x pitch).
sensor_part_numberSensor part number. Snake-case alias for sensorPartNumber.
verticalPixelsintegerAlias for heightPx.
widthPxintegerCustom sensor: horizontal pixel count (e.g. 4056). Use with heightPx and pixelSizeUm.
workingDistanceMmnumberOptional working distance in mm. Camel-case alias for working_distance_mm.
working_distance_mmnumberOptional working distance in mm. Snake-case alias for workingDistanceMm.

match_lens_to_sensor Match Commonlands lenses to a sensor

Find and rank Commonlands lenses for a sensor, target field of view, working distance, mount, or "lens for" request. Use this tool for FOV, HFOV, VFOV, DFOV, field of view, "lens for", lens-to-sensor, AR0234, IMX290, IMX477, and sensor part-number requests. It returns Commonlands data the model cannot derive: live backend FoV when configured, distortion model/status, image-circle coverage, live stock through Shopify read tools where applicable, and MTF/CRA/BFL fields if present in upstream catalog data. Do not use naive rectilinear fallback, focal-length-only math, interpolation, or self-compu…

ParameterTypeDescription
desiredHorizontalFovDegnumber
desired_horizontal_fov_degnumber
heightPxintegerCustom sensor: vertical pixel count (e.g. 3040).
horizontalPixelsintegerAlias for widthPx.
maxResultsinteger
max_resultsinteger
mountstringOptional mount filter, for example M12 or C-mount.
pixelPitchUmnumberAlias for pixelSizeUm.
pixelSizeUmnumberCustom sensor: pixel pitch in microns (e.g. 1.55).
sensorSensor part number, for example AR0234, IMX290, or IMX477. Any sensor in the live catalog is accepted; the enum lists only the fixture fallback set.
sensorHeightMmnumberCustom sensor: active-area height in mm.
sensorPartNumberSensor part number. Alias for sensor.
sensorWidthMmnumberCustom sensor: active-area width in mm (alternative to pixels x pitch).
sensor_part_numberSensor part number. Snake-case alias for sensorPartNumber.
verticalPixelsintegerAlias for heightPx.
widthPxintegerCustom sensor: horizontal pixel count (e.g. 4056). Use with heightPx and pixelSizeUm.
workingDistanceMmnumber
working_distance_mmnumber

search_lens_catalog Search Commonlands lens catalog

Search the Commonlands lens catalog by SKU, mount, lens type, M12, C-mount, or application text. For total track length (TTL), query the optical part number and read totalTrackLengthMm on its live result. For sensor part numbers such as AR0234, IMX290, and IMX477, or any "lens for <sensor>" request, use match_lens_to_sensor instead — sensor names are not searchable text here. Use this tool for FOV, HFOV, VFOV, DFOV, field of view, "lens for", lens-to-sensor, AR0234, IMX290, IMX477, and sensor part-number requests. It returns Commonlands data the model cannot derive: live backend FoV when con…

ParameterTypeDescription
limitinteger
querystringSKU, title, mount, lens type, application, sensor, or field-of-view search text.

get_lens_distortion_profile Get Commonlands lens distortion profile

Return the Commonlands distortion model/status for one lens SKU, including whether the data is source-display-only or backend-calculated. Use this tool for FOV, HFOV, VFOV, DFOV, field of view, "lens for", lens-to-sensor, AR0234, IMX290, IMX477, and sensor part-number requests. It returns Commonlands data the model cannot derive: live backend FoV when configured, distortion model/status, image-circle coverage, live stock through Shopify read tools where applicable, and MTF/CRA/BFL fields if present in upstream catalog data. Do not use naive rectilinear fallback, focal-length-only math, interpo…

ParameterTypeDescription
lensSkustringCommonlands lens SKU, for example CIL250. Camel-case alias for lens_sku.
lens_skustringCommonlands lens SKU, for example CIL250. Snake-case alias for lensSku.
skustringLegacy SKU alias.

get_sensor_specs Get sensor specs

Return sensor dimensions, pixel pitch, and resolution for lens field of view, M12 lens, and C-mount lens matching inputs. In production this uses the read-only live sensor table when configured, with fixture fallback when unavailable. Use these specs as inputs to calculate_field_of_view or match_lens_to_sensor, not as a reason to hand-calculate FoV. FoV rule: never estimate sensor-specific FoV from catalog fields; use calculate_field_of_view or match_lens_to_sensor.

ParameterTypeDescription
partNumber *stringSensor part number, for example IMX477.

compare_lenses Compare Commonlands lenses

Compare selected Commonlands M12 lens and C-mount lens SKUs on the same sensor with the same deterministic scoring model. Use as explanatory context, then call calculate_field_of_view for final sensor-specific FoV values when precision matters. FoV rule: never estimate sensor-specific FoV from catalog fields; use calculate_field_of_view or match_lens_to_sensor. Not live product truth; verify purchasable facts with read_shopify_products.

ParameterTypeDescription
lensSkus *array
sensorPartNumber *stringSensor part number, for example IMX477.
workingDistanceMmnumber

get_catalog_snapshot_status Get joined catalog snapshot status

Return fixture-backed joined catalog counts, validation status, source provenance, live connector readiness, and non-authoritative product-truth warning.

get_shopify_ucp_readiness Get Shopify Storefront/UCP readiness

Report connector-free Shopify Storefront MCP and UCP Catalog compatibility, launch blockers, and Commonlands engineering differentiators.

get_shopify_readonly_config_status Get Shopify read-only config status

Report sanitized Cloudflare Shopify binding presence, approved read scopes, and read-only safety flags without exposing secrets or calling Shopify.

read_shopify_products Read Shopify products

Use this for live purchasable product truth: product and variant IDs, full SKUs, prices, availability, product URLs, and public product-page metafields. Each variant includes websiteStockQuantity (tracked inventory count used by website stock labels), availableQuantity (online sellable stock), inventoryTracked, availableForSale, and continueSellingWhenOutOfStock. Null quantities mean unknown or untracked, not zero. Match the full selected SKU and variantId; never sum different variants. Each call reads current Shopify backend data. Use generatedAt for read freshness. Typed metafield value is a…

ParameterTypeDescription
afterstringShopify endCursor from the previous page; keep the same search.
handlestringOptional Shopify product handle.
includeMetafieldsbooleanWhen true, include the allowlisted public product-page metafields (custom.* display specs). Non-public namespaces and keys are never returned.
limitinteger
querystringOptional safe Shopify product/variant search text.
skustringOptional variant SKU, for example CIL250.

create_cart Create Shopify cart

Create a Shopify-owned cart after buyer confirmation of live variants and quantities. Retain cart_access_token for get_cart/update_cart. For an agent-authorized purchase, use the returned agent_checkout route in the buyer's separate Shop MCP connection; Shop handles sign-in, approval, and payment. Otherwise use Commonlands create_checkout for a customer payment link. This tool places no order.

ParameterTypeDescription
cart *object
metaobjectOptional UCP metadata. ucp-agent.profile is filled from server config when omitted.

get_cart Get Shopify cart

Retrieve a Shopify-owned cart with its cart_access_token from create_cart. Retain the full cart id, owner token, and continue_url. The agent_checkout field describes how the buyer's separate Shop MCP connection can convert this cart and complete an approved purchase; it does not itself place an order.

ParameterTypeDescription
cart_access_token *stringOwner credential returned by create_cart for this cart id.
id *stringShopify Cart gid.
metaobject

update_cart Update Shopify cart

Replace the complete Shopify cart after buyer confirmation. Requires id and cart_access_token. Read the cart first, then send cart.line_items containing every item to retain with item.id (ProductVariant GID), quantity, and optional existing line id. Omitted lines are removed; [] empties the cart. This does not place an order.

ParameterTypeDescription
cart *object
cart_access_token *stringOwner credential returned by create_cart for this cart id.
id *string
metaobject

cancel_cart Cancel Shopify cart

Cancel a Shopify-owned cart using its id and cart_access_token. Requires meta["idempotency-key"] UUID for retry safety. This does not cancel an order or refund payment.

ParameterTypeDescription
cart_access_token *stringOwner token returned by create_cart.
id *string
meta *object

create_checkout Create Shopify Checkout MCP checkout

Prepare a Shopify checkout after the buyer confirms exact live variants and quantities. Pass checkout.cart_id and its cart_access_token to convert a cart, or checkout.line_items. Retain checkout_access_token from the response. Send the buyer to continue_url for review and payment; this does not place an order.

ParameterTypeDescription
checkout *object
cart_access_tokenstringRequired when checkout.cart_id is supplied; use the owner token from create_cart.
metaobjectOptional UCP metadata. ucp-agent.profile is filled from server config when omitted.

get_checkout Get Shopify Checkout MCP checkout

Read a Shopify checkout handoff summary using its id and checkout_access_token from create_checkout. Buyer and payment details are withheld. Send the buyer to continue_url to review and pay.

ParameterTypeDescription
checkout_access_token *stringOwner token returned by create_checkout.
id *stringShopify Checkout gid.
metaobject

recommend_lenses_for_application Recommend lenses for an application

Rank Commonlands M12 lenses and C-mount lenses for an application note such as embedded robotics, machine-vision inspection, or a required lens field of view. Use as an application shortlist helper, then call match_lens_to_sensor or calculate_field_of_view for final per-sensor HFOV/VFOV/DFOV. FoV rule: never estimate sensor-specific FoV from catalog fields; use calculate_field_of_view or match_lens_to_sensor.

ParameterTypeDescription
sensorPartNumber *stringSensor part number, for example IMX477.
applicationstring
desiredHorizontalFovDegnumber
maxResultsinteger
mountstring
preferLowDistortionboolean
requireInStockboolean
workingDistanceMmnumber

submit_rfq Submit an RFQ or question to Commonlands

Forward a buyer request-for-quote or engineering question to the Commonlands engineering team. Two-step, buyer-confirmed: the first call returns a preview and sends nothing; show the buyer the preview (including their reply-to email) and, only after they explicitly approve, call again with confirm: true to send. The recipient is fixed to the Commonlands inbox (the agent cannot choose it); this only sends an inquiry and never creates an order, charges a card, or writes Shopify/customer data. Include part numbers, sensor, quantity, and application when known so the team can reply with a quote. C…

ParameterTypeDescription
email *stringThe buyer's reply-to email so Commonlands can respond.
message *stringThe buyer's question or RFQ details.
applicationstringOptional application note.
companystringOptional company name.
confirmbooleanExplicit buyer approval. Omit or false to get a no-send preview; set true only after the buyer has seen the preview and approved sending.
kindstringWhether this is a quote request or a general question. Defaults to question.
namestringOptional buyer name.
partNumbersOptional Commonlands SKUs of interest (string or array).
quantityintegerOptional quantity for the quote.
sensorstringOptional sensor part number for context.