Commonlands Optics: M12 Lens and C-Mount Lens Finder + Field-of-View Calculator
v0.4.2M12 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…
| Parameter | Type | Description |
|---|---|---|
sku * | string | |
confirm | boolean | |
email | string | |
requestToken | string |
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.
| Parameter | Type | Description |
|---|---|---|
quantity * | integer | |
sku * | string | Exact full variant SKU from resolve_lens_product. |
checkout_access_token | string | Matching owner credential from create_checkout; never a Shop OAuth token. |
checkout_id | string | Optional existing checkout to read; its single line must match this variant and quantity. |
variant_id | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
lens_sku * | string | Exact optical part number from search/matching, e.g. CIL353; not an inferred Shopify configuration. |
requirements * | object | |
heightPx | integer | Custom sensor: vertical pixel count (e.g. 3040). |
pixelSizeUm | number | Custom sensor: pixel pitch in microns (e.g. 1.55). |
sensor | string | Sensor part number. Alternatively provide custom dimensions, not both. |
sensorHeightMm | number | Custom sensor: active-area height in mm. |
sensorWidthMm | number | Custom sensor: active-area width in mm (alternative to pixels x pitch). |
widthPx | integer | Custom 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…
| Parameter | Type | Description |
|---|---|---|
focalLengthMm | number | Fallback rectilinear reference only when no Commonlands lens SKU is available. Camel-case alias for focal_length_mm. |
focal_length_mm | number | Fallback rectilinear reference only when no Commonlands lens SKU is available. Snake-case alias for focalLengthMm. |
heightPx | integer | Custom sensor: vertical pixel count (e.g. 3040). |
horizontalPixels | integer | Alias for widthPx. |
lensSku | string | Commonlands lens SKU, for example CIL250. Camel-case alias for lens_sku. |
lens_sku | string | Commonlands lens SKU, for example CIL250. Snake-case alias for lensSku. |
pixelPitchUm | number | Alias for pixelSizeUm. |
pixelSizeUm | number | Custom sensor: pixel pitch in microns (e.g. 1.55). |
sensor | Sensor part number or safe sensor object. Supports AR0234, IMX290/IMX477 when present in the live catalog, and fixture sensors listed in the enum. | |
sensorHeightMm | number | Custom sensor: active-area height in mm. |
sensorPartNumber | Sensor part number. Camel-case alias for sensor. | |
sensorWidthMm | number | Custom sensor: active-area width in mm (alternative to pixels x pitch). |
sensor_part_number | Sensor part number. Snake-case alias for sensorPartNumber. | |
verticalPixels | integer | Alias for heightPx. |
widthPx | integer | Custom sensor: horizontal pixel count (e.g. 4056). Use with heightPx and pixelSizeUm. |
workingDistanceMm | number | Optional working distance in mm. Camel-case alias for working_distance_mm. |
working_distance_mm | number | Optional 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…
| Parameter | Type | Description |
|---|---|---|
desiredHorizontalFovDeg | number | |
desired_horizontal_fov_deg | number | |
heightPx | integer | Custom sensor: vertical pixel count (e.g. 3040). |
horizontalPixels | integer | Alias for widthPx. |
maxResults | integer | |
max_results | integer | |
mount | string | Optional mount filter, for example M12 or C-mount. |
pixelPitchUm | number | Alias for pixelSizeUm. |
pixelSizeUm | number | Custom sensor: pixel pitch in microns (e.g. 1.55). |
sensor | Sensor part number, for example AR0234, IMX290, or IMX477. Any sensor in the live catalog is accepted; the enum lists only the fixture fallback set. | |
sensorHeightMm | number | Custom sensor: active-area height in mm. |
sensorPartNumber | Sensor part number. Alias for sensor. | |
sensorWidthMm | number | Custom sensor: active-area width in mm (alternative to pixels x pitch). |
sensor_part_number | Sensor part number. Snake-case alias for sensorPartNumber. | |
verticalPixels | integer | Alias for heightPx. |
widthPx | integer | Custom sensor: horizontal pixel count (e.g. 4056). Use with heightPx and pixelSizeUm. |
workingDistanceMm | number | |
working_distance_mm | number |
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…
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
query | string | SKU, 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…
| Parameter | Type | Description |
|---|---|---|
lensSku | string | Commonlands lens SKU, for example CIL250. Camel-case alias for lens_sku. |
lens_sku | string | Commonlands lens SKU, for example CIL250. Snake-case alias for lensSku. |
sku | string | Legacy 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.
| Parameter | Type | Description |
|---|---|---|
partNumber * | string | Sensor 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.
| Parameter | Type | Description |
|---|---|---|
lensSkus * | array | |
sensorPartNumber * | string | Sensor part number, for example IMX477. |
workingDistanceMm | number |
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…
| Parameter | Type | Description |
|---|---|---|
after | string | Shopify endCursor from the previous page; keep the same search. |
handle | string | Optional Shopify product handle. |
includeMetafields | boolean | When true, include the allowlisted public product-page metafields (custom.* display specs). Non-public namespaces and keys are never returned. |
limit | integer | |
query | string | Optional safe Shopify product/variant search text. |
sku | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
cart * | object | |
meta | object | Optional 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.
| Parameter | Type | Description |
|---|---|---|
cart_access_token * | string | Owner credential returned by create_cart for this cart id. |
id * | string | Shopify Cart gid. |
meta | object |
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.
| Parameter | Type | Description |
|---|---|---|
cart * | object | |
cart_access_token * | string | Owner credential returned by create_cart for this cart id. |
id * | string | |
meta | object |
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.
| Parameter | Type | Description |
|---|---|---|
cart_access_token * | string | Owner 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.
| Parameter | Type | Description |
|---|---|---|
checkout * | object | |
cart_access_token | string | Required when checkout.cart_id is supplied; use the owner token from create_cart. |
meta | object | Optional 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.
| Parameter | Type | Description |
|---|---|---|
checkout_access_token * | string | Owner token returned by create_checkout. |
id * | string | Shopify Checkout gid. |
meta | object |
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.
| Parameter | Type | Description |
|---|---|---|
sensorPartNumber * | string | Sensor part number, for example IMX477. |
application | string | |
desiredHorizontalFovDeg | number | |
maxResults | integer | |
mount | string | |
preferLowDistortion | boolean | |
requireInStock | boolean | |
workingDistanceMm | number |
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…
| Parameter | Type | Description |
|---|---|---|
email * | string | The buyer's reply-to email so Commonlands can respond. |
message * | string | The buyer's question or RFQ details. |
application | string | Optional application note. |
company | string | Optional company name. |
confirm | boolean | Explicit buyer approval. Omit or false to get a no-send preview; set true only after the buyer has seen the preview and approved sending. |
kind | string | Whether this is a quote request or a general question. Defaults to question. |
name | string | Optional buyer name. |
partNumbers | Optional Commonlands SKUs of interest (string or array). | |
quantity | integer | Optional quantity for the quote. |
sensor | string | Optional sensor part number for context. |