Commonlands engineering tools

Connect Your AI Assistant to Commonlands

Find a lens for your camera by telling your assistant which sensor you use and the field of view you need. Connect Commonlands once, then ask it to compare lenses, calculate field of view, and check current prices. No Commonlands account or API key is required.

  1. Open your assistant’s MCP server or connector settings and add Commonlands.
  2. Paste this server URL: https://mcp.commonlands.com/mcp.
  3. Enable the connection in your conversation, then paste the request below.
Select and copy this prompt into your AI assistant:

Help me choose a lens using Commonlands MCP. Start by asking for my image sensor model. If I do not know it, ask for its horizontal and vertical pixel counts and pixel pitch. Then ask for my required horizontal and vertical field of view, or the area I need to see and its distance from the camera. Use Commonlands MCP to find suitable lenses and calculate their field of view with lens distortion accounted for. Explain the sensor coverage and any calculation limits. Check the selected variant’s current price and availability before recommending it. Ask before creating a cart or sending a quote request.

Pasting a URL into chat does not install a connection. For help, follow the setup instructions for your app below.

Connect in Your Assistant

Commonlands is a remote MCP server: one HTTPS endpoint, no API key and no sign-in. Add it to your assistant, then ask for a lens in plain English.

Server URL https://mcp.commonlands.com/mcp Click to select, then copy

Claude web, desktop, mobile

  1. Open Claude Connectors, then choose + Add → Add custom connector.
  2. Name it Commonlands. Paste https://mcp.commonlands.com/mcp as the remote server URL and choose No sign in.
  3. Finish adding it and enable Commonlands in your conversation. Then ask: “Find an M12 lens for an IMX477 sensor at 70° horizontal field of view.”

Workspace permissions can affect setup. See Claude’s custom connector guide if your options differ.

Claude Code

  1. Run this one line in your terminal, then start Claude Code:
claude mcp add --transport http commonlands https://mcp.commonlands.com/mcp

Codex and other CLI agents use the same endpoint. Add it as an HTTP MCP server.

Cursor Desktop

  1. On the computer where Cursor is installed, click below and approve the server in Cursor desktop:

Add Commonlands to Cursor Desktop

This button opens the desktop app. If it does nothing, add the configuration below to Cursor’s mcp.json, then reload Cursor.

ChatGPT

  1. Open ChatGPT Plugins on the web. Select + → Add custom MCP server.
  2. Name it Commonlands. For the server URL, paste https://mcp.commonlands.com/mcp. Select No authentication.
  3. Review the connection, create and install the plugin, then select @Commonlands in your conversation. Ask for a lens and review tool approvals when prompted.

Workspace restrictions can affect access. Follow OpenAI’s custom MCP setup guide if your interface differs.

Zed, Continue, and other mcp.json clients

  1. Add the server to your client’s MCP config and restart it:
{
  "mcpServers": {
    "commonlands": {
      "url": "https://mcp.commonlands.com/mcp"
    }
  }
}

Zed uses "context_servers" instead of "mcpServers"; the URL is the same.

How to know it worked

You should see Commonlands lens search, sensor matching, and field-of-view tools. Ask “what Commonlands tools do you have?” If the tools appear, you’re connected. Then try one of the example questions.

Troubleshooting
  • No tools appear: confirm the URL ends in /mcp, then reload the client.
  • “Connection failed” in a browser: the endpoint answers JSON-RPC POST only; a plain visit returns 405. That is expected.
  • Asked for an API key or login: none is required because the server is public. Remove any auth header.
  • Read-only agent that cannot POST: use the public catalog and product links below.

Read-only agent? No POST access?

Read the live product catalog without an MCP connection. For a selected full SKU, use https://mcp.commonlands.com/products/{full-SKU}; append ?format=markdown for a readable summary. These routes read Shopify and do not cache product responses. Follow pagination to see the full catalog. They do not calculate sensor-specific field of view; use Commonlands MCP or the field-of-view calculator for that step.

What is the Commonlands MCP server?

The Commonlands MCP server lets an AI assistant work with Commonlands lens data instead of guessing. It can search M12 and C-mount lenses, match lenses to image sensors, run Commonlands field-of-view checks, compare candidates, report each lens's weight and mechanical dimensions, read live product details, and prepare a Shopify checkout link after you confirm the exact line items and quantities.

Use it for a shortlist grounded in live lens calculations and Shopify product reads. Keep any sensor reference fallback clearly labelled. The raw MCP surface exposes 21 tools. Cart tools can create, read, update, and cancel carts. Checkout tools prepare a Shopify link and read checkout status. You review and pay on Shopify; the Commonlands MCP server does not submit payment or place an order.

Endpoint: /mcp Live tools: 21 Cart: buyer-confirmed handoff Checkout: review and pay on Shopify Primary use: M12 and C-mount lens selection

Questions you can ask

Ask like you would ask an applications engineer. Your assistant should call the tools, show its sources, and explain the next safe step.

  • Find M12 lenses for a 1/2.8 inch sensor around 80 degrees horizontal field of view, then verify the result with the Commonlands field-of-view calculator.
  • Compare CIL078 and CIL250 for a robotics camera application, including M12 mount fit, C-mount alternatives, field of view, distortion warnings, and live product-page truth.
  • Recommend Commonlands lenses for low-distortion machine vision on a 1/1.8 inch sensor.
  • Resolve CIL250 to its current Shopify variants and show me the full SKUs before I choose one.
  • Prepare a cart for two CIL078 lenses after I confirm the exact live variant and quantity, then give me the continue URL.

What a useful answer includes

A good answer gives the part number and the reason behind it: sensor geometry, image-circle fit, calculated field of view, distortion status, missing engineering evidence, current variant price and stock, and the next step. That path may be product-page review, cart review, or engineering review.

What you can ask it

Talk to it like you would a Commonlands applications engineer. Most tools only read data. Cart changes, checkout preparation, and sending a quote request require your confirmation.

Which lens fits my sensor?

"Find an M12 lens for an IMX477 sensor at 70° horizontal field of view."

It reads the sensor (pixel count and pitch), then ranks lenses with live field of view and image-circle coverage.

What field of view will I get?

"What field of view does CIL353 give on an IMX477 sensor?"

It calculates horizontal, vertical, and diagonal field of view for that lens and sensor, with coverage and distortion status.

Is it in stock, and the price?

"Show the live price and availability for CIL250."

It resolves the lens family to full variant SKUs, then reads current Shopify price and stock quantities for your selection.

Can I get a quote or ask an engineer?

"Ask Commonlands for a quote on 50 units for my IMX477 build."

It shows you a preview with your question, part numbers, and reply-to email. It sends the inquiry only after you approve that preview.

Connection pattern

Use the server as a remote HTTPS MCP endpoint. The public tool surface does not require a customer API key. If your client supports commerce discovery, read the UCP profile as catalog discovery metadata. Use raw MCP tools/list for the full 21-tool surface. For smoke tests, send JSON-RPC requests with a normal client user agent and an accept header that allows JSON or server-sent events.

Connection note

GET /mcp returns 405 because the MCP endpoint expects JSON-RPC POST. If an assistant guesses https://commonlands.com/api/mcp, use the canonical endpoint https://mcp.commonlands.com/mcp for Commonlands optics. Shopify’s merchant UCP endpoint is a separate service at https://commonlands.com/api/ucp/mcp. If an assistant receives a connection-level 403, check the user-agent and accept headers before debugging the payload.

Initialize request

curl https://mcp.commonlands.com/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -H 'user-agent: your-mcp-client/1.0' \
  --data '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-11-25",
      "capabilities": {},
      "clientInfo": {
        "name": "your-agent",
        "version": "1.0"
      }
    }
  }'

Send your client's current protocol revision. The server negotiates versions and currently replies with 2025-11-25; serverInfo carries the deployed version shown in the status card.

What is available now

21

Live MCP tools

Search, lookup, sensor specs, field-of-view calculation, lens comparison, application recommendations, engineering requirement checks, exact-variant purchase options, live product reads, cart create/read/update/cancel, checkout preparation and status, and RFQ submission. Live lens records expose weight, maximum diameter, flange distance, and MBFL when available.

1

Endpoint

Connect assistants to https://mcp.commonlands.com/mcp. The UCP profile is useful catalog discovery metadata but does not advertise every raw MCP tool.

2

Checkout Tools

create_checkout prepares a Shopify checkout link. get_checkout reads its status with the returned access token. The customer reviews and pays on Shopify.

4

Cart Tools

create_cart, get_cart, update_cart, and cancel_cart manage buyer-confirmed items using live Variant GIDs. Keep the cart ID and access token for later calls.

Check the source label

Production lens search, matching, comparison, and lens-specific FoV use the live optics backend. If that backend fails, the server returns an error instead of substituting a fixture lens. Product resolution, price, and inventory come from Shopify. Optical-family specifications and purchasable variant data remain separately attributed.

Sensor lookup can return a labelled reference fallback. Check get_sensor_specs or the sensor source in assess_lens_requirements before calling those inputs live. Distortion may be calculated, display-only, or unavailable; report the returned status. Missing MTF, chief ray angle (CRA), or other engineering evidence is unknown, not a pass.

Use resolve_lens_product to select a full Shopify variant SKU, then get_purchase_options for the requested quantity. Each product or purchase-options call reads the Shopify backend again. Legacy product aliases now route to live reads; old purchase-handoff tools are retired. requireInStock in optical ranking is not a verified stock check, and a product read reserves no inventory.

Use the Commonlands field-of-view tools

Compute M12 and C-mount field of view with match_lens_to_sensor (catalog-wide, per sensor; prefer this for "lenses for this sensor" requests) or calculate_field_of_view (one lens and sensor). Lens-specific calculations use the authenticated live FoV backend. Start with the sensor dimensions and required field of view. Use the server’s distortion-aware calculation for the selected lens and sensor, and report its coverage and limitations.

This matters most for wide-angle and fisheye lenses, where a thin-lens or incomplete Kannala-Brandt estimate misses image-circle clipping, projection behavior, and product-specific distortion. The web field-of-view calculator mirrors the same models for humans.

Additional Calculation Resources

Use the web calculators for calculations beyond the current MCP contract. Check the connected server’s tool list for new capabilities.

Live in MCP

Angular resolution

Pixels per degree is already returned by calculate_field_of_view and match_lens_to_sensor alongside field of view, using live pixel count and pixel pitch from get_sensor_specs. The web calculator mirrors it for humans.

Open the field-of-view and angular-resolution calculator
Web calculator

Depth of field calculation

Use the depth-of-field calculator to estimate focus range, hyperfocal distance, depth of focus, and aperture tradeoffs.

Open the depth-of-field calculator
Web calculator

Effective focal length calculation

Use the focal-length calculator to estimate the lens focal length required for a sensor size and field-of-view target.

Open the focal-length calculator

Recommended workflow

  1. Start with the image sensor. Ask for its model, then use get_sensor_specs to check pixel counts and pixel pitch. If the model is unknown, ask for those details or the active sensor width and height. Keep any fixture fallback labelled.
  2. Ask what the camera needs to see. Establish the required horizontal and vertical field of view, or the target width, height, and working distance. Clarify which dimensions are fixed before selecting a lens.
  3. Use match_lens_to_sensor to find candidates, then calculate_field_of_view to check each final lens/sensor pair through Commonlands MCP. Use the server’s distortion-aware results and sensor-coverage notes. Report unavailable calculations rather than replacing them with a hand calculation.
  4. Explain the returned horizontal, vertical, and diagonal field of view, clipping, and distortion status. A display-only distortion value is not a measured correction profile. Verify the vertical requirement as well as the horizontal target.
  5. Use assess_lens_requirements for explicit FoV ranges, coverage, mount, and supported distortion or mechanical limits. Report satisfied, failed, and unknown checks. Missing engineering data needs confirmation; a passing optical-family check does not qualify every Shopify variant.
  6. Resolve the lens family with resolve_lens_product, ask the buyer to select a full variant SKU, then call get_purchase_options with that SKU and quantity. Check current Shopify price, online stock, backorder policy, and any unknown commercial terms.
  7. After the buyer confirms items and quantities, prepare a cart and Shopify checkout link, or use the separate supported Shop connection. Keep owner tokens private. For an RFQ, show the preview and obtain approval before sending.

Which tool to use

Need Use this Useful result
Broad lens discovery search_lens_catalog Live optical records with part number, mount, EFL, F-number, image circle, rated resolution, product URL, and available mechanical fields. Search recognizes M12/S-mount and C-mount/C FA aliases; CS-mount stays distinct. Use match_lens_to_sensor for a sensor or FoV target.
Exact product lookup resolve_lens_product Current published Shopify products and variants. A lens family can return several configurations; select the full SKU explicitly. The response preserves the matching ProductVariant GID, product URL, price, and inventory fields.
Sensor specs and field of view get_sensor_specs, then match_lens_to_sensor (find/rank for a sensor) or calculate_field_of_view (one lens and sensor); compare_lenses, get_lens_distortion_profile Sensor dimensions, pixel count, pitch, and source; per-sensor HFOV, VFOV, DFOV, coverage, angular resolution, and distortion status. A lens SKU uses the live backend. A focal-length-only input is a labelled rectilinear reference, not a product-specific result. Custom sensor dimensions remain caller-supplied data.
Lens mechanical specs Any live lens tool: search_lens_catalog, match_lens_to_sensor, compare_lenses, recommend_lenses_for_application, get_lens_distortion_profile, calculate_field_of_view Available source fields include weight, max_diameter, flange_dist, mbfl, and pixelpitchres. Preserve units and missing values as returned; do not infer reference planes or variant-specific fit. A nominal pixel-pitch rating does not establish measured MTF.
Engineering Requirements assess_lens_requirements Checks your stated limits against one optical part and sensor. Returns satisfied, failed, or unknown with evidence and missing data. MTF, CRA, illumination, spectral, mechanical-fit, environmental, and depth-of-field evidence remain unknown until approved structured data is available.
Application shortlist recommend_lenses_for_application A ranked shortlist for an application note such as embedded robotics or low-distortion machine vision. sensorPartNumber is required, and each candidate carries the same field of view, fit, and mechanical fields as match_lens_to_sensor.
Live product truth read_shopify_products Current published Online Store products, exact variant IDs/SKUs, price, media, approved links, and allowlisted metafields when requested. websiteStockQuantity is the aggregate tracked quantity used by website labels; availableQuantity is online sellable stock. Null means unknown or untracked, not zero. Check pageInfo and metafieldsComplete.
Cart review create_cart, get_cart, update_cart, or cancel_cart Cart state, a cart ID, and a cart_access_token the assistant must retain. Subsequent Commonlands MCP cart calls require both values. Keep complete IDs and tokens private. No payment or order is created.
Shopify checkout link create_checkout or get_checkout Checkout ID, status, line items, totals, a continue_url, and a checkout_access_token for status reads. Return the link to the customer for review and payment. Checkout creation does not place an order.
Quote or question submit_rfq Two-step and buyer-confirmed: the first call returns a preview and sends nothing, then a repeat call with confirm: true forwards the RFQ or question to the Commonlands team with the buyer email as reply-to. Sends an inquiry only; never creates an order, takes payment, or writes Shopify data.
Price and Stock for a Quantity get_purchase_options Current base price and currency, extended base price, selected-variant stock, and buyer-confirmed cart or RFQ routes. Volume terms can require a quote. Shipping and tax remain unknown unless an authorized matching checkout provides estimates. No cart, order, or inquiry is created by this read.

Choose How to Continue With Shopify

You only need Commonlands to select lenses and prepare a checkout link. Open that link to review shipping, taxes, and the total, then pay on Shopify.

Let Your Agent Continue Through Shop

If you want your agent to help complete an eligible purchase, add a separate Shop connection at https://mcp.shop.com/. Leave off the /mcp suffix. Follow Shop’s connection instructions, enable it in your conversation, and sign in directly with Shop when requested. Your client must support Shop’s protocol; adding Commonlands does not automatically connect Shop.

After you approve the selected variants and quantities, your assistant can follow the cart’s agent_checkout route in the Shop connection. Choose that route before converting the same cart through Commonlands. Review the current items, delivery, totals, and payment choice before approving a purchase. If Shop cannot complete it, use the returned checkout link. Keep Shop credentials and payment information out of Commonlands.

For Developers: Merchant UCP MCP and Browser WebMCP

Shopify UCP MCP provides merchant catalog, cart, and checkout services. Commonlands currently uses https://commonlands.com/api/ucp/mcp for cart and checkout operations. Integrators must follow Shopify’s discovery, agent-profile, and authentication requirements. The old /api/mcp catalog/cart tools are retired. Commonlands’ product aliases are separate compatibility routes to its live Shopify reader; they do not share the browser WebMCP contract.

Shopify WebMCP exposes browser tools on the shopper’s current page and session in a compatible browser. It is separate from a remote MCP connection. Product reads and variant selection were verified on Commonlands; those checks do not establish payment or order-completion support.

See the Commonlands commerce guide for agent handoff details.

How Shopify Checkout Links Work

Your assistant prepares the checkout. You review the final order and pay on Shopify. This method uses the Commonlands MCP connection you already added; it does not require a separate Shop MCP connection.

Price and Stock for Your Quantity

Ask for get_purchase_options after selecting the full SKU. It reads current Shopify base price and inventory for your quantity. Base-price arithmetic excludes discounts, shipping, and tax; quantities above one currently require a quote for volume terms until a published tier is verified.

  • For an eligible agent-completed purchase, use the buyer’s separate supported Shop connection and its authorization steps.
  • For customer checkout, prepare a Shopify link after item and quantity confirmation. Review final shipping, taxes, discounts, and total there before paying.
1

Confirm Your Items

Ask your assistant to check current product options and availability, then confirm the exact variants and quantities you want. It creates a cart from those confirmed items.

2

Get a Checkout Link

The assistant converts your cart into a Shopify checkout and gives you its checkout link. Creating this link does not charge a card, place an order, or reserve inventory.

3

Review and Pay on Shopify

Open the link, check the items and quantities, enter your delivery details, and review shipping, taxes, and the final total. Enter payment details on Shopify and submit your order there. Use Shopify's order confirmation as proof of purchase.

Ask your assistant:

Prepare a Shopify checkout link for the Commonlands products and quantities I confirmed. Show me the items and the link. I will review shipping, taxes, and the final total and pay on Shopify.

For Agent Integrations

For a buyer-authorized order through Shop MCP, follow the cart's agent_checkout.next_call in the buyer's connected Shop MCP. Choose that route before calling Commonlands create_checkout, which consumes the cart. If the supported agent checkout connection is unavailable, use the checkout-link method below.

Resolve live Variant GIDs with resolve_lens_product and verify the chosen SKU and quantity with get_purchase_options. After create_cart, retain the cart ID and cart_access_token. Call create_checkout with checkout.cart_id and that token, then return checkout.continue_url to the customer. Conversion consumes the cart; use the returned checkout ID and checkout_access_token with get_checkout for later status reads.

An incomplete checkout can be waiting for contact, shipping, or payment details. A requires_escalation status directs the customer to continue on Shopify. Neither status means an order was placed. Report errors as errors; do not invent a link or claim payment succeeded. If a link expires, ask the customer before preparing a replacement.

Keep complete Shopify IDs, access tokens, and checkout links private. Commonlands MCP verifies the matching token on follow-up calls; Shopify and other integrations enforce their own access rules. Enter payment and delivery details on Shopify, not in Commonlands MCP tool arguments.

Cart payload rules

Cart tools are strict on purpose. A successful cart call starts with live product truth, not fixture catalog output. The item ID must be a full ProductVariant GID returned for the selected SKU by resolve_lens_product or read_shopify_products. Carts are also owner-bound: create_cart returns a cart_access_token, and reads, updates, cancellation, and checkout conversion need both the cart ID and that token.

  • Use the exact gid://shopify/ProductVariant/… from the live response; do not copy an example ID.
  • Wrong IDs: SKUs, fixture IDs, Product GIDs, bare numeric variant IDs, and handoff-only fixture identifiers.
  • create_cart accepts cart.line_items with quantity and item ID, and returns a cart_access_token alongside the Cart GID.
  • get_cart, update_cart, and cancel_cart require the full returned cart ID and the matching cart_access_token through Commonlands MCP.
  • update_cart replaces the complete cart.line_items list. Include every line you want to keep, preserve returned line IDs, and supply the new quantities. An empty list removes all items. It does not submit payment.

What Has Been Tested

A live test resolved CIL250 from Shopify, created and read a cart, changed the quantity, created a checkout link, and read the checkout status. The link opened Shopify checkout with the correct variant and quantity, delivery fields, and payment options. The disposable checkout was canceled afterward. This verifies checkout preparation and the browser handoff. It does not verify a paid order, payment processing, or fulfillment.

Copy-paste examples

Check service health

curl -s \
  https://mcp.commonlands.com/healthz

Read discovery profile

curl -s \
  https://mcp.commonlands.com/.well-known/ucp

List available tools

curl -s -X POST \
  https://mcp.commonlands.com/mcp \
  -H 'content-type: application/json' \
  --data-binary '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }'

Search the Live Lens Catalog

{
  "jsonrpc": "2.0",
  "id": "search-m12",
  "method": "tools/call",
  "params": {
    "name": "search_lens_catalog",
    "arguments": {
      "query": "M12",
      "limit": 5
    }
  }
}

Match lenses to a sensor

{
  "jsonrpc": "2.0",
  "id": "imx477-match",
  "method": "tools/call",
  "params": {
    "name": "match_lens_to_sensor",
    "arguments": {
      "sensorPartNumber": "IMX477",
      "desiredHorizontalFovDeg": 70,
      "mount": "M12",
      "maxResults": 3
    }
  }
}

Find a Wide-Angle Candidate

{
  "jsonrpc": "2.0",
  "id": "imx477-wide-match",
  "method": "tools/call",
  "params": {
    "name": "match_lens_to_sensor",
    "arguments": {
      "sensorPartNumber": "IMX477",
      "desiredHorizontalFovDeg": 150,
      "maxResults": 3
    }
  }
}

Read the returned FoV, coverage, distortion status, and tradeoffs. A requested 150° target is not a guarantee of a matching lens. Rankings and catalog records can change.

Get sensor pixel count and pitch

{
  "jsonrpc": "2.0",
  "id": "imx477-sensor",
  "method": "tools/call",
  "params": {
    "name": "get_sensor_specs",
    "arguments": { "partNumber": "IMX477" }
  }
}

Returns sensor dimensions, resolution (pixel count), and pixel pitch, e.g. 4056 × 3040 px at 1.55 µm. Use these as inputs to the field-of-view tools, not to hand-calculate FoV.

Field of view for one lens and sensor

{
  "jsonrpc": "2.0",
  "id": "cil250-imx477-fov",
  "method": "tools/call",
  "params": {
    "name": "calculate_field_of_view",
    "arguments": {
      "lensSku": "CIL250",
      "sensorPartNumber": "IMX477"
    }
  }
}

Returns live HFOV, VFOV, and DFOV with an explicit rectilinear comparison and distortion status. Supply focalLengthMm instead of a SKU only for a clearly labeled rectilinear reference. Without a sensor part number, pass widthPx, heightPx, and pixelSizeUm; the response is labelled CUSTOM-1920x1080.

Read live product truth

{
  "jsonrpc": "2.0",
  "id": "cil250-live-read",
  "method": "tools/call",
  "params": {
    "name": "read_shopify_products",
    "arguments": {
      "sku": "CIL250",
      "limit": 1,
      "includeMetafields": true
    }
  }
}

Read by product handle

{
  "jsonrpc": "2.0",
  "id": "cil250-handle",
  "method": "tools/call",
  "params": {
    "name": "read_shopify_products",
    "arguments": {
      "handle": "telephoto-25mm-m12-lens-cil250",
      "limit": 1
    }
  }
}

Choose a Full Variant SKU

{
  "jsonrpc": "2.0",
  "id": "cil250-variants",
  "method": "tools/call",
  "params": {
    "name": "resolve_lens_product",
    "arguments": { "sku": "CIL250" }
  }
}

A family can have several filter or mechanical configurations. Ask the buyer to select a returned full SKU before checking purchase options.

Check an Engineering Requirement

{
  "jsonrpc": "2.0",
  "id": "cil353-requirements",
  "method": "tools/call",
  "params": {
    "name": "assess_lens_requirements",
    "arguments": {
      "lens_sku": "CIL353",
      "sensor": "IMX477",
      "requirements": {
        "horizontal_fov_deg": { "min": 68, "max": 74 },
        "full_sensor_coverage": true,
        "require_evidence": ["mtf"]
      }
    }
  }
}

Replace these illustrative limits with your requirements. Missing MTF evidence returns unknown and needs confirmation; a passing FoV check is not full lens qualification.

Create a cart handoff

{
  "jsonrpc": "2.0",
  "id": "create-cart",
  "method": "tools/call",
  "params": {
    "name": "create_cart",
    "arguments": {
      "cart": {
        "line_items": [
          {
            "quantity": 2,
            "item": { "id": "gid://shopify/ProductVariant/12345678901" }
          }
        ],
        "context": {
          "address_country": "US",
          "address_region": "CA"
        }
      }
    }
  }
}

Prepare a Shopify Checkout Link

{
  "jsonrpc": "2.0",
  "id": "prepare-checkout",
  "method": "tools/call",
  "params": {
    "name": "create_checkout",
    "arguments": {
      "cart_access_token": "TOKEN_FROM_CREATE_CART",
      "checkout": {
        "cart_id": "FULL_CART_ID_FROM_CREATE_CART"
      }
    }
  }
}

Replace the placeholders with the values returned by create_cart. Return checkout.continue_url to the customer. Keep the checkout ID and checkout_access_token for status reads. This call does not submit payment.

Read Checkout Status

{
  "jsonrpc": "2.0",
  "id": "read-checkout",
  "method": "tools/call",
  "params": {
    "name": "get_checkout",
    "arguments": {
      "id": "CHECKOUT_ID_FROM_CREATE_CHECKOUT",
      "checkout_access_token": "TOKEN_FROM_CREATE_CHECKOUT"
    }
  }
}

Use the checkout token, not the cart token. An incomplete status means the checkout still needs information before a purchase can be completed.

Check Price and Stock for a Quantity

{
  "jsonrpc": "2.0",
  "id": "cil250-purchase-options",
  "method": "tools/call",
  "params": {
    "name": "get_purchase_options",
    "arguments": {
      "sku": "CIL250-F2.0-M12ANIR",
      "quantity": 2
    }
  }
}

Use a full SKU returned by live resolution. This example is not a stock claim or a volume quote. The call does not create a cart or send an inquiry.

Sensor Specs and Their Source

get_sensor_specs reads a live, read-only sensor table (with fixture fallback), so it covers many image sensors rather than a fixed handful. For a part number it returns the manufacturer, the active-area dimensions, the pixel count (resolution width × height), the pixel pitch in microns, and the shutter type. For example, IMX477 returns 4056 × 3040 px at 1.55 µm.

Feed those specs into match_lens_to_sensor or calculate_field_of_view for sensor-specific field of view and pixels per degree; do not hand-calculate field of view from pixel pitch and EFL. If a sensor is missing, take its active-area dimensions from the datasheet and use the field-of-view calculator, and label the result as calculator-derived.

What a live probe returned

The November 23, 2026 read-only checks below describe the live server at that time. Refresh its health, tools, and product reads before relying on current availability. No order or RFQ was submitted in these checks.

  • /healthz returned production v0.4.4, commit 6bb157b. A registry listing can carry an older metadata version while pointing to this same running endpoint. Use health and tools/list for deployed capabilities.
  • Discovery profile: /.well-known/ucp returned endpoint https://mcp.commonlands.com/mcp with catalog.search, catalog.lookup, cart, and checkout capabilities. The profile does not enumerate every raw MCP tool; use tools/list for the full surface.
  • tools/list returned 21 tools, including resolve_lens_product, get_purchase_options, and assess_lens_requirements.
  • A C-mount catalog query returned live records using the normalized mount alias. Mechanical fields must retain their source units; missing or unitless evidence is not a passed engineering check.
  • Sensor and optics lookup: get_sensor_specs returned IMX477 as a Sony rolling-shutter sensor, 4056 × 3040 px at 1.55 µm pixel pitch, from the live sensor table, and match_lens_to_sensor returned per-sensor field of view from the live backend (source: aws-lambda-dynamodb-readonly), not an assistant-authored one-line calculator.
  • CIL250 resolved to multiple current Shopify variants. The buyer must select the full SKU before price and stock become a purchasing recommendation.

Do not overstate live reads

Product reads verify current Shopify identity, variants, price, stock, and public specifications. assess_lens_requirements checks requested optical constraints and names missing evidence. Neither a successful read nor a passed subset of checks establishes full engineering qualification.

How to interpret live product fields

Use read-only product tools when an assistant needs current product-page identity, live variant IDs, price signals, or metafield evidence. Prepare a cart or checkout link only after explicit buyer intent. Use the returned Shopify checkout link for customer review and payment.

  1. Use core product fields first: title, handle, product URL, type, vendor, tags, and media.
  2. Use variant fields for the full SKU, title, price, websiteStockQuantity, and availableQuantity. Do not sum different variants. Check availableForSale and continueSellingWhenOutOfStock; backorder permission does not establish a lead time.
  3. Use custom.* metafields for optical specs, compatibility content, engineering assets, product-page sections, and short part number.
  4. Use shopping-channel, SEO, review, and app metafields as diagnostics, not primary engineering truth.
  5. Metaobjects are not exposed on the public surface. Use the allowlisted custom.* product metafields from read_shopify_products instead.

Product page from a handle

If a returned product has handle telephoto-25mm-m12-lens-cil250, the customer-facing page is https://commonlands.com/products/telephoto-25mm-m12-lens-cil250. Prefer a returned productUrl when present, because it is already normalized and allowlisted.

Useful Commonlands metafields

When read_shopify_products returns metafields, these are the fields your assistant should recognize first.

Identity

custom.short_partnumber, custom.product_group_id, custom.group_id, and custom.headline_description help connect product-page language to Commonlands short part numbers.

Optical specs

custom.efl, custom.f_number, custom.field_of_view, custom.distortion, custom.image_circle, and custom.compatible_resolution are display specs. Use Commonlands server-side optics tools and website calculators for calculations.

Engineering assets

custom.mechanical_drawing, custom.mechanical_drawing_alt_text, custom.3d_model, and custom.docsend_page are handoff or asset fields. Do not expose private gated document URLs.

Variants

custom.ir_cut_off_filter can encode filtered and no-filter variants. Example: CIL250-F2.0-M12A650 means the CIL250 family, F/2.0 aperture, M12 mechanics, version A, and 650 nm IR-cut filter.

Compatibility

custom.compatibility_company_list, custom.compatibility_table_result, and related URL fields can support camera compatibility explanations when list order is preserved.

Page content

custom.product_long_description, custom.features_titles, custom.features_description, custom.faq_questions, and custom.faq_answers can explain what the product page is trying to communicate.

How answers should be phrased

Good phrasing

  • The live matching tool found this candidate. I checked its field of view on your sensor and listed the engineering evidence that still needs confirmation.
  • Use the returned product URL or cart continue URL as the next step. The MCP server did not complete payment or create an order.
  • The selected full SKU has this price and online sellable quantity as of the returned read time. Inventory is not reserved.

Bad phrasing

  • This item is definitely in stock.
  • I wrote my own calculator script, so the wide-angle or fisheye field of view is final.
  • I completed checkout, charged a card, created an order, created a customer, applied a discount, or reserved inventory.

The rule

Name the source and read time, distinguish optical-family data from the selected variant, and preserve unknowns. Cart tools prepare a handoff after buyer confirmation. A checkout link lets the customer review and pay; creating the link does not place an order.

Safety and commerce boundaries

The server is conservative by design. It helps with product discovery, engineering fit checks, and buyer-confirmed cart handoff. It does not touch protected customer data or complete transactions.

  • No product edits, variant edits, collection edits, tags, metafield writes, or other catalog writes.
  • Use the documented cart and checkout tools only for buyer-confirmed items. Commonlands MCP does not expose complete_checkout or accept payment details.
  • No payment completion, order placement, customer-record access, discounts, gift cards, or inventory reservations. The submit_rfq tool can send a quotation request; it does not accept a quote or commit to a purchase.
  • No inventory reservations, inventory writes, or inventory sync changes.
  • No Acumatica writes, database writes, direct live scans, or credential exposure.
  • No direct gated datasheet URLs.

Before broader transaction tools

Commonlands needs stable production endpoint bindings, tested product and variant mapping, price and availability revalidation, idempotency, audit logging, rate limits, customer-data policy review, and explicit approval before expanding beyond cart handoff.

Questions

What is the Commonlands MCP server?

The Commonlands MCP server is a public HTTPS endpoint for AI assistants that need structured M12 lens and C-mount lens data, image-sensor matching, field-of-view verification, product-page lookup, cart handoff, and engineering review routing.

Does Commonlands support agentic commerce?

Yes. After you confirm the exact products and quantities, your assistant can create a cart and prepare a Shopify checkout link. You open that link to review the items, shipping, taxes, and final total, then pay on Shopify. Generating a link does not place an order or charge a card. No separate Shop MCP connection is needed for this method.

How Should an Agent Check Quantity Pricing?

Select the full variant SKU, then call get_purchase_options with the requested quantity. It reads current Shopify base price and stock. Volume terms above one unit currently require a quote until a published tier is verified. Base totals exclude discounts, shipping, and tax. Review final checkout totals before paying.

Can an assistant buy through this server today?

It can prepare your cart and checkout link after you confirm the products and quantities. You complete the purchase on Shopify. The public Commonlands MCP tools do not submit payment or place an order, even if you tell the assistant to buy. Agent-completed purchases require a separate supported payment integration; they are not part of this checkout-link method.

Is the Catalog Live?

Production lens search, matching, comparison, and lens-specific field-of-view calculations use the live optics backend. Backend failures return errors rather than fixture lenses. Product resolution, price, and inventory read Shopify on each request. Sensor lookup can use a labelled reference fallback; report that source. Legacy product aliases use live reads, and old purchasing handoffs are retired.

Which Tools Should My Assistant Use?

Start with get_sensor_specs, then match_lens_to_sensor and calculate_field_of_view for the sensor and required view. Use assess_lens_requirements to check explicit limits and missing evidence. Resolve the optical family with resolve_lens_product, select a full variant SKU, and call get_purchase_options for current price and stock. read_shopify_products provides public product fields. Use tools/list for the current tool set.

Can someone else read or change my cart if they get the cart ID?

Through Commonlands MCP, cart reads, updates, cancellation, and conversion to checkout require the matching cart_access_token as well as the cart ID. Checkout reads require a separate checkout_access_token. These are bearer credentials, not a customer login. Keep the complete Shopify IDs, tokens, and checkout links private: Shopify and other authorized integrations have their own access rules.

Can an assistant request a quote or contact engineering?

Yes, with an explicit confirmation step. The first submit_rfq call sends nothing: it returns a preview of exactly what would go to Commonlands, including the reply-to email. The assistant shows the buyer that preview, and only after the buyer approves does it call again with confirm: true to send. It sends an inquiry only and never creates an order, takes payment, or writes store data. The recipient is fixed to the Commonlands inbox, so an assistant cannot send mail to anyone else.

Can the Server Return a Sensor’s Pixel Count and Pixel Pitch?

Yes. get_sensor_specs returns available dimensions, pixel count, pixel pitch, and source from the live sensor table, with labelled reference fallback. Use the confirmed sensor geometry with match_lens_to_sensor or calculate_field_of_view. If the model is missing, supply active dimensions or pixel counts and pitch; those inputs remain caller-supplied data.

Does It Return Lens Weight and Mechanical Dimensions?

Lens records can include weight, max_diameter, flange_dist, mbfl, and pixelpitchres. Preserve source units and missing values. assess_lens_requirements compares weight or diameter only when the source includes an explicit supported unit. Nominal dimensions and resolution ratings do not establish mechanical fit or measured MTF.

Does it expose datasheets?

No direct gated datasheet URLs are returned. Responses can mention that datasheets are gated and point assistants to the product page access path.

What happens if a sensor is larger than the lens image circle?

The field-of-view response clips the used sensor dimensions to the lens image circle and returns a warning. Assistants should not treat that as a final fit without engineering review.

Should assistants write their own field-of-view calculator?

No. Assistants should use Commonlands MCP tools or the Commonlands field-of-view calculator to verify M12 and C-mount results. Private scripts and incomplete Kannala-Brandt fisheye approximations can miss distortion, image-circle clipping, projection assumptions, and product-specific warnings. Wide-angle and fisheye field of view is likely to be wrong without Commonlands verification.

Need a lens recommendation with engineering review?

Use the MCP server for structured discovery and field-of-view verification. Use cart handoff only after line-item confirmation. For edge cases, send the sensor, field of view, working distance, quantity, and shortlisted part numbers to the Commonlands engineering team.

Contact engineering