calc.engineer
engineer.calc/calc
Serveur MCP OK 89 outils
88 free engineering calculators: RF link budgets, LoRa/Meshtastic, PCB, solar, homelab. Keyless.
Fiche technique
- Auteur
- calc.engineer (espace de noms du registre)
- Dépôt
- —
- Site
- calc.engineer
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://calc.engineer/mcp Streamable HTTP
- Outils
- 89
- Catégories
- —
- Dernière mise à jour
- 18 juil. 2026
- Publication
- 18 juil. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/engineer.calc/calc)<a href="https://latlas.dev/mcp/engineer.calc/calc"><img src="https://latlas.dev/badge/fiche/engineer.calc/calc.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://calc.engineer/mcp
- Dernier résultat
- OK 28 nov. 2026, 09:12
- Temps de réponse
- 1 243 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- calc-engineer 1.0.0
- Outils
- 89
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 09:12 | OK | 1 243 ms | 89 |
Outils exposés (89, réponse à tools/list, 28 nov. 2026)
fspl
fspl
Calculate free-space path loss (FSPL) in decibels using the ITU-R P.525 standard formula. Given a frequency in MHz and distance in kilometres, returns the expected signal attenuation in an ideal line-of-sight radio link with no obstacles, reflections, or atmospheric absorption. Also computes the RF wavelength. Use this to estimate baseline path loss before adding fade margins, antenna gains, or environmental corrections. Feeds directly into link_budget for full end-to-end analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| freq_mhz | number | oui | Carrier frequency in megahertz (MHz) |
| dist_km | number | oui | Distance between transmitter and receiver in kilometres |
link_budget
link budget
Compute a full RF link budget from transmitter power, frequency, distance, and antenna gains. Calculates EIRP, free-space path loss (ITU-R P.525), received power at the receiver, and link margin relative to an optional receiver sensitivity threshold. Use this to determine whether a wireless link closes with adequate margin. Accepts output from noise_figure_cascade and feeds into snr_margin for full receive-chain analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| tx_dbm | number | oui | Transmitter output power in dBm |
| freq_mhz | number | oui | Carrier frequency in megahertz (MHz) |
| dist_km | number | oui | Link distance in kilometres |
| tx_gain_dbi | number | non | Transmit antenna gain in dBi (default 2.15 for a half-wave dipole) |
| rx_gain_dbi | number | non | Receive antenna gain in dBi (default 2.15 for a half-wave dipole) |
| rx_sensitivity_dbm | number | non | Receiver sensitivity in dBm; when provided, link margin is calculated |
dipole
dipole
Calculate physical dimensions of a dipole antenna for a given frequency. Returns half-wave or quarter-wave element length in metres, feet, and inches. A half-wave dipole is the most common resonant antenna with approximately 2.15 dBi gain. A quarter-wave monopole (ground plane antenna) is half the length and is widely used in handheld radios and vehicle-mounted systems. Use this before building or purchasing an antenna to verify element length for your operating frequency.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| freq_mhz | number | oui | Operating frequency in megahertz (MHz) |
| type | enum: "half_wave" | "quarter_wave" | non | Antenna type: half_wave dipole or quarter_wave monopole |
microstrip
microstrip
Calculate PCB microstrip trace width for a target characteristic impedance using the Hammerstad-Jensen closed-form equations. Given target impedance (Z0), substrate dielectric constant (er), substrate height, and copper weight, returns the required trace width and effective dielectric constant. Optionally computes effective wavelength at a given frequency. Essential for RF PCB layout to achieve controlled impedance traces (e.g. 50 ohm for SMA connectors). References IPC-2141.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| z0_ohm | number | non | Target characteristic impedance in ohms (default 50) |
| er | number | non | Substrate relative dielectric constant (default 4.6 for FR-4) |
| height_mm | number | oui | Substrate height (dielectric thickness) in millimetres |
| copper_oz | number | non | Copper weight in oz/ft2 (1 oz = 0.035 mm thickness) |
| freq_mhz | number | non | Optional frequency in MHz for effective wavelength calculation |
dbm_convert
dbm convert
Convert a power level in dBm to milliwatts, watts, dBW, and RMS voltage across a given impedance. dBm is the standard unit for RF power referenced to 1 milliwatt. This tool is essential when interfacing datasheets (which use dBm) with circuit analysis (which uses volts and watts). Default impedance is 50 ohms, matching most RF systems. Use this to quickly verify power amplifier output, receiver sensitivity, or regulatory EIRP limits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| dbm | number | oui | Power level in dBm (decibels relative to 1 milliwatt) |
| impedance_ohm | number | non | Load impedance in ohms for Vrms calculation (default 50) |
noise_figure_cascade
noise figure cascade
Calculate the cascaded noise figure of a multi-stage receiver chain using the Friis formula. Each stage has a noise figure and gain in dB. The first stage dominates overall system noise, which is why low-noise amplifiers (LNAs) are placed at the front of the chain. Returns total cascaded noise figure, total gain, and equivalent noise temperature. Feeds into link_budget for complete receive-chain sensitivity analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| stages | array<object> | oui | Ordered array of receiver chain stages, each with nf_db and gain_db |
vswr
vswr
Convert between VSWR, return loss, and reflection coefficient — provide any one parameter and get all related impedance-mismatch metrics. Computes VSWR (voltage standing wave ratio), return loss in dB, reflection coefficient (gamma), mismatch loss, and percentage of power reflected vs transmitted. Essential for antenna matching, transmission line analysis, and RF system budgeting. Feeds into link_budget for system-level mismatch accounting.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| vswr | number | non | Voltage standing wave ratio (>= 1.0, where 1.0 is perfect match) |
| return_loss_db | number | non | Return loss in decibels (positive value, higher is better match) |
| reflection_coefficient | number | non | Reflection coefficient magnitude (gamma), 0 to 1 |
attenuator_pi
attenuator pi
Design a Pi-topology resistive attenuator pad. Given a desired attenuation in dB and characteristic impedance (default 50 ohm), computes the three resistor values for a symmetrical Pi-pad network. The Pi attenuator uses two shunt resistors (R1, R3) and one series resistor (R2). Commonly used in RF signal chains to reduce signal level while maintaining impedance match. Compare with attenuator_tee for T-pad topology.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| attenuation_db | number | oui | Desired attenuation in decibels (positive value) |
| z0_ohm | number | non | Characteristic impedance in ohms (default 50) |
attenuator_tee
attenuator tee
Design a Tee-topology resistive attenuator pad. Given a desired attenuation in dB and characteristic impedance (default 50 ohm), computes the three resistor values for a symmetrical T-pad network. The Tee attenuator uses two series resistors (R1, R3) and one shunt resistor (R2). Commonly used in RF signal chains to reduce signal level while maintaining impedance match. Compare with attenuator_pi for Pi-pad topology.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| attenuation_db | number | oui | Desired attenuation in decibels (positive value) |
| z0_ohm | number | non | Characteristic impedance in ohms (default 50) |
fresnel_zone
fresnel zone
Calculate the Fresnel zone radius at the midpoint of a radio link. Given frequency in MHz, link distance in kilometres, and zone number (1-5), returns the Fresnel zone radius in metres and feet, plus the 60% clearance threshold used in practical link engineering. The first Fresnel zone defines the region where most RF energy travels; obstructions within 60% of this radius cause significant signal degradation. Feeds into link_budget for path clearance analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| freq_mhz | number | oui | Operating frequency in megahertz (MHz) |
| dist_km | number | oui | Total link distance in kilometres |
| zone_number | integer | non | Fresnel zone number (1-5, default 1) |
wavelength_freq
wavelength freq
Convert between radio frequency and wavelength. Provide either frequency in MHz or wavelength in metres, and get the full set of equivalent values: frequency in MHz and GHz, wavelength in metres, centimetres, millimetres, and feet. Essential for antenna dimensioning, waveguide selection, and quick band identification. The fundamental relationship is lambda = c / f where c is the speed of light (299 792 458 m/s).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| freq_mhz | number | non | Frequency in megahertz (MHz) |
| wavelength_m | number | non | Wavelength in metres |
spice_template
spice template
Generate a complete SPICE netlist from a parameterized template. Supports common circuit topologies: low-pass RC filter, voltage divider, common emitter amplifier. Returns a ready-to-simulate netlist string that can be passed directly to spice_simulate. Use this when an agent needs to construct a circuit from high-level parameters without writing raw SPICE syntax. Feeds into spice_simulate for AC/DC/transient analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| template | enum: "low_pass_rc" | "voltage_divider" | "common_emitter" | "rc_highpass" | "rlc_bandpass" | "opamp_inverting" | "diode_rectifier" | "wien_bridge" | oui | Circuit template name |
| params | object | oui | Template-specific parameters (e.g. r_ohms, c_farads, v_source) |
| analysis | enum: "ac" | "dc" | "tran" | non | SPICE analysis type to include in netlist |
spice_simulate
spice simulate
Run a SPICE circuit simulation directly in the worker. Accepts a standard SPICE netlist and performs operating-point (.op), DC sweep (.dc), AC frequency sweep (.ac), or transient (.tran) analysis using a built-in modified-nodal-analysis engine with Newton-Raphson nonlinear solving. Supports R, L, C, V, I sources (DC/AC/SIN/PULSE), diodes, BJTs (Ebers-Moll), MOSFETs (Shichman-Hodges level 1), controlled sources (E/G), .param expressions, .subckt/X hierarchical subcircuits, .measure and .four (Fourier/THD), and a built-in parts library (reference 2n3904/2n2222/1n4148/1n5819/2n7000/tl072/lm358/led_red etc. by name and the model is auto-injected), up to 150 components. Returns voltage vectors for all circuit nodes (magnitude + phase for AC). Use spice_template to generate netlists from parameterized templates.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| netlist | string | oui | SPICE netlist (ngspice-compatible). Must include at least one analysis command (.ac, .dc, .tran, .op) and end with .end |
| analysis | enum: "ac" | "dc" | "tran" | "op" | non | Override analysis type (auto-detected from netlist if omitted) |
| temperature_c | number | non | Simulation temperature in Celsius |
| options | object | non | Additional ngspice .options (e.g. { reltol: 0.001 }) |
| certify | boolean | non | If true, attach an a-posteriori existence certificate for the DC operating point (Newton–Kantorovich: proves a true solution exists within a computed radius, or refuses). Adds ~one extra back-solve. |
| tolerances | object | non | Component-tolerance box, e.g. {"R1":0.05,"V1":0.02} (fractional). With output_node, returns a certified min/max interval for that node over all component variations. R/V/I elements only. |
| output_node | string | non | Node whose voltage is certified over the tolerance box (required with tolerances). |
lora_airtime
lora airtime
Calculates LoRa packet time-on-air using the Semtech AN1200.13 formula. Computes symbol duration, preamble time, payload symbol count, effective data rate, and the minimum transmission interval for 1% duty cycle compliance. Essential for capacity planning in LoRaWAN and Meshtastic mesh networks. Accepts spreading factor (SF7-SF12), bandwidth (125/250/500 kHz), coding rate (4/5-4/8), payload size, header mode, CRC, and optional low data rate optimization. Feeds airtime_ms to channel_utilization for mesh load analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| sf | integer | non | LoRa spreading factor (7-12). Higher SF = longer range but slower data rate. |
| bw_khz | enum: 125 | 250 | 500 | non | LoRa channel bandwidth in kHz. Common values: 125, 250, or 500. |
| cr | integer | non | LoRa coding rate denominator (5-8). Represents 4/5 through 4/8 FEC ratio. |
| payload_bytes | integer | oui | Application payload size in bytes (0-255). |
| preamble_symbols | integer | non | Number of preamble symbols. LoRaWAN uses 8; raw LoRa may vary. |
| explicit_header | boolean | non | Whether to use explicit header mode. True for LoRaWAN; false for implicit header. |
| crc | boolean | non | Whether CRC is appended to payload. Recommended true for reliability. |
| low_data_rate_optimize | boolean | non | Enable low data rate optimization. Auto-calculated if omitted: enabled for SF >= 11 at BW 125 kHz. |
snr_margin
snr margin
Computes LoRa link SNR margin by comparing received power against the noise floor and the spreading-factor-dependent demodulation threshold from the Semtech SX1276 datasheet. Calculates receiver noise floor from thermal noise (-174 dBm/Hz), channel bandwidth, and receiver noise figure. Returns margin in dB and a boolean link-OK indicator. Use to validate whether a LoRa or Meshtastic link will reliably decode packets. Accepts rx_power from link_budget tool output for end-to-end chain analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| rx_power_dbm | number | oui | Received signal power in dBm (e.g., -110). Typically from a link budget calculation or field measurement. |
| sf | integer | non | LoRa spreading factor (7-12). Higher SF tolerates lower SNR. |
| bw_khz | enum: 125 | 250 | 500 | non | LoRa channel bandwidth in kHz. Affects noise floor. |
| noise_figure_db | number | non | Receiver noise figure in dB. Typical LoRa radio NF is 6 dB (SX1276). |
channel_utilization
channel utilization
Estimates Meshtastic or LoRa mesh channel utilization percentage based on node count, message rate, and per-packet airtime. Determines how much of the shared radio channel is occupied and computes the maximum number of nodes before exceeding a configurable duty cycle limit (default 10%). Returns utilization percentage, headroom, and total packet count. Chain from lora_airtime to get airtime_ms input. Essential for Meshtastic mesh deployment planning to avoid channel congestion and packet collisions.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| nodes | integer | oui | Number of active nodes in the mesh network. |
| messages_per_hour_per_node | number | non | Average messages transmitted per hour per node. Includes position beacons and user messages. |
| airtime_ms | number | oui | Time-on-air per packet in milliseconds. Obtain from lora_airtime tool. |
| max_duty_cycle_pct | number | non | Maximum acceptable channel utilization percentage. Default 10% is a common Meshtastic guideline. |
lora_range_estimate
lora range estimate
Estimates LoRa maximum communication range by computing the free-space path loss (FSPL) link budget and applying terrain-dependent correction factors. Calculates total link budget from transmit power, antenna gains, and receiver sensitivity, then solves the FSPL equation for distance after subtracting terrain losses (0 dB open to 50 dB indoor). Returns estimated range in km, link margin at 1 km, and effective path loss. Useful for Meshtastic deployment planning and coverage mapping. Terrain corrections are empirical estimates; real-world range varies with elevation, foliage, and weather.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| tx_dbm | number | non | Transmit power in dBm. Typical LoRa: 14-30 dBm depending on region and module. |
| freq_mhz | number | non | Carrier frequency in MHz. Common: 868 (EU), 915 (US/AU), 433 (Asia). |
| tx_gain_dbi | number | non | Transmit antenna gain in dBi. 2.15 dBi = half-wave dipole. |
| rx_gain_dbi | number | non | Receive antenna gain in dBi. 2.15 dBi = half-wave dipole. |
| rx_sensitivity_dbm | number | non | Receiver sensitivity in dBm. Typical LoRa SF10/BW125: -130 dBm. Varies by SF and bandwidth. |
| terrain | enum: "open" | "suburban" | "urban" | "dense_urban" | "indoor" | non | Terrain type for path loss correction. open: line-of-sight, suburban: light buildings, urban: moderate buildings, dense_urban: city center, indoor: inside buildings. |
lora_sensitivity
lora sensitivity
Calculates LoRa receiver sensitivity from spreading factor, bandwidth, and noise figure using the Semtech SX1276 datasheet SNR thresholds. Computes the noise floor from thermal noise density (-174 dBm/Hz), channel bandwidth, and receiver noise figure, then adds the spreading-factor-dependent minimum demodulation SNR. Returns sensitivity in dBm, noise floor, required SNR, and thermal noise reference. Essential for link budget planning in LoRaWAN and Meshtastic networks. Feeds sensitivity_dbm to link_budget and lora_range_estimate for end-to-end coverage analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| sf | integer | non | LoRa spreading factor (7-12). Higher SF = better sensitivity but slower data rate. |
| bw_khz | enum: 125 | 250 | 500 | non | LoRa channel bandwidth in kHz. Lower bandwidth = better sensitivity. |
| noise_figure_db | number | non | Receiver noise figure in dB. Typical LoRa radio NF is 6 dB (SX1276). |
duty_cycle_budget
duty cycle budget
Calculates LoRa duty cycle budget for EU868, US915, AS923, and AU915 regulatory regions. Computes maximum messages per hour, minimum transmission interval, and effective data rate under regional duty cycle constraints. EU868 and AS923 enforce 1% duty cycle (ETSI); US915 has no duty cycle limit but a 400 ms dwell time per channel (FCC); AU915 has no duty cycle limit. Flags dwell-time-limited regions where packet airtime must not exceed the dwell time. Chain from lora_airtime to get airtime_ms input for end-to-end regulatory compliance analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| airtime_ms | number | oui | Packet time-on-air in milliseconds. Obtain from the lora_airtime tool. |
| region | enum: "EU868" | "US915" | "AS923" | "AU915" | non | LoRa regulatory region. EU868: 1% duty cycle (ETSI). US915: no duty cycle but 400 ms dwell time (FCC). AS923: 1% duty cycle (varies by country). AU915: no duty cycle limit. |
meshtastic_range
meshtastic range
Estimates Meshtastic node communication range using real hardware profiles and firmware channel presets. Combines device-specific TX power and antenna gain (Heltec V3, RAK WisBlock, T-Beam, T-Beam Supreme, Station G2) with firmware modem presets (Long Fast, Long Slow, Very Long Slow, Medium, Short) to compute receiver sensitivity and FSPL-based range with terrain correction. Automatically populates LoRa parameters from device and channel selection, with optional overrides for custom antennas or power levels. Essential for Meshtastic deployment planning and node placement. Returns range, sensitivity, link budget, and the effective radio parameters used.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| device | enum: "heltec_v3" | "rak_wisblock" | "tbeam" | "tbeam_supreme" | "station_g2" | "custom" | non | Meshtastic hardware device. Selects default TX power, antenna gain, and noise figure. Use 'custom' to override all radio parameters manually. |
| channel_preset | enum: "long_fast" | "long_moderate" | "long_slow" | "very_long_slow" | "medium_fast" | "medium_slow" | "short_fast" | "short_slow" … | non | Meshtastic firmware channel preset. Selects spreading factor, bandwidth, and coding rate. long_fast is the default; very_long_slow maximizes range at the cost of throughput. |
| terrain | enum: "open" | "suburban" | "urban" | "dense_urban" | "indoor" | non | Terrain type for path loss correction. open: line-of-sight, suburban: light buildings, urban: moderate buildings, dense_urban: city center, indoor: inside buildings. |
| antenna_gain_dbi | number | non | Override device default antenna gain in dBi. Useful for aftermarket antennas. |
| tx_power_dbm | number | non | Override device default transmit power in dBm. |
| sf | integer | non | Custom spreading factor (7-12). Only used when channel_preset is 'custom'. |
| bw_khz | number | non | Custom bandwidth in kHz. Only used when channel_preset is 'custom'. |
| cr | integer | non | Custom coding rate denominator (5-8). Only used when channel_preset is 'custom'. |
eirp_compliance
eirp compliance
Checks EIRP (Effective Isotropic Radiated Power) compliance against regional regulatory limits for LoRa and Meshtastic operation. Computes EIRP from transmit power, antenna gain, and cable loss, then compares against FCC (US, 36 dBm), ETSI (EU, 16.15 dBm), ACMA (Australia, 30 dBm), IC (Canada, 36 dBm), and ARIB (Japan, 13 dBm) limits. Returns compliance status, margin in dB, and a warning message if over the limit. Critical for Meshtastic deployments using aftermarket high-gain antennas which can easily exceed ETSI/JP limits. Accepts tx_power and antenna_gain from meshtastic_range for chain validation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| tx_power_dbm | number | oui | Conducted transmit power at the radio output in dBm. Typical LoRa: 14-22 dBm. |
| antenna_gain_dbi | number | oui | Antenna gain in dBi. Stock Meshtastic antennas: 2-3 dBi. External: 6-10+ dBi. |
| cable_loss_db | number | non | Coaxial cable and connector loss in dB. Set 0 for devices with integrated antennas. |
| region | enum: "FCC_US" | "ETSI_EU" | "ACMA_AU" | "IC_CA" | "JP" | "custom" | non | Regulatory region for EIRP limit lookup. FCC_US: 36 dBm, ETSI_EU: ~16 dBm, ACMA_AU: 30 dBm, IC_CA: 36 dBm, JP: 13 dBm. |
| custom_limit_dbm | number | non | Custom EIRP limit in dBm. Only used when region is 'custom'. |
meshtastic_power
meshtastic power
Calculates Meshtastic node power consumption and battery runtime using device-specific power profiles and firmware role-based duty cycling. Models sleep, RX, and TX current draw for Heltec V3, RAK WisBlock, T-Beam, T-Beam Supreme, and Station G2 with GPS, BLE, and display peripheral toggles. Role selection (client, router, repeater, client_muted) controls the duty cycle model: routers stay in RX mode continuously while clients sleep between events. Returns average current, runtime in hours/days, daily Wh consumption, and time distribution across TX/RX/sleep states. Feed daily_wh to solar_sizing for off-grid planning.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| device | enum: "heltec_v3" | "rak_wisblock" | "tbeam" | "tbeam_supreme" | "station_g2" | "custom" | non | Meshtastic hardware device. Selects power consumption profile for sleep, RX, TX, GPS, and BLE. |
| channel_preset | enum: "long_fast" | "long_moderate" | "long_slow" | "very_long_slow" | "medium_fast" | "medium_slow" | "short_fast" | "short_slow" | non | Meshtastic channel preset. Affects TX airtime per message and thus power consumption. |
| battery_mah | number | non | Battery capacity in milliamp-hours. Common: 1100 (18650 min), 3000 (typical), 6000 (large). |
| battery_voltage | number | non | Nominal battery voltage. 3.7V for single-cell LiPo/Li-ion, 7.4V for 2S packs. |
| messages_per_hour | number | non | Expected messages sent and received per hour. Includes both TX and RX message events. |
| gps_enabled | boolean | non | Whether GPS is enabled. Significantly increases power draw on devices with built-in GPS. |
| bluetooth_enabled | boolean | non | Whether Bluetooth is enabled for phone connection. |
| role | enum: "client" | "router" | "repeater" | "client_muted" | non | Meshtastic node role. client: sleeps between events. router: always listening. repeater: always listening, no display/BLE. client_muted: aggressive sleep. |
lora_param_optimizer
lora param optimizer
Recommends optimal LoRa spreading factor, bandwidth, and TX power based on target range, terrain, and optimization priority. Iterates through all SF (7-12) and BW (125/250/500 kHz) combinations, computing achievable range, airtime, data rate, and battery impact for each. Ranks candidates by priority: 'range' maximizes distance, 'speed' minimizes airtime, 'battery' minimizes power consumption, 'balanced' penalizes extremes. Respects regional TX power limits (FCC/ETSI/ACMA) and duty cycle constraints. Returns the recommended parameters with estimated range, airtime, duty-cycle message limit, battery life, and data rate. Essential for tuning Meshtastic and LoRa deployments to specific requirements.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| target_range_km | number | oui | Desired communication range in kilometers. |
| terrain | enum: "open" | "suburban" | "urban" | "dense_urban" | "indoor" | non | Terrain type for path loss model. open: line-of-sight, suburban: light buildings, urban: moderate buildings, dense_urban: city center, indoor: inside buildings. |
| max_payload_bytes | integer | non | Maximum payload size in bytes for airtime calculation. |
| priority | enum: "range" | "speed" | "battery" | "balanced" | non | Optimization priority. range: maximize distance (high SF, low BW). speed: minimize airtime (low SF, high BW). battery: minimize power draw. balanced: best trade-off across all factors. |
| region | enum: "US915" | "EU868" | "AU915" | "AS923" | non | Regulatory region. Determines max TX power and duty cycle limit. |
| antenna_gain_dbi | number | non | Antenna gain in dBi. 2.15 = half-wave dipole reference. |
zfs_capacity
zfs capacity
Calculate usable ZFS pool capacity for any RAID level including stripe, mirror, raidz1, raidz2, and raidz3. Computes raw capacity, parity overhead, data disk count, usable terabytes after ZFS metadata overhead (checksums, block pointers, uberblocks), and storage efficiency percentage. Essential for planning NAS builds, TrueNAS/ZFS server storage, and estimating how much usable space a given disk configuration will provide. Supports variable disk sizes and configurable metadata overhead.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| disk_count | integer | oui | Total number of physical disks in the pool |
| disk_size_tb | number | oui | Size of each individual disk in terabytes |
| raid_type | enum: "stripe" | "mirror" | "raidz1" | "raidz2" | "raidz3" | non | ZFS RAID level: stripe (no redundancy), mirror (2-way), raidz1/2/3 (single/double/triple parity) |
| record_size_kb | number | non | ZFS record size in kilobytes, affects compression and performance |
| metadata_overhead_pct | number | non | Percentage of raw capacity consumed by ZFS metadata, checksums, and internal structures |
zfs_ram
zfs ram
Calculate recommended RAM and ARC sizing for a ZFS storage pool based on workload type, pool size, deduplication status, and L2ARC cache size. Computes minimum and recommended RAM in gigabytes, ARC target size, and dedup table overhead. Accounts for workload-specific IO patterns: NAS (sequential, 1GB/TB), database (random, 2GB/TB), virtualization (mixed, 1.5GB/TB). Deduplication adds approximately 5GB per TB for the DDT. L2ARC index requires 1GB RAM per 10GB of L2ARC. Essential for TrueNAS, FreeNAS, and custom ZFS server builds.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| pool_size_tb | number | oui | Total usable pool size in terabytes |
| workload | enum: "general" | "nas" | "database" | "virtualization" | non | Primary workload type: general (mixed), nas (sequential reads/writes), database (random IO), virtualization (mixed random) |
| dedup_enabled | boolean | non | Whether ZFS deduplication is enabled (significantly increases RAM requirements) |
| l2arc_size_gb | number | non | Size of L2ARC (read cache SSD) in gigabytes; requires additional RAM for index |
tcp_throughput
tcp throughput
Calculate maximum TCP throughput using the Bandwidth-Delay Product (BDP) formula. Given link bandwidth and round-trip latency, computes the BDP (maximum in-flight data), achievable throughput with a given TCP window size, link utilization percentage, and recommended window size for full utilization. Critical for diagnosing slow transfers over high-latency links (WAN, VPN, satellite), tuning TCP buffers, and understanding why a 1Gbps link may only deliver 25Mbps with default 64KB windows. Applies to iperf testing, WAN optimization, and network capacity planning.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| bandwidth_mbps | number | oui | Available link bandwidth in megabits per second |
| rtt_ms | number | oui | Round-trip time (latency) in milliseconds |
| window_size_kb | number | non | TCP receive window size in kilobytes |
| mss_bytes | number | non | Maximum Segment Size in bytes (typically 1460 for Ethernet) |
wireguard_mtu
wireguard mtu
Calculate the optimal MTU for a WireGuard VPN tunnel interface with a detailed overhead breakdown. Accounts for WireGuard header (32 bytes), outer IP header (20 bytes IPv4 or 40 bytes IPv6), UDP header (8 bytes), and optional PPPoE encapsulation (8 bytes). Prevents fragmentation and PMTUD black holes by computing the maximum inner packet size that fits within the physical link MTU. Essential for WireGuard setup on residential ISP connections (PPPoE), IPv6 tunnels, and any VPN where incorrect MTU causes slow or stalled connections.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| interface_mtu | integer | non | MTU of the underlying physical or virtual network interface in bytes |
| ipv6 | boolean | non | Whether the outer (transport) IP header uses IPv6 (40 bytes) instead of IPv4 (20 bytes) |
| over_pppoe | boolean | non | Whether the link uses PPPoE encapsulation (adds 8 bytes of overhead) |
subnet_calculator
subnet calculator
Calculate IPv4 subnet details from CIDR notation. Parses a CIDR block (e.g. 192.168.1.0/24) and returns the network address, broadcast address, subnet mask, wildcard mask, first and last usable host addresses, total and usable host counts, prefix length, and classful IP class (A/B/C/D/E). Essential for homelab network planning, VLAN segmentation, firewall rule design, and understanding address space allocation. Handles special cases for /31 point-to-point links (RFC 3021) and /32 host routes.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| cidr | string | oui | IPv4 address in CIDR notation, e.g. 192.168.1.0/24 |
raid_iops
raid iops
Estimate RAID array IOPS performance and latency for ZFS and traditional RAID configurations. Calculates maximum read IOPS, write IOPS (accounting for write penalty/amplification per RAID level), blended IOPS for a configurable read/write workload mix, and rough per-disk latency. Supports stripe, mirror, raidz1, raidz2, and raidz3. Use with HDD IOPS (~150), SATA SSD (~50000), or NVMe SSD (~100000) to compare RAID topologies and plan storage performance for databases, VMs, media servers, and general homelab NAS workloads. Chains from zfs_capacity.data_disks for integrated capacity+performance planning.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| disk_count | integer | oui | Total number of physical disks in the array |
| disk_iops | number | non | IOPS per individual disk. Typical values: HDD ~150, SATA SSD ~50000, NVMe SSD ~100000 |
| raid_type | enum: "stripe" | "mirror" | "raidz1" | "raidz2" | "raidz3" | non | RAID level: stripe (no redundancy, write penalty 1), mirror (write penalty 2), raidz1 (write penalty 2), raidz2 (write penalty 3), raidz3 (write penalty 4) |
| read_pct | number | non | Percentage of workload that is reads (0-100). Typical: 70 for mixed, 90 for read-heavy, 30 for write-heavy |
power_cost
power cost
Calculate total power consumption, electricity cost, and circuit requirements for a homelab. Enter each device's wattage to get daily/monthly/yearly kWh and cost at your local electricity rate. Accounts for cooling overhead via PUE (Power Usage Effectiveness). Shows amperage draw at 120V and 240V and warns if you exceed the NEC 80% continuous load limit on a 15A breaker. Essential for budgeting homelab operating expenses and ensuring your electrical panel can handle the load. Chain output total_watts into cooling_btu for heat load sizing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| devices | array<object> | oui | List of devices with their wattage |
| hours_per_day | number | non | Hours per day the devices are running |
| kwh_rate_cents | number | non | Electricity cost in cents per kilowatt-hour |
| pue | number | non | Power Usage Effectiveness — ratio of total facility power to IT equipment power. 1.0 means no cooling overhead, 1.2 is typical for a home server closet, 1.5+ for poorly ventilated spaces |
cooling_btu
cooling btu
Estimate the cooling load (BTU/hr) for a homelab or server closet based on equipment wattage, room dimensions, insulation quality, and solar exposure. All electrical power converts to heat — this tool calculates equipment heat output, envelope heat gain through walls, and solar gain to produce a total BTU/hr cooling requirement. Recommends AC tonnage, mini-split sizing (rounded to standard 6K BTU increments), and exhaust fan CFM for ventilation-only cooling. Use after power_cost to size cooling for your homelab room.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| total_watts | number | oui | Total power consumption in watts — all power becomes heat |
| room_length_ft | number | non | Room length in feet |
| room_width_ft | number | non | Room width in feet |
| room_height_ft | number | non | Room ceiling height in feet |
| insulation | enum: "poor" | "average" | "good" | "excellent" | non | Wall/ceiling insulation quality: poor (uninsulated garage), average (standard drywall), good (insulated interior), excellent (server room with vapor barrier) |
| ambient_temp_f | number | non | Ambient temperature outside the room in degrees Fahrenheit |
| target_temp_f | number | non | Desired room temperature in degrees Fahrenheit |
| sun_exposure | enum: "none" | "partial" | "full" | non | Solar heat gain: none (interior/basement room), partial (one exterior wall with window), full (multiple sun-facing windows) |
rack_capacity
rack capacity
Quick rack space and weight sizing calculator for homelab and small data center racks. Enter your devices with their height in rack units, weight, and wattage to get total utilization, remaining free space, weight totals in lbs and kg, and recommended PDU count based on the NEC 80% continuous load rule (1920W per 20A/120V PDU). Estimates cable management overhead at 2U per 10U of installed gear. Outputs total_watts that chains into power_cost and cooling_btu for full infrastructure planning.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| rack_units | integer | non | Total rack height in rack units (standard is 42U) |
| devices | array<object> | oui | List of devices to place in the rack |
network_bandwidth
network bandwidth
Plan and validate network link capacity for homelab workloads. Determine whether a 1G, 2.5G, 10G, or faster link can handle your concurrent streams (VMs, backups, media, iSCSI). Calculates effective bandwidth after TCP/IP overhead, total required bandwidth, utilization percentage, and remaining headroom. Flags saturation at 80% utilization and identifies whether the bottleneck is network or storage. Provides a 1TB transfer time reference and recommends the next link speed upgrade if your current link is saturated. Useful for planning NIC upgrades, switch purchases, and storage network design.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| link_speed_gbps | number | oui | Network link speed in gigabits per second (e.g. 1, 2.5, 5, 10, 25, 40, 100) |
| concurrent_streams | integer | non | Number of concurrent data streams / transfers |
| stream_bandwidth_mbps | number | non | Bandwidth required per stream in megabits per second |
| protocol_overhead_pct | number | non | TCP/IP protocol overhead as a percentage (typically 3-5% for TCP, ~1% for UDP) |
| storage_throughput_mbps | number | non | Maximum storage read/write throughput in megabits per second. If provided, checks whether storage is the bottleneck |
thermal_enclosure
thermal enclosure
Estimate steady-state thermal behaviour of a rectangular enclosure (server rack, electronics housing, equipment cabinet) using a lumped-parameter energy balance with natural-convection and radiation correlations, or forced-flow air energy balance. Accepts enclosure dimensions, heat source positions and wattages, and airflow configuration. Returns temperature extremes, estimated hotspot location, airflow velocity summary, and overall thermal resistance. Runs instantly in-worker; a full CFD container backend is planned for mesh-level detail.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| length_m | number | oui | Enclosure length (X) in metres |
| width_m | number | oui | Enclosure width (Y) in metres |
| height_m | number | oui | Enclosure height (Z) in metres |
| heat_sources | array<object> | oui | Heat sources inside the enclosure |
| flow_type | enum: "natural_convection" | "forced" | oui | Airflow type |
| inlet_velocity_ms | number | non | Inlet air velocity in m/s (required for forced flow) |
| inlet_position | enum: "front_bottom" | "front_center" | "side_bottom" | non | Inlet location |
| outlet_position | enum: "rear_top" | "rear_center" | "top_rear" | non | Outlet location |
| ambient_temp_c | number | non | Ambient air temperature in Celsius |
| mesh_density | enum: "coarse" | "medium" | "fine" | non | Mesh density — coarse (~50K cells), medium (~200K), fine (~500K) |
heatsink_cfd
heatsink cfd
Analyze a forced-convection fin-array heatsink using established channel-flow correlations (developing laminar Nusselt, fin efficiency tanh(mH)/mH, parallel-plate friction). Computes base-to-air thermal resistance, pressure drop, base and fin-tip temperatures, fin efficiency, and the optimal fin spacing for the given airflow. Use for heatsink selection and first-pass optimization in electronics cooling. Runs instantly in-worker; mesh-level CFD via container backend is planned.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| base_length_m | number | oui | Heatsink base length in metres |
| base_width_m | number | oui | Heatsink base width in metres |
| base_height_m | number | oui | Base plate thickness in metres |
| fin_count | integer | oui | Number of fins |
| fin_height_m | number | oui | Fin height in metres |
| fin_thickness_m | number | oui | Fin thickness in metres |
| airflow_velocity_ms | number | oui | Incoming airflow velocity in m/s |
| heat_load_w | number | oui | Total heat load applied to base in watts |
| ambient_temp_c | number | non | Ambient air temperature in Celsius |
| mesh_density | enum: "coarse" | "medium" | "fine" | non | Mesh density |
pcb_thermal
pcb thermal
Estimate PCB component temperatures by solving a thermal resistance network (thermal↔electrical analogy) with the built-in MNA solver. Each component gets a junction node (package θjb from a typical-datasheet table), a local board node coupled to its neighbours through in-plane FR4/copper conduction, and convection to ambient. Computes per-component junction and case temperatures, board extremes, and flags max-junction violations. Runs instantly in-worker; mesh-level CFD via container backend is planned.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| board_length_m | number | oui | Board length in metres |
| board_width_m | number | oui | Board width in metres |
| board_thickness_m | number | non | Board thickness in metres (default 1.6mm FR4) |
| components | array<object> | oui | Components on the board |
| airflow_velocity_ms | number | non | Airflow velocity in m/s (0 = natural convection) |
| ambient_temp_c | number | non | Ambient temperature in Celsius |
| mesh_density | enum: "coarse" | "medium" | "fine" | non | Mesh density |
battery_life
battery life
Calculates battery runtime and energy capacity given cell capacity in mAh, nominal voltage, and average current draw. Accounts for real-world discharge efficiency (Peukert-adjacent derating) to produce effective capacity, total energy in Wh, and runtime in hours and days. Useful for IoT sensor node planning, portable device design, UPS hold-up estimation, and solar battery bank cycling analysis. Outputs feed into solar_sizing (battery_kwh) and ups_runtime (battery_wh) for system-level calculations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capacity_mah | number | oui | Battery capacity in milliamp-hours (mAh) |
| voltage | number | non | Nominal battery voltage (V), default 3.7 for Li-ion |
| current_draw_ma | number | oui | Average current draw in milliamps (mA) |
| efficiency | number | non | Discharge efficiency factor (0-1), accounts for conversion losses and derating, default 0.85 |
wire_gauge
wire gauge
Determines the minimum AWG (American Wire Gauge) conductor size for a given current, voltage, one-way cable distance, and maximum allowable voltage drop percentage. Supports copper and aluminum conductors. Computes round-trip resistance, actual voltage drop in volts and percent, and wire cross-sectional area. Essential for DC solar runs, battery bank wiring, EV charging circuits, and low-voltage landscape lighting. NEC recommends 3% max drop for branch circuits and 5% total including feeder. Outputs the smallest AWG that satisfies the drop constraint.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| current_amps | number | oui | Load current in amperes (A) |
| voltage | number | oui | System voltage (V) |
| distance_m | number | oui | One-way conductor distance in meters |
| max_drop_pct | number | non | Maximum allowable voltage drop as percentage (default 3%) |
| conductor | enum: "copper" | "aluminum" | non | Conductor material: copper or aluminum |
solar_sizing
solar sizing
Sizes an off-grid solar power system by calculating the number of panels and battery bank capacity required for a given daily energy consumption. Accounts for system losses (inverter, wiring, charge controller), battery depth-of-discharge, and autonomy days for cloudy weather. Outputs panel count, total panel wattage, battery capacity in kWh and Ah, and minimum charge controller amperage (with 25% safety margin per NEC 690.8). Supports 12V, 24V, and 48V system architectures. Use for cabin, RV, telecom tower, and remote IoT deployments.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| daily_kwh | number | oui | Daily energy consumption in kilowatt-hours (kWh) |
| peak_sun_hours | number | non | Average peak sun hours per day for your location (hours) |
| panel_watts | number | non | Rated wattage per solar panel (W) |
| system_voltage | enum: 12 | 24 | 48 | non | Battery bank system voltage: 12, 24, or 48 V |
| battery_autonomy_days | number | non | Number of days the battery bank should sustain load without solar input |
| dod | number | non | Battery depth of discharge (0-1), default 0.8 for LiFePO4 |
| system_efficiency | number | non | Overall system efficiency (0-1), accounts for inverter, wiring, and controller losses |
ups_runtime
ups runtime
Estimates UPS (Uninterruptible Power Supply) backup runtime from battery specifications and connected load. Takes VA rating, watt rating, load in watts, and battery configuration (count, voltage, amp-hours) to compute effective stored energy after efficiency losses and runtime in minutes and hours. Detects overload conditions when load exceeds the UPS watt rating. Calculates power factor from VA/W ratings. Ideal for server rack planning, homelab power budgeting, network closet UPS selection, and graceful shutdown timer configuration.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| va_rating | number | oui | UPS VA (volt-ampere) rating |
| watt_rating | number | oui | UPS real power (watt) rating |
| load_watts | number | oui | Connected load in watts |
| battery_count | integer | non | Number of batteries in the UPS |
| battery_voltage | number | non | Voltage per battery (V) |
| battery_ah | number | non | Capacity per battery in amp-hours (Ah) |
| efficiency | number | non | Inverter/conversion efficiency (0-1), default 0.9 |
mah_to_wh
mah to wh
Converts battery capacity from milliamp-hours (mAh) to watt-hours (Wh), kilowatt-hours (kWh), and joules (J) given the nominal cell voltage. This is the most common battery unit conversion needed when comparing cells rated in mAh (e.g. 18650, AA) against energy budgets specified in Wh. Essential for airline lithium battery compliance (100 Wh limit for carry-on), solar battery bank sizing, and UPS capacity planning. Echoes back input values for easy chaining into battery_life, solar_sizing, and ups_runtime tools.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capacity_mah | number | oui | Battery capacity in milliamp-hours (mAh) |
| voltage_v | number | oui | Nominal battery voltage (V) |
watts_to_amps
watts to amps
Converts electrical power in watts to current in amps (and milliamps) for a given voltage, using the DC power formula P = V * I. Also computes the implied load resistance via Ohm's law (R = V / I) assuming a purely resistive load. This is the most common electrical conversion for circuit design, fuse selection, wire sizing, and breaker rating. Use the output amps value to feed into wire_gauge for conductor sizing or voltage_drop for cable loss analysis. Covers DC circuits; for AC with power factor, adjust watts to true power first.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| watts | number | oui | Power in watts (W) |
| voltage_v | number | oui | Voltage in volts (V) |
voltage_drop
voltage drop
Calculates voltage drop across a conductor run given current, wire length, AWG gauge, system voltage, and conductor material (copper or aluminum). Computes round-trip resistance, voltage drop in volts and percent, voltage at the load end, power dissipated in the wire, and NEC compliance flags (3% max for branch circuits, 5% max for feeders). Use this after wire_gauge to verify a specific gauge meets requirements, or to evaluate an existing installation. Critical for solar panel string wiring, EV charger circuits, low-voltage lighting, and any long DC or AC cable run where resistive losses matter.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| current_amps | number | oui | Load current in amperes (A) |
| wire_length_m | number | oui | One-way wire length in meters |
| wire_gauge_awg | number | oui | Wire gauge in AWG (e.g. 14, 12, 10; use negative for large gauges: -3 = 4/0) |
| voltage_v | number | oui | System voltage (V) |
| conductor | enum: "copper" | "aluminum" | non | Conductor material: copper or aluminum |
battery_charge_time
battery charge time
Estimates battery charge time given capacity in mAh, charge current in mA, charger efficiency, and initial state of charge. Accounts for real-world charging losses (typically 80-90% efficient) to produce time in hours and minutes, energy required in Wh (at an optional voltage, default 3.7V for Li-ion), and the C-rate of the charge. Useful for solar charge controller sizing, USB charging time estimation, lead-acid float charging, and EV battery planning. The C-rate output helps verify the charge current is within safe limits (typically 0.5C-1C for Li-ion). Chain from solar_sizing charge_controller_amps to size a solar charging system end-to-end.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capacity_mah | number | oui | Total battery capacity in milliamp-hours (mAh) |
| charge_current_ma | number | oui | Charge current in milliamps (mA) |
| efficiency | number | non | Charger efficiency factor (0-1), default 0.85 |
| initial_soc_pct | number | non | Initial state of charge as percentage (0-100), default 0 (empty) |
| voltage_v | number | non | Nominal battery voltage for energy calculation (V), default 3.7 for Li-ion |
solar_load_audit
solar load audit
Calculates total daily energy consumption from an appliance list — the critical first step before sizing solar panels or batteries. Enter each appliance with its wattage, hours of daily use, and quantity. Outputs total daily kWh (with configurable safety margin for surge and inrush current), peak simultaneous wattage, and recommended inverter VA rating per NEC 125% continuous load rule. Feeds directly into solar_sizing (daily_kwh) and battery_autonomy (daily_kwh). Essential for residential, RV, cabin, and off-grid system design.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| appliances | array<object> | oui | List of appliances with wattage, hours per day, and quantity |
| safety_margin_pct | number | non | Safety margin percentage to account for surge/inrush current, default 20% |
solar_roi
solar roi
Calculates solar system return on investment, payback period, and levelized cost of energy (LCOE). Models year-by-year savings accounting for panel degradation, utility rate inflation, federal Investment Tax Credit (ITC), state rebates, and annual maintenance. Outputs net cost after incentives, payback year, total lifetime savings, ROI percentage, and LCOE in cents/kWh. Essential for residential and commercial solar financial analysis, installer proposals, and comparing solar vs. grid economics over a 25-year system lifetime.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| system_cost_usd | number | oui | Total installed system cost in USD |
| system_size_kw | number | oui | System size in kilowatts (kW) |
| annual_production_kwh | number | oui | Estimated annual energy production in kWh (from PVWatts or system_size_kw * peak_sun_hours * 365 * 0.80) |
| electricity_rate_cents | number | non | Current electricity rate in cents per kWh, default 15 |
| annual_rate_increase_pct | number | non | Annual utility rate increase percentage, default 3% |
| federal_itc_pct | number | non | Federal Investment Tax Credit percentage, default 30% (US ITC) |
| state_rebate_usd | number | non | State or local rebate amount in USD, default 0 |
| annual_degradation_pct | number | non | Annual panel degradation rate, default 0.5% per year |
| annual_maintenance_usd | number | non | Annual maintenance cost in USD, default $100 |
| system_lifetime_years | integer | non | System lifetime in years, default 25 |
battery_autonomy
battery autonomy
Calculates how many days a battery bank can sustain loads without solar input — critical for off-grid and backup power sizing. Accounts for depth of discharge, round-trip efficiency (lithium vs lead-acid), minimum state of charge, and optional partial solar contribution during cloudy weather. Outputs autonomy in days and hours, usable capacity, and daily deficit. Use with avg_solar_contribution_pct = 0 for worst-case (no sun) scenarios, or 20-30% for realistic cloudy-day modeling. Chains from solar_sizing (battery_kwh) and solar_load_audit (daily_kwh).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| daily_kwh | number | oui | Daily energy consumption in kilowatt-hours (kWh) |
| battery_kwh | number | oui | Total installed battery capacity in kWh |
| dod | number | non | Depth of discharge (0-1), default 0.8 for lithium |
| round_trip_efficiency | number | non | Battery round-trip efficiency (0-1), default 0.90 for lithium, use 0.80 for lead-acid |
| min_soc_pct | number | non | Minimum state of charge percentage, default 20% |
| avg_solar_contribution_pct | number | non | Average solar contribution during autonomy period (0-100%), default 0 for worst-case |
string_sizing
string sizing
Calculates optimal solar panel string and MPPT configuration based on panel electrical specs, inverter/charge-controller MPPT limits, and site temperature extremes. Applies temperature coefficients to determine Voc at minimum temperature (cold) and Vmp at maximum temperature (hot), then computes the safe range of panels per string, maximum parallel strings, and total array wattage. Prevents over-voltage damage in winter and under-voltage MPPT dropout in summer. Essential for NEC 690.7 compliant residential and commercial solar design.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| panel_voc | number | oui | Panel open circuit voltage (Voc) at STC in volts |
| panel_vmp | number | oui | Panel maximum power voltage (Vmp) at STC in volts |
| panel_isc | number | oui | Panel short circuit current (Isc) at STC in amps |
| panel_imp | number | oui | Panel maximum power current (Imp) at STC in amps |
| mppt_vmax | number | oui | Maximum MPPT input voltage in volts |
| mppt_vmin | number | oui | Minimum MPPT start/operating voltage in volts |
| mppt_imax | number | oui | Maximum MPPT input current in amps |
| temp_min_c | number | non | Minimum expected site temperature in Celsius, default -10 |
| temp_max_c | number | non | Maximum expected cell temperature in Celsius, default 60 |
| temp_coeff_voc_pct_per_c | number | non | Voc temperature coefficient in %/C (negative for silicon), default -0.30 |
generator_offset
generator offset
Compares total cost of ownership between a fuel generator and a solar+battery system over a configurable time horizon. Calculates yearly and cumulative costs for generator-only, solar-only (amortized), and hybrid scenarios. Accounts for fuel cost, generator consumption rate, maintenance intervals, solar system amortization, and battery coverage. Outputs yearly costs, total savings, breakeven year, solar coverage percentage, and generator hours saved. Essential for off-grid site planning, remote telecom towers, construction sites, and rural electrification proposals.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| generator_fuel_cost_per_gallon | number | non | Fuel cost per gallon in USD, default $3.50 |
| generator_consumption_gph | number | non | Generator fuel consumption in gallons per hour at load, default 1.0 |
| generator_hours_per_day | number | non | Generator runtime hours per day, default 8 |
| generator_maintenance_per_1000hrs | number | non | Generator maintenance cost per 1000 running hours in USD, default $200 |
| solar_system_cost_usd | number | oui | Total solar+battery system cost in USD |
| solar_daily_kwh_produced | number | oui | Daily solar energy production in kWh |
| battery_kwh | number | non | Battery storage capacity in kWh (0 means no battery, generator needed at night), default 0 |
| daily_kwh_needed | number | oui | Total daily energy requirement in kWh |
| years_to_compare | integer | non | Number of years to compare, default 10 |
wire_ampacity
wire ampacity
Determine minimum wire gauge using NEC Table 310.16 ampacity ratings with full derating. Looks up base ampacity for copper or aluminum conductors at 60°C, 75°C, or 90°C insulation rating, then applies NEC 310.15(C)(1) ambient temperature correction and NEC 310.15(C)(2) conductor count adjustment. Automatically applies the 125% continuous load factor per NEC 210.20(A) when flagged. Returns the minimum AWG that meets the derated requirement, plus a comparison table of all gauges. Different from wire_gauge which focuses on voltage drop — use both together for complete wire sizing. Essential for residential panels, commercial feeders, solar arrays, and EV charging installations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| current_amps | number | oui | Required circuit current in amperes. Use 125% of continuous load per NEC 210.20(A). |
| conductor | enum: "copper" | "aluminum" | non | Conductor material. Copper has higher ampacity; aluminum is lighter and cheaper for large feeders. |
| insulation | enum: "60" | "75" | "90" | non | Insulation temperature rating in °C. 60=TW/UF-B, 75=THW/THWN/XHHW (most common), 90=THHN/THWN-2. |
| ambient_temp_c | number | non | Ambient temperature in °C. NEC base is 30°C. Higher temps require derating. Typical: 30 (indoor), 40 (attic/hot), 45+ (rooftop conduit). |
| conductors_in_raceway | integer | non | Number of current-carrying conductors in a single raceway or cable. More than 3 requires derating per NEC 310.15(C)(2). |
| continuous_load | boolean | non | Whether the load operates continuously (3+ hours). NEC requires 125% sizing for continuous loads. Set false for intermittent loads. |
inverter_sizing
inverter sizing
Size a DC-to-AC inverter for off-grid solar, battery backup, or mobile power systems. Computes the required continuous VA rating from total load watts and power factor, estimates surge capacity for motor-starting loads (3-7x rated power), applies NEC-recommended 20% derating for continuous operation, and selects the nearest standard inverter size. Also calculates DC input current at the system voltage for cable and fuse sizing. Chain from solar_load_audit to get peak_watts and largest_load_watts, then chain to wire_gauge or wire_ampacity to size the DC cables. Essential for off-grid cabins, RV/van builds, emergency backup, and solar+battery installations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| continuous_watts | number | oui | Total continuous load in watts. Sum of all appliances that may run simultaneously. Chain from solar_load_audit.peak_watts. |
| surge_watts | number | non | Peak surge/starting load in watts. Motors and compressors draw 3-7x rated watts on startup. If omitted, estimated as 3x the largest single load or 2x continuous, whichever is greater. |
| largest_load_watts | number | non | Wattage of the single largest appliance. Used to estimate surge if surge_watts is not provided. Chain from solar_load_audit.largest_load_watts. |
| system_voltage | enum: "12" | "24" | "48" | non | DC system voltage. 12V for small/mobile, 24V for medium, 48V for large residential/commercial. Higher voltage = lower current = thinner cables. |
| power_factor | number | non | Power factor (0.5-1.0). Resistive loads (heaters, lights) are ~1.0. Motor loads (fridge, AC, pump) are 0.6-0.8. Mixed loads typically 0.8. |
| efficiency | number | non | Inverter efficiency (0.5-1.0). Good pure-sine inverters are 0.90-0.95. Modified-sine are 0.85-0.90. Budget units may be lower. |
| derating_pct | number | non | Derating percentage for temperature, altitude, and safety margin. NEC recommends 20% (80% continuous rating). Range 0-50%. |
pcb_layout
pcb layout
Turn a SPICE netlist into a fab-ready 2-layer PCB: assigns real footprints (0805, TO-92, DO-35, DIP-8, headers, LED, radial-cap), auto-places components (connectivity-aware; or use your own placement), routes a 2-layer maze router with vias, and VERIFIES the result with DRC (clearance/crossing checks) and ERC (union-find copper connectivity proven against the netlist). Returns the board, routing stats + honest unrouted-net list, DRC violations, ERC net status, a 'manufacturable' flag (true only when DRC+ERC clean and everything routed), SVG layers (top/bottom copper, silkscreen, drill, assembly), and optional Gerber RS-274X + Excellon drill files. Same netlist you simulate with spice_simulate — design, verify, and lay out an entire board through the tool layer. Supply a 'placement' array for production-quality boards; the auto-router is a first-pass best-of-N-seeds.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| netlist | string | oui | SPICE netlist (same format as spice_simulate). Components + nets are extracted; .model/.tran/etc. ignored. |
| placement | array<object> | non | Optional manual placement; omit for connectivity-aware auto-placement (best of N seeds). |
| board | object | non | Optional board size in mm; auto-sized if omitted |
| clearance_mm | number | non | Minimum copper clearance in mm |
| trace_width_mm | number | non | Routing trace width in mm |
| gnd_pour | boolean | non | Treat GND as a bottom-layer pour (unions all GND pads for ERC) |
| gerber | boolean | non | Also return Gerber RS-274X + Excellon drill files |
voltage_divider
voltage divider
Calculates output voltage, current draw, and power dissipation for a resistive voltage divider. Given an input voltage Vin and two resistor values R1 (upper) and R2 (lower), computes Vout = Vin * R2 / (R1 + R2), divider current, individual resistor power dissipation, and the division ratio. Essential for biasing circuits, level shifting, ADC input scaling, and feedback networks. Use before trace_width to size traces for divider current, or chain from a power supply output to verify signal levels.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| vin | number | oui | Input voltage in volts (V). Must be positive. |
| r1_ohm | number | oui | Upper resistor value in ohms (R1), connected between Vin and Vout node. |
| r2_ohm | number | oui | Lower resistor value in ohms (R2), connected between Vout node and ground. |
rc_filter
rc filter
Computes the cutoff frequency, time constant, impedance, and phase shift of a first-order RC filter. Supports both lowpass and highpass topologies. The cutoff frequency is f = 1/(2*pi*R*C) where the signal is attenuated by 3 dB. The time constant tau = R*C governs transient response — the capacitor reaches 63.2% of its final value after one tau. Use for anti-aliasing before ADCs, DC blocking, noise filtering, and signal conditioning. Chain from voltage_divider to design filtered bias networks.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| resistance_ohm | number | oui | Resistance in ohms (R). The resistive element of the RC filter. |
| capacitance_f | number | oui | Capacitance in farads (C). The capacitive element of the RC filter. |
| filter_type | enum: "lowpass" | "highpass" | non | Filter topology: 'lowpass' (R then C to ground) or 'highpass' (C then R to ground). |
lc_resonance
lc resonance
Calculates the resonant frequency of an LC circuit, along with optional Q factor and bandwidth when series resistance is provided. The resonant frequency f0 = 1/(2*pi*sqrt(L*C)) is where inductive and capacitive reactances cancel. Used for designing tank circuits, oscillators, bandpass filters, and antenna matching networks. If resistance R is given, computes quality factor Q = (1/R)*sqrt(L/C) and 3 dB bandwidth = f0/Q. Chain into impedance_match to design matching networks at the resonant frequency.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| inductance_h | number | oui | Inductance in henries (H). The inductive element of the LC circuit. |
| capacitance_f | number | oui | Capacitance in farads (F). The capacitive element of the LC circuit. |
| resistance_ohm | number | non | Optional series resistance in ohms for Q factor and bandwidth calculation. Omit for ideal LC analysis. |
impedance_match
impedance match
Designs an L-network impedance matching circuit between two real impedances at a given frequency. Computes the required shunt and series reactive components (inductor and capacitor) to transform the source impedance to the load impedance. The network Q factor is sqrt(Rh/Rl - 1) where Rh is the higher impedance. Topology is automatically selected: the shunt element is placed across the higher impedance side. Essential for antenna matching, amplifier input/output matching, and maximizing power transfer. Chain from lc_resonance to match at a tank circuit's resonant frequency.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| source_ohm | number | oui | Source impedance in ohms (real, resistive). Must differ from load impedance. |
| load_ohm | number | oui | Load impedance in ohms (real, resistive). Must differ from source impedance. |
| freq_mhz | number | oui | Design frequency in megahertz for component value calculation. |
trace_width
trace width
Calculates the minimum PCB trace width for a given current using the IPC-2221 standard formula. The IPC-2221 empirical equation relates current capacity to cross-sectional area and temperature rise: I = k * dT^0.44 * A^0.725, where k=0.048 for external layers and k=0.024 for internal layers. Supports configurable copper weight (oz/ft^2) and temperature rise. Also computes approximate DC resistance per centimeter. Essential for power delivery, high-current motor drivers, and ensuring PCB reliability. Chain from voltage_divider or impedance_match to verify trace sizing for computed currents.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| current_amps | number | oui | Required current capacity in amperes (A). |
| copper_oz | number | non | Copper weight in ounces per square foot. 1 oz/ft^2 = 1.37 mil (34.8 um) thickness. Common values: 0.5, 1, 2. |
| temp_rise_c | number | non | Allowable temperature rise above ambient in degrees Celsius. IPC-2221 standard uses 10, 20, or 30 C. |
| layer | enum: "external" | "internal" | non | PCB layer type. External layers dissipate heat better (k=0.048); internal layers use k=0.024. |
ohms_law
ohms law
Solves Ohm's Law and the power equation given any two of four electrical quantities: voltage (V), current (I), resistance (R), and power (P). Uses V=IR, P=VI, P=I^2R, and P=V^2/R to derive the missing two values. Fundamental for every circuit design task: sizing resistors, estimating current draw, checking power dissipation, and verifying component ratings. Chain into led_resistor for LED circuits or voltage_divider for bias networks.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| voltage_v | number | non | Voltage in volts (V). Provide exactly 2 of the 4 parameters. |
| current_a | number | non | Current in amps (A). Provide exactly 2 of the 4 parameters. |
| resistance_ohm | number | non | Resistance in ohms. Provide exactly 2 of the 4 parameters. |
| power_w | number | non | Power in watts (W). Provide exactly 2 of the 4 parameters. |
resistor_color_code
resistor color code
Decodes 4-band or 5-band resistor color codes into resistance value, tolerance, and min/max range. Accepts an ordered array of color names (left-to-right as printed on the resistor body). Supports standard EIA color codes including gold and silver multiplier/tolerance bands. Outputs the nominal resistance in ohms, a human-readable formatted value (e.g. '4.7kΩ'), tolerance percentage, and the min/max resistance range. Chain into ohms_law or led_resistor for circuit analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| bands | array<enum: "black" | "brown" | "red" | "orange" | "yellow" | "green" | "blue" | "violet" …> | oui | Array of 4 or 5 color band names from left to right. 4-band: [digit1, digit2, multiplier, tolerance]. 5-band: [digit1, digit2, digit3, multiplier, tolerance]. |
led_resistor
led resistor
Calculates the current-limiting resistor for driving one or more LEDs in series from a DC supply. Computes the exact resistance from R = (Vsupply - n*Vf) / I, then selects the nearest E24 standard resistor value. Reports the actual current with the standard resistor, power dissipation, and voltage across the resistor. Supports series LED strings by specifying led_count. Validates that supply voltage exceeds total forward voltage. Chain from ohms_law for power budgeting or into trace_width for PCB layout.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| supply_voltage_v | number | oui | Supply voltage in volts (V). Must be positive. |
| led_forward_v | number | non | LED forward voltage in volts (V). Defaults to 2.0V (typical red LED). |
| led_current_ma | number | non | Desired LED current in milliamps (mA). Defaults to 20mA. |
| led_count | integer | non | Number of LEDs in series. Defaults to 1. |
timer_555
timer 555
Calculates timing parameters for the ubiquitous NE555 / LM555 timer IC in astable (free-running oscillator) and monostable (one-shot pulse) modes. In astable mode, computes frequency, period, duty cycle, and HIGH/LOW durations from R1, R2, and C using f = 1.44 / ((R1 + 2·R2) · C). In monostable mode, computes pulse width from R and C using t = 1.1 · R · C. Standard 555 astable duty cycle is always >50%; for 50% duty cycle use a diode across R2. Useful for generating clock signals, PWM, delays, and debounce circuits. Chain from ohms_law for power calculations or resistor_color_code for component selection.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| mode | enum: "astable" | "monostable" | oui | Operating mode. 'astable' produces a continuous square wave. 'monostable' produces a single timed pulse. |
| r1_ohm | number | oui | Resistance R1 in ohms. In astable mode this is the charge-path resistor between Vcc and the discharge pin. In monostable mode this is the timing resistor. |
| r2_ohm | number | non | Resistance R2 in ohms (astable mode only). Charge/discharge resistor between the discharge and threshold pins. Required for astable mode. |
| c_farad | number | oui | Timing capacitor in farads. Typical values range from 1 pF to 1000 µF. Use scientific notation, e.g. 1e-6 for 1 µF. |
op_amp_gain
op amp gain
Calculate voltage gain and output for operational amplifier circuits in inverting, non-inverting, and differential configurations. For inverting: Av = -Rf/Ri with input impedance equal to Ri. For non-inverting: Av = 1 + Rf/Rg with very high input impedance. For differential: Av = Rf/Ri applied to (V1 - V2). Reports gain in linear and dB, output voltage when input is provided, input impedance, and phase inversion status. Ideal op-amp assumptions (infinite open-loop gain, zero input bias current). Chain from ohms_law for power budgeting or resistor_color_code for component selection.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| topology | enum: "inverting" | "non_inverting" | "differential" | oui | Op-amp circuit topology. 'inverting' uses Rf/Ri feedback with input to inverting terminal. 'non_inverting' applies input to non-inverting terminal with Rf/Rg feedback. 'differential' amplifies the voltage difference between two inputs. |
| rf_ohm | number | oui | Feedback resistor Rf in ohms. Sets gain magnitude in all topologies. |
| ri_ohm | number | oui | Input/gain resistor in ohms. For inverting: input resistor Ri. For non-inverting: ground resistor Rg. For differential: input resistor on both channels. |
| vin_v | number | non | Input voltage in volts (optional). When provided, computes actual output voltage. For differential topology, this is V1 (non-inverting input). |
| vin2_v | number | non | Second input voltage in volts (differential topology only). This is V2 (inverting input). |
capacitor_charge
capacitor charge
Calculates RC capacitor charge timing, energy storage, and transient voltages. Given resistance, capacitance, supply voltage, and optional initial voltage, computes the RC time constant (τ = R×C), time to reach standard charge thresholds (63%, 86%, 95%, 99%), voltage at key time points, energy stored (E = ½CV²), and peak charging current. Optionally calculates time to reach a specific target voltage using t = -τ × ln((Vsupply - Vtarget) / (Vsupply - Vinitial)). Essential for timing circuits, power-on reset delays, debounce networks, and soft-start designs. Chain from rc_filter for frequency-domain analysis or timer_555 for oscillator timing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| resistance_ohm | number | oui | Series resistance in ohms (R). Controls charge/discharge rate. |
| capacitance_f | number | oui | Capacitance in farads (C). Use scientific notation, e.g. 1e-6 for 1 µF. |
| v_supply | number | oui | Supply voltage in volts. The voltage the capacitor charges toward. |
| v_initial | number | non | Initial capacitor voltage in volts (default 0 for fully discharged). |
| v_target | number | non | Target voltage to reach in volts (optional). When provided, calculates time to reach this voltage. Must be between v_initial and v_supply. |
pcb_via_current
pcb via current
Calculate PCB via current-carrying capacity using the IPC-2221 standard. A plated via is a hollow copper cylinder whose cross-sectional area is the annular ring of plating: A = pi * (D - t) * t, where D is the drill diameter and t is plating thickness. The IPC-2221 empirical formula I = k * dT^0.44 * A^0.725 (k=0.048) then gives the maximum current for a given temperature rise. Also computes via barrel resistance from copper resistivity (1.724e-6 ohm-cm) and barrel length (board thickness). When a target current is specified, returns how many parallel vias are needed. Essential for power planes, high-current paths, and thermal via arrays. Chain with trace_width to verify both trace and via can handle the same current.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| drill_diameter_mm | number | non | Via drill hole diameter in millimeters. Common values: 0.2 (microvia), 0.3 (standard), 0.4, 0.6, 0.8, 1.0. |
| plating_thickness_um | number | non | Copper plating thickness on the via barrel wall in micrometers. Standard is 25 um (IPC Class 2). Heavy plating is 50 um (IPC Class 3). |
| board_thickness_mm | number | non | Total PCB board thickness in millimeters. Standard 2-layer is 1.6 mm. Common values: 0.8, 1.0, 1.6, 2.0, 2.4. |
| temp_rise_c | number | non | Allowable temperature rise above ambient in degrees Celsius. IPC-2221 standard uses 10, 20, or 30 C. |
| target_current_a | number | non | Optional target current in amperes. When provided, calculates how many parallel vias are needed to carry this current safely. |
power_supply_decoupling
power supply decoupling
Select bypass and bulk decoupling capacitors for IC power supply pins. Computes the target PDN (Power Distribution Network) impedance from supply current, voltage, and allowable ripple using Z_target = V_ripple / I_total. Recommends a ceramic bypass capacitor (high-frequency decoupling, placed closest to IC pins) and a bulk capacitor (low-frequency decoupling, near the regulator). Calculates the ceramic cap's self-resonant frequency assuming typical lead inductance, and checks whether ESR-induced ripple stays within limits. Essential for digital, analog, and mixed-signal PCB design. Chain with lc_resonance to verify the decoupling capacitor's resonant behavior, or with trace_width to size the power trace.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| supply_current_ma | number | oui | IC supply current draw in milliamps (mA). Use the maximum or typical from the datasheet. |
| supply_voltage_v | number | oui | Supply voltage in volts (V). Common values: 1.8, 2.5, 3.3, 5.0, 12.0. |
| switching_freq_mhz | number | non | Primary switching or clock frequency of the IC in MHz. Determines the target impedance frequency range. |
| max_ripple_mv | number | non | Maximum allowable supply ripple in millivolts (mV). Typical: 50 mV for digital, 10 mV for analog/RF. |
| num_ics | integer | non | Number of identical ICs sharing this supply rail. Scales the total current demand. |
| esr_mohm | number | non | Equivalent series resistance (ESR) of the ceramic bypass capacitor in milliohms. Typical MLCC: 5-20 mohm. |
log_calc
log calc
Compute logarithms of a positive number in any base. Returns the custom-base logarithm, natural logarithm (ln), common logarithm (log10), and binary logarithm (log2). Useful for signal processing (decibel calculations), information theory (entropy in bits), pH chemistry, and general scientific computation. Uses the change-of-base formula log_b(x) = ln(x) / ln(b). Feeds into exponent_calc for inverse operations and scientific_notation for order-of-magnitude analysis.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| value | number | oui | The positive number to compute the logarithm of |
| base | number | non | The logarithm base (default 10). Must be positive and not equal to 1 |
sig_figs
sig figs
Count significant figures in a number and optionally round to N significant figures. Accepts the number as a string to preserve trailing zeros (e.g. '1.200' has 4 sig figs). Applies standard sig fig rules: leading zeros do not count, trailing zeros after a decimal point count, trailing zeros before a decimal point are treated as significant. Also returns the number in scientific notation. Essential for laboratory measurements, error analysis, and maintaining proper precision in chained calculations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| number_str | string | oui | The number as a string to preserve trailing zeros (e.g. '1.200') |
| round_to_n | integer | non | Optionally round the number to this many significant figures |
scientific_notation
scientific notation
Convert any number to scientific notation and engineering notation. Returns the coefficient, exponent, a formatted string with Unicode superscripts (e.g. '3.14 × 10²'), and engineering notation where the exponent is a multiple of 3. Useful for expressing very large or very small values compactly, common in physics, electronics (picofarads, gigahertz), and astronomy. Accepts output from sig_figs and log_calc for precision-aware formatting.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| value | number | oui | The number to convert to scientific notation |
percentage_calc
percentage calc
Calculate what percentage one number is of another. Given a value and a total, returns the percentage, decimal form, and simplified fraction. For example, 3 out of 4 yields 75%, 0.75, and '3/4'. Commonly used for test scores, survey results, financial ratios, completion rates, and unit conversions. Chain with percentage_increase to compare successive measurements or use with test_grade for academic scoring.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| value | number | oui | The part or numerator value |
| total | number | oui | The whole or denominator value (must not be zero) |
percentage_increase
percentage increase
Calculate the percentage change between an old value and a new value. Determines whether the change is an increase or decrease, the absolute change, and the percentage change. Essential for financial analysis (stock price changes, revenue growth), scientific measurements (before/ after experiments), performance benchmarks, and population statistics. A positive percentage indicates growth; negative indicates decline. Division by zero (old_value = 0) is handled gracefully.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| old_value | number | oui | The original or starting value |
| new_value | number | oui | The new or ending value |
exponent_calc
exponent calc
Compute the result of raising a base to an exponent (base^exponent). Handles positive and negative exponents, fractional exponents, and zero. Returns the numeric result and a scientific notation string for very large or very small results. Useful for compound interest calculations, exponential growth/decay models, physics power laws, and combinatorics. The inverse of log_calc; chain with scientific_notation for formatted display of extreme values.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| base | number | oui | The base number |
| exponent | number | oui | The exponent (power) to raise the base to |
square_root
square root
Compute the square root of a non-negative number. Returns the decimal result, whether the input is a perfect square, and a simplified radical form (e.g. '√12' simplifies to '2√3'). For integer inputs, factors are extracted from under the radical sign. Useful for geometry (diagonal/hypotenuse calculations), statistics (standard deviation from variance), signal processing (RMS values), and general algebra. Chain with pythagorean_theorem for triangle side calculations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| value | number | oui | The non-negative number to compute the square root of |
circumference
circumference
Calculate the circumference and area of a circle given either a radius or diameter. Provide one or both; if both are given, radius takes precedence. Returns circumference (C = 2πr), area (A = πr²), and both radius and diameter for completeness. Common in mechanical engineering (pulley systems, pipe sizing), electronics (antenna loop calculations, coil winding), civil engineering (manhole covers, circular foundations), and everyday measurement tasks.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| radius | number | non | The radius of the circle (takes precedence over diameter) |
| diameter | number | non | The diameter of the circle |
slope_calc
slope calc
Calculate the slope, y-intercept, line equation, angle, and distance between two points in a 2D Cartesian plane. Given coordinates (x1, y1) and (x2, y2), computes slope (rise/run), y-intercept, the equation in slope-intercept form (y = mx + b), angle in degrees relative to the x-axis, and Euclidean distance. Handles vertical and horizontal lines as special cases. Useful for surveying, civil engineering grade calculations, linear regression visualization, and physics kinematics problems.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| x1 | number | oui | X-coordinate of the first point |
| y1 | number | oui | Y-coordinate of the first point |
| x2 | number | oui | X-coordinate of the second point |
| y2 | number | oui | Y-coordinate of the second point |
pythagorean_theorem
pythagorean theorem
Solve for any side of a right triangle using the Pythagorean theorem (a² + b² = c²). Provide any two of the three sides (a, b, c) and the missing side is computed. Also returns the triangle area (0.5 * a * b), perimeter, and confirms it is a right triangle. Side c is always the hypotenuse. Fundamental to surveying, construction (squaring corners), navigation (distance calculations), physics (vector decomposition), and 3D graphics. Chain with slope_calc for coordinate geometry or square_root for simplified radical answers.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| a | number | non | Length of side a (leg) |
| b | number | non | Length of side b (leg) |
| c | number | non | Length of side c (hypotenuse) |
p_value
p value
Calculate the p-value for a z-score or t-statistic. Supports one-tailed (left or right) and two-tailed hypothesis tests using either the standard normal distribution or the Student's t-distribution when degrees of freedom are specified. Returns significance flags at the 0.01, 0.05, and 0.10 alpha levels. Essential for interpreting results from t-tests, z-tests, ANOVA post-hoc comparisons, and regression coefficients. Uses the Abramowitz & Stegun normal CDF approximation and regularized incomplete beta function for the t-distribution.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| test_statistic | number | oui | The z-score or t-statistic from your hypothesis test. Positive values indicate the observed value is above the null hypothesis mean. |
| test_type | enum: "one_tail_left" | "one_tail_right" | "two_tail" | non | Tail type: one_tail_left (p from left), one_tail_right (p from right), or two_tail (both tails combined). |
| degrees_of_freedom | integer | non | Degrees of freedom for the t-distribution. Omit to use the standard normal (z) distribution. |
confidence_interval
confidence interval
Calculate the confidence interval for a sample mean. Given a sample mean, sample size, standard deviation, and confidence level, computes the margin of error, lower and upper bounds, critical z-score, and standard error. Supports finite population correction (FPC) when a population size is provided, which narrows the interval for samples that are a large fraction of the population. Uses the Abramowitz & Stegun rational approximation for the inverse normal CDF to derive the critical z-value. Common in survey analysis, A/B testing, and quality control.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| sample_mean | number | oui | The observed sample mean (x-bar) around which the confidence interval is centered. |
| sample_size | integer | oui | The number of observations in the sample (n). Must be a positive integer. |
| standard_deviation | number | oui | The standard deviation of the sample or population. Must be a positive number. |
| confidence_level | number | non | Confidence level as a decimal between 0 and 1 (e.g. 0.95 for 95%). Default is 0.95. |
| population_size | integer | non | Total population size for finite population correction (FPC). Omit for infinite population assumption. |
sales_tax
sales tax
Calculates total cost including sales tax for a purchase. Given a unit price, tax rate percentage, and optional quantity, computes the subtotal (price times quantity), the tax amount rounded to two decimal places, and the final total. Useful for estimating purchase costs across US states and municipalities with different tax rates, comparing pre-tax and post-tax prices, and budgeting. Chain into salary_to_hourly to see how many work-hours a purchase represents.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| price | number | oui | Unit price of the item in dollars (or any currency). Must be positive. |
| tax_rate_pct | number | non | Sales tax rate as a percentage (e.g. 8.875 for 8.875%). Defaults to 0 — enter your local rate. |
| quantity | integer | non | Number of items to purchase. Defaults to 1. |
salary_to_hourly
salary to hourly
Converts compensation between annual salary, monthly pay, weekly pay, and hourly wage. Accepts any of the four pay periods as input and derives all others. Uses configurable hours per week (default 40) and weeks per year (default 52). Daily rate assumes an 8-hour workday; monthly is annual divided by 12. Useful for comparing job offers quoted in different pay periods, freelance rate-setting, and budgeting. Chain from sales_tax to see how many hours a purchase costs.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| amount | number | oui | The salary or wage amount to convert. |
| from_type | enum: "annual" | "monthly" | "weekly" | "hourly" | non | The pay period of the input amount. Defaults to 'annual'. |
| hours_per_week | number | non | Hours worked per week. Defaults to 40 for a standard full-time schedule. |
| weeks_per_year | number | non | Working weeks per year. Defaults to 52. Use 50 to account for 2 weeks unpaid vacation. |
loan_amortization
loan amortization
Computes a full loan amortization schedule given principal, annual interest rate, and term in months. Returns the fixed monthly payment, total interest, total payments, and a month-by-month breakdown of principal vs interest. Supports optional extra monthly payments — shows months saved and interest saved. Works for mortgages (30yr/15yr), auto loans, personal loans, and student loans. All currency-agnostic. Use with /run?page=1&page_size=12 to paginate the schedule array for context-friendly agent consumption.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| principal | number | oui | Loan principal amount in dollars (or any currency unit). |
| annual_rate_pct | number | oui | Annual interest rate as a percentage (e.g., 6.5 for 6.5%). |
| term_months | integer | oui | Loan term in months. Max 600 (50 years). Common values: 360 (30yr), 180 (15yr), 60 (5yr auto). |
| extra_payment | number | non | Optional fixed extra monthly payment toward principal. Defaults to 0. |
compound_interest
compound interest
Calculates compound interest growth over time using the formula A = P(1 + r/n)^(nt). Given a principal, annual rate, duration in years, and compounding frequency, returns the future value, total interest earned, effective annual rate (APY), and a year-by-year growth schedule. Supports optional recurring monthly contributions for savings projections. Works for savings accounts, CDs, investment returns, and retirement planning. Currency-agnostic.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| principal | number | oui | Initial investment or deposit amount (any currency unit). |
| annual_rate_pct | number | oui | Annual interest rate as a percentage (e.g., 5.5 for 5.5%). |
| years | number | oui | Investment duration in years. Max 100. |
| compounds_per_year | integer | non | How often interest compounds per year. Allowed: 1 (annually), 2 (semi-annually), 4 (quarterly), 12 (monthly), 52 (weekly), 365 (daily). Defaults to 12. |
| monthly_contribution | number | non | Optional recurring monthly contribution added at each month. Defaults to 0. |
test_grade
test grade
Calculates a test or exam grade from the number of correct answers and total questions. Returns the percentage score, letter grade, points missed, and GPA points. Supports US grading (A/B/C/D/F with 4.0 GPA scale), UK grading (First/2:1/2:2/Third/Fail), and percentage-only mode. US thresholds: A>=90, B>=80, C>=70, D>=60, F =70, 2:1>=60, 2:2>=50, Third>=40, Fail<40. Useful for students checking scores and teachers computing class statistics.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| correct | integer | oui | Number of questions answered correctly. Must be a non-negative integer. |
| total | integer | oui | Total number of questions on the test. Must be a positive integer. |
| grading_scale | enum: "us" | "uk" | "percentage_only" | non | Grading scale to use. 'us' for A-F letter grades, 'uk' for First/2:1/2:2/Third/Fail, 'percentage_only' for just the percentage. |
square_footage
square footage
Calculates area and perimeter for common shapes — rectangle, circle, or triangle — in both imperial and metric units. Returns area in square feet, square meters, and acres, plus perimeter in feet and meters. For rectangles: area = length * width, perimeter = 2*(length + width). For circles: area = pi * r^2, perimeter = 2 * pi * r. For triangles: area = 0.5 * base * height, perimeter approximated as base + height + sqrt(base^2 + height^2). Useful for real estate, flooring, landscaping, and construction estimates.
Aucun paramètre.
unit_convert
unit convert
Convert between units across 10 categories: length (m, km, mi, ft, in, yd, nmi), mass (kg, lb, oz, g, ton), volume (l, gal, ml, cup, fl_oz), area (m2, ft2, acre, hectare), speed (mps, kph, mph, knot), pressure (pa, psi, bar, atm, mmhg), energy (j, kwh, btu, cal, wh), data (b, kb, mb, gb, tb), time (s, ms, min, hr, day, year), and temperature (c, f, k). Accepts any value with source and target unit abbreviations. Returns the converted result with the formula used.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| value | number | oui | The numeric value to convert. |
| from | string | oui | Source unit abbreviation (e.g., 'km', 'lb', 'f', 'psi', 'kwh'). Case-insensitive. |
| to | string | oui | Target unit abbreviation (e.g., 'mi', 'kg', 'c', 'bar', 'btu'). Case-insensitive. |
hex_converter
hex converter
Convert numbers between hexadecimal, binary, decimal, and octal bases. Accepts any base as input (prefix 0x for hex, 0b for binary, 0o for octal, or plain decimal) and returns all four representations simultaneously. Also reports bit width, byte count, ASCII character (if printable), and signed interpretations (8-bit, 16-bit, 32-bit two's complement). Essential for embedded programming, register debugging, network protocol analysis, and color code conversion. Example: 0xFF → decimal 255, binary 0b11111111, octal 0o377, 8 bits, 1 byte.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| value | string | oui | The number to convert. Prefix with 0x for hex (0xFF), 0b for binary (0b1010), 0o for octal (0o17). Plain numbers are treated as decimal. Supports negative values with leading minus. |
timestamp_converter
timestamp converter
Convert between Unix timestamps and human-readable date/time formats. Accepts Unix epoch (in seconds or milliseconds), ISO 8601 strings, or 'now' for the current time. Returns both Unix seconds and milliseconds, ISO 8601 UTC string, date and time components, day of the week, relative time description ('2 hours ago'), and past/future indicator. Auto-detects whether a numeric input is seconds or milliseconds based on magnitude. Essential for debugging logs, API timestamps, cron scheduling, and time zone conversions.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| value | string | oui | A timestamp to convert. Accepts Unix epoch (seconds or milliseconds), ISO 8601 string (e.g. '2024-01-15T10:30:00Z'), or 'now' for the current time. |
bmi_calculator
bmi calculator
Calculate Body Mass Index (BMI) from weight and height using the WHO standard formula. Supports metric (kg/cm) and imperial (lbs/inches) units. Returns the BMI value, WHO classification (Underweight, Normal, Overweight, Obese Class I-III), and the healthy weight range for the given height. Formula: BMI = weight_kg / (height_m)^2. Useful for health screening, fitness planning, and clinical intake forms.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| weight | number | oui | Body weight. Units determined by the 'unit' parameter. |
| height | number | oui | Height. Units determined by the 'unit' parameter. |
| unit | enum: "metric" | "imperial" | non | Unit system. 'metric' = kg and cm. 'imperial' = lbs and inches. Defaults to 'metric'. |
tip_calculator
tip calculator
Calculate tip and split a restaurant bill among multiple people. Given a bill amount, tip percentage, and number of diners, returns the tip amount, total with tip, per-person share, and effective tip percentage. Supports rounding up to the nearest whole number for convenience. Defaults to 18% tip for 1 person. Currency-agnostic — works with any monetary unit.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| bill_amount | number | oui | Total bill amount before tip (any currency). |
| tip_pct | number | non | Tip percentage. Common values: 15 (standard), 18 (good), 20 (great), 25 (excellent). Defaults to 18%. |
| split | integer | non | Number of people splitting the bill. Defaults to 1 (no split). |
| round_up | boolean | non | Round the total up to the nearest whole number. Defaults to false. |
date_difference
date difference
Calculate the difference between two dates in days, weeks, months, years, and business days. Accepts dates in YYYY-MM-DD format. Returns the absolute difference (order doesn't matter) plus a flag indicating whether the end date is in the future relative to start. Business days count only Monday through Friday. Useful for project planning, deadline tracking, contract duration calculations, and age computations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start_date | string | oui | Start date in YYYY-MM-DD format (e.g., '2024-01-15'). |
| end_date | string | oui | End date in YYYY-MM-DD format (e.g., '2024-12-31'). |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://calc.engineer/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http calc https://calc.engineer/mcpCustomize > Connectors > + Add > Add custom connector ; Name : calc ; URL : https://calc.engineer/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : calc ; Server URL : https://calc.engineer/mcp ; Create as a plugin{
"mcpServers": {
"calc": {
"url": "https://calc.engineer/mcp"
}
}
}{
"mcpServers": {
"calc": {
"type": "http",
"url": "https://calc.engineer/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"calc": {
"url": "https://calc.engineer/mcp"
}
}
}{
"mcpServers": {
"calc": {
"httpUrl": "https://calc.engineer/mcp"
}
}
}[mcp_servers.calc]
url = "https://calc.engineer/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
calc.engineer · L’Atlas · Test du
[calc.engineer — L’Atlas](https://latlas.dev/mcp/engineer.calc/calc)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.