Skip to main content
Glama
PCB Parts MCP Server

PCB Parts MCP Server

by Averyy

Sensor Recommend

sensor_recommend
Read-onlyIdempotent

Recommends sensor ICs and modules by measurement target, protocol, and supported platform, returning matching parts and valid values for unknown filters.

Instructions

Recommend sensor ICs and modules for what you want to measure, with protocol and platform support. Unknown measure, protocol and platform values return valid_values; an unknown type returns no matches. Accepts 1-wire/one-wire and heart rate/blood oxygen aliases. Not for buying parts: use jlc_search. Exact normalized query-ID/alias matches come first; within each group, results are sorted by how many platforms have drivers (platform_count descending), then name ascending. Calculated CO2 (CCS811, ENS160, ENS161, SGP30, iAQ-Core, APC1, SM300D2) is under eco2, not co2; capability_note says what such a part really outputs (BME680/BME688: IAQ and CO2 equivalent come from Bosch's BSEC library on the host), and compensation inputs aren't direct measurements. Generic MCU/platform IDs such as RP2040 are excluded. A query with no searchable words (stop words, single letters, symbols) is ignored and the reply adds a note.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sensor_recommend"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoSensing technology (e.g., "tof", "ultrasonic", "ndir", "electrochemical", "mems")
limitNoMax results (default 15, clamped to 1-100)
queryNoName, description or manufacturer (e.g., "BME280", "waterproof"), max 500 characters
measureNoOne, or a list/JSON-array string of up to 20 that must all match: temperature, humidity, pressure, distance, tof, lidar, ultrasonic, radar, co2, eco2, co, gas, voc, formaldehyde, h2s, nh3, ozone, oxygen, particulate, light, color, uv, optical, acceleration, gyroscope, magnetic_field, tilt, vibration, rotation, motion, pir, proximity, gesture, face_recognition, current, voltage, sound, flow, level, force, weight, touch, ph, dissolved_oxygen, conductivity, orp, water_quality, moisture, soil_moisture, rain, wind, weather, ir_temperature, flame, biometric, radiation, gps, speed, material. Accepted values come from the catalog. "imu" means acceleration, gyroscope or magnetic_field for a scalar or singleton list; in a multi-item list all expanded measures are required. Everyday words (barometric, lux, dust, compass) are mapped too.
platformNo"arduino", "esphome", "micropython", "circuitpython", "tasmota", "zephyr" or "raspberry_pi". ESP-IDF has no support records; unknown platforms return valid_values.
protocolNo"i2c", "i3c", "spi", "uart", "analog", "pwm", "gpio", "one_wire", "rs485", "rs232", "can", "i2s", "usb", "ble", "hdq" or "ssi"; gpio includes gpio/analog/pwm/one_wire, digital includes gpio/pwm/one_wire, and 1-wire/one-wire alias one_wire

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.9.1
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (max 100)"New value: +"Max results (default 15, clamped to 1-100)"
    • changedInput schema / properties / measure / description
      Previous value: -"One, or a list that must all match: temperature, humidity, pressure, distance,\ntof, lidar, ultrasonic, radar, co2, co, gas, voc, formaldehyde, h2s, nh3, ozone,\noxygen, particulate, light, color, uv, optical, acceleration, gyroscope,\nmagnetic_field, tilt, vibration, rotation, motion, pir, proximity, gesture,\nface_recognition, current, voltage, sound, flow, level, force, weight, touch, ph,\ndissolved_oxygen, conductivity, orp, water_quality, moisture, soil_moisture, rain,\nwind, weather, ir_temperature, flame, biometric, radiation, gps. \"imu\" means\nacceleration, gyroscope or magnetic_field; everyday words (barometric, lux, dust,\ncompass) are mapped too."New value: +"One, or a list/JSON-array string of up to 20 that must all match: temperature,\nhumidity, pressure, distance, tof, lidar, ultrasonic, radar, co2, eco2, co, gas, voc,\nformaldehyde, h2s, nh3, ozone,\noxygen, particulate, light, color, uv, optical, acceleration, gyroscope,\nmagnetic_field, tilt, vibration, rotation, motion, pir, proximity, gesture,\nface_recognition, current, voltage, sound, flow, level, force, weight, touch, ph,\ndissolved_oxygen, conductivity, orp, water_quality, moisture, soil_moisture, rain,\nwind, weather, ir_temperature, flame, biometric, radiation, gps, speed, material.\nAccepted values come from the catalog. \"imu\" means\nacceleration, gyroscope or magnetic_field for a scalar or singleton list; in a\nmulti-item list all expanded measures are required. Everyday words (barometric,\nlux, dust, compass) are mapped too."
    • changedInput schema / properties / protocol / description
      Previous value: -"\"i2c\", \"spi\", \"uart\", \"analog\", \"pwm\", \"gpio\", \"one_wire\", \"rs485\", \"can\" or \"i2s\""New value: +"\"i2c\", \"i3c\", \"spi\", \"uart\", \"analog\", \"pwm\", \"gpio\", \"one_wire\", \"rs485\", \"rs232\",\n\"can\", \"i2s\", \"usb\", \"ble\", \"hdq\" or \"ssi\";\ngpio includes gpio/analog/pwm/one_wire, digital includes gpio/pwm/one_wire,\nand 1-wire/one-wire alias one_wire"
    • changedInput schema / properties / query / description
      Previous value: -"Name, description or manufacturer (e.g., \"BME280\", \"waterproof\")"New value: +"Name, description or manufacturer (e.g., \"BME280\", \"waterproof\"), max 500 characters"
  2. Changed6 schema fields changedv0.8.21
    • addedInput schema / properties / limit / description
      Added value: +"Max results (max 100)"
    • addedInput schema / properties / measure / description
      Added value: +"One, or a list that must all match: temperature, humidity, pressure, distance,\ntof, lidar, ultrasonic, radar, co2, co, gas, voc, formaldehyde, h2s, nh3, ozone,\noxygen, particulate, light, color, uv, optical, acceleration, gyroscope,\nmagnetic_field, tilt, vibration, rotation, motion, pir, proximity, gesture,\nface_recognition, current, voltage, sound, flow, level, force, weight, touch, ph,\ndissolved_oxygen, conductivity, orp, water_quality, moisture, soil_moisture, rain,\nwind, weather, ir_temperature, flame, biometric, radiation, gps. \"imu\" means\nacceleration, gyroscope or magnetic_field; everyday words (barometric, lux, dust,\ncompass) are mapped too."
    • addedInput schema / properties / platform / description
      Added value: +"\"arduino\", \"esphome\", \"micropython\", \"circuitpython\", \"tasmota\", \"zephyr\" or\n\"raspberry_pi\". ESP-IDF has no support records; unknown platforms return valid_values."
    • addedInput schema / properties / protocol / description
      Added value: +"\"i2c\", \"spi\", \"uart\", \"analog\", \"pwm\", \"gpio\", \"one_wire\", \"rs485\", \"can\" or \"i2s\""
    • addedInput schema / properties / query / description
      Added value: +"Name, description or manufacturer (e.g., \"BME280\", \"waterproof\")"
    • addedInput schema / properties / type / description
      Added value: +"Sensing technology (e.g., \"tof\", \"ultrasonic\", \"ndir\", \"electrochemical\", \"mems\")"
  3. First observedv0.4.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it safe and idempotent; the description adds substantial behavior: unknown measure/protocol/platform values return valid_values, an unknown type returns no matches, stop-word-only queries are ignored with a note, and capability_note explains what a part actually outputs (BME680/688 CO2 equivalent comes from BSEC on the host). Ranking order (exact normalized ID/alias matches first, then platform_count desc, then name) is also disclosed.

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?

Purpose is front-loaded and almost every sentence carries operational information, but the middle paragraph is a dense run-on covering ranking, CO2 mapping, capability_note, and exclusions in one block. Slightly tighter grouping would improve scanability without losing content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation; the description instead covers the parts an agent can't infer — fallback behavior for bad values, alias handling, ranking, and domain traps around eco2. For a zero-required-parameter discovery tool, nothing needed for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds genuinely new meaning: alias acceptance (1-wire/one-wire, heart rate/blood oxygen), that generic MCU/platform IDs like RP2040 are excluded, and that compensation inputs don't count as direct measurements. These are semantics the schema's enum listings don't convey.

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

Purpose5/5

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

The opening sentence gives a specific verb and resource ('Recommend sensor ICs and modules') with scope ('for what you want to measure, with protocol and platform support'), and it explicitly disambiguates from the sibling jlc_search ('Not for buying parts'). An agent can pick between this and a purchasing search without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states an explicit exclusion and names the alternative ('Not for buying parts: use jlc_search'), plus practical routing cues like 'Calculated CO2 ... is under eco2, not co2' and that ESP-IDF has no support records. What's missing is forward guidance on when to prefer this over catalog-oriented siblings like board_search or cse_search, but the named alternative covers the main confusion.

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