{"at":"2026-11-23T01:25:50.395Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:25:52.262Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:25:52.463Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:25:54.337Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"extensions":{"io.modelcontextprotocol/ui":{}},"logging":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":true}},"instructions":"Physics validation MCP server with six tools. Validates RF link budgets, Shannon-Hartley channel capacity claims, thermal noise calculations, radar range equations, antenna gain claims (aperture and Harrington bounds) and pulse-Doppler radar ambiguity (unambiguous range/velocity) against hard physical limits. Catches AI hallucinations in physics.","protocolVersion":"2025-11-25","serverInfo":{"name":"PhysBound","version":"3.4.11"}}}}
{"at":"2026-11-23T01:25:54.337Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:25:54.337Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:25:54.347Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"_meta":{"fastmcp":{"tags":[]}},"description":"Calculate a complete RF link budget using the Friis transmission equation.\n\nComputes free-space path loss (FSPL), received power, and validates antenna\ngains against the physical gain limit. The hard bound is\nG_max = max((pi*D/lambda)^2, (ka)^2 + 2ka) with k = 2*pi/lambda and a = D/2,\ni.e. the larger of the eta = 1 aperture value and Harrington's bound for an\nantenna enclosed in a sphere of diameter D (numerically the Harrington value,\nwhich converges to the aperture value for D >> lambda and matters for\nelectrically small antennas, D < lambda); a claimed gain above it is\nrejected. A claimed gain above the typical-efficiency value\neta*(pi*D/lambda)^2 (eta = 0.55 by default) but below the physical bound is\naccepted with a warning. Negative losses are rejected (conservation of energy).\n\nUse this tool when you need to:\n- Estimate received signal strength for a wireless link\n- Validate whether a claimed link budget is physically achievable\n- Check if antenna gain claims are consistent with antenna dimensions\n- Compute free-space path loss at a given frequency and distance\n\nReturns both human-readable summary and machine-readable JSON with all\nintermediate values. Returns a PhysicalViolationError dict if any input\nviolates physics.","inputSchema":{"additionalProperties":false,"properties":{"aperture_efficiency":{"default":0.55,"description":"Efficiency for the typical-gain warning threshold\n(default: 0.55 for a parabolic dish; the hard limit is\nmax(eta = 1 aperture value, Harrington bound))","type":"number"},"distance_m":{"description":"Link distance in meters (must be > 0)","type":"number"},"frequency_hz":{"description":"Carrier frequency in Hz (must be > 0)","type":"number"},"rx_antenna_diameter_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"RX antenna diameter in meters (enables aperture check)"},"rx_antenna_gain_dbi":{"description":"Receive antenna gain in dBi","type":"number"},"rx_losses_db":{"default":0.0,"description":"RX-side miscellaneous losses in dB (default: 0)","type":"number"},"tx_antenna_diameter_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"TX antenna diameter in meters (enables aperture check)"},"tx_antenna_gain_dbi":{"description":"Transmit antenna gain in dBi","type":"number"},"tx_losses_db":{"default":0.0,"description":"TX-side miscellaneous losses in dB (default: 0)","type":"number"},"tx_power_dbm":{"description":"Transmit power in dBm","type":"number"}},"required":["tx_power_dbm","tx_antenna_gain_dbi","rx_antenna_gain_dbi","frequency_hz","distance_m"],"type":"object"},"name":"rf_link_budget","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Calculate Shannon-Hartley channel capacity and validate throughput claims.\n\nComputes the theoretical maximum data rate C = B * log2(1 + SNR) for an AWGN\nchannel. If a claimed throughput is provided, validates it against this limit.\nAny claim exceeding the Shannon limit is a physical impossibility.\n\nUse this tool when you need to:\n- Calculate maximum achievable throughput for a given bandwidth and SNR\n- Validate whether a throughput claim is physically possible\n- Determine spectral efficiency limits\n- Check if a modulation/coding scheme claim is realistic\n\nReturns a PhysicalViolationError dict when a claim exceeds the Shannon limit.","inputSchema":{"additionalProperties":false,"properties":{"bandwidth_hz":{"description":"Channel bandwidth in Hz (must be > 0)","type":"number"},"claimed_throughput_bps":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional throughput claim to validate in bits/sec"},"snr_db":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Signal-to-noise ratio in dB. Provide this OR snr_linear."},"snr_linear":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Signal-to-noise ratio (linear, not dB). Provide this OR snr_db."}},"required":["bandwidth_hz"],"type":"object"},"name":"shannon_hartley","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Calculate thermal noise power (kTB), cascaded noise figure, and receiver sensitivity.\n\nComputes the fundamental thermal noise floor N = k_B * T * B, which is\n-174 dBm/Hz at the IEEE standard temperature of 290K. Optionally cascades\nmultiple amplifier/filter stages using the Friis noise figure formula\nF_total = F_1 + (F_2-1)/G_1 + (F_3-1)/(G_1*G_2) + ..., the receiver's\neffective input noise temperature T_e = T_0*(F-1) with T_0 = 290 K (the\nIEEE reference at which noise figure is defined, independent of\ntemperature_k), and receiver sensitivity\nS_min = k_B*(T_A + T_e)*B*SNR_required, which reduces to\nN_floor + NF + SNR_required when temperature_k = 290 K.\n\nUse this tool when you need to:\n- Determine the thermal noise floor for a receiver bandwidth\n- Cascade noise figures through a multi-stage receiver chain\n- Calculate minimum detectable signal / receiver sensitivity\n- Validate that a claimed noise figure is physically plausible\n\nReturns a PhysicalViolationError dict if inputs violate thermodynamic limits.","inputSchema":{"additionalProperties":false,"properties":{"bandwidth_hz":{"description":"Receiver bandwidth in Hz (must be > 0)","type":"number"},"required_snr_db":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Required SNR in dB for sensitivity calculation"},"stages":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"description":"Optional list of stages, each with 'gain_db' and 'noise_figure_db' keys"},"temperature_k":{"default":290.0,"description":"Source/antenna noise temperature T_A in Kelvin used for the\nkTB floor (default: 290K, must be >= 0)","type":"number"}},"required":["bandwidth_hz"],"type":"object"},"name":"noise_floor","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Calculate maximum monostatic radar detection range and validate range claims.\n\nComputes the radar range equation R_max = [P_t * G^2 * lambda^2 * sigma /\n((4*pi)^3 * S_min * L)]^(1/4) for a monostatic radar (same antenna for\ntransmit and receive). Validates that claimed detection ranges do not exceed\nthe theoretical maximum. Catches the common fourth-root fallacy where LLMs\nincorrectly state that doubling transmit power doubles radar range (it only\nincreases range by a factor of 2^(1/4) = 1.19x).\n\nUse this tool when you need to:\n- Calculate the maximum detection range of a radar system\n- Validate whether a claimed radar detection range is physically achievable\n- Determine minimum detectable signal power for a radar receiver\n- Check if radar performance claims account for the R^4 path loss\n- Verify that RCS assumptions are reasonable for the target class\n\nReturns both human-readable summary and machine-readable JSON with all\nintermediate values. Returns a PhysicalViolationError dict if any input\nviolates physics or the claimed range exceeds R_max.","inputSchema":{"additionalProperties":false,"properties":{"antenna_gain_dbi":{"description":"Antenna gain in dBi (same antenna for TX and RX)","type":"number"},"claimed_range_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional claimed detection range to validate against R_max (meters)"},"frequency_hz":{"description":"Operating frequency in Hz (must be > 0)","type":"number"},"losses_db":{"default":0.0,"description":"Total system losses in dB (default: 0)","type":"number"},"min_snr_db":{"default":13.0,"description":"Minimum required SNR in dB for detection (default: 13 dB, Swerling I)","type":"number"},"noise_bandwidth_hz":{"default":1000000.0,"description":"Receiver noise bandwidth in Hz (default: 1 MHz)","type":"number"},"num_pulses":{"default":1,"description":"Number of integrated pulses for integration gain (default: 1)","type":"integer"},"peak_power_w":{"description":"Peak transmit power in watts (must be > 0)","type":"number"},"rcs_m2":{"description":"Radar cross section of the target in m^2 (must be > 0)","type":"number"},"system_noise_temp_k":{"default":290.0,"description":"System noise temperature in Kelvin (default: 290K)","type":"number"}},"required":["peak_power_w","antenna_gain_dbi","frequency_hz","rcs_m2"],"type":"object"},"name":"radar_range","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Calculate antenna aperture gain limits, beamwidth, far-field distance; validate gain claims.\n\nFor a circular aperture of diameter D (or an aperture of area A, converted to\nthe equivalent circular diameter D = sqrt(4A/pi)) computes the planar-aperture\ndirectivity D_0 = 4*pi*A/lambda^2 = (pi*D/lambda)^2 (aperture efficiency\neta = 1), Harrington's bound D_max = (ka)^2 + 2ka (k = 2*pi/lambda, a = D/2)\nfor any antenna enclosed in a sphere of diameter D, the hard physical gain\nlimit max(D_0, D_max) (numerically D_max; equal to D_0 to within 0.1 dB for\nD >> lambda, but several dB higher for electrically small antennas D < lambda,\ne.g. a 2.15 dBi dipole in a 0.1 m footprint at 900 MHz is valid although\nD_0 = -0.5 dBi), and the typical gain G = eta*D_0 at the given efficiency\n(default eta = 0.55, parabolic dish). The limiting_bound field reports\n'harrington' for D < lambda and 'aperture' for D >= lambda.\nAlso returns the effective aperture A_e = eta*A, a half-power beamwidth\nestimate (HPBW ~ 70*lambda/D degrees for a tapered reflector; 58.4*lambda/D\nfor a uniformly illuminated circular aperture) and the far-field\n(Fraunhofer) distance 2*D^2/lambda.\n\nIf claimed_gain_dbi is given it is validated: a claim above the physical\nlimit is rejected as a physics violation; a claim between the typical gain\nand the physical limit is accepted with a warning and the implied\nplanar-aperture efficiency eta = G_claim / D_0 is reported.\n\nUse this tool when you need to:\n- Check whether a quoted antenna gain is consistent with its size and frequency\n- Estimate the gain, beamwidth or effective aperture of a dish of known diameter\n- Find the minimum far-field range for antenna measurements or Friis validity\n- Size an antenna for a required gain at a given frequency\n\nReturns a PhysicalViolationError dict if any input violates physics or the\nclaimed gain exceeds the aperture limit.","inputSchema":{"additionalProperties":false,"properties":{"aperture_area_m2":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Physical aperture area in m^2. Provide this OR diameter_m."},"aperture_efficiency":{"default":0.55,"description":"Efficiency for the typical gain / warning threshold\n(default: 0.55 for a parabolic dish; the hard limit is\nmax(eta = 1 aperture value, Harrington bound))","type":"number"},"claimed_gain_dbi":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional antenna gain claim to validate in dBi"},"diameter_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Circular aperture diameter in meters. Provide this OR aperture_area_m2."},"frequency_hz":{"description":"Operating frequency in Hz (must be > 0)","type":"number"}},"required":["frequency_hz"],"type":"object"},"name":"antenna_gain","outputSchema":{"additionalProperties":true,"type":"object"}},{"_meta":{"fastmcp":{"tags":[]}},"description":"Calculate pulse-Doppler radar ambiguity limits and validate range/velocity claims.\n\nComputes the maximum unambiguous range R_ua = c / (2 * PRF), the first blind\nspeed lambda * PRF / 2, the unambiguous velocity v_ua = +/- lambda * PRF / 4\n(Doppler within +/- PRF/2), the Doppler shift f_d = 2 * v_r / lambda of a\ntarget (closing velocity positive) and whether it aliases, and — when a pulse\nwidth is given — the duty cycle, eclipsing minimum range c * tau / 2 and the\nrange resolution c * tau / 2 (or c / (2 B) when a compressed bandwidth is\nsupplied). Reports the range-Doppler dilemma invariant R_ua * v_ua = c * lambda / 8,\nwhich no choice of PRF can beat (Skolnik, Introduction to Radar Systems, Ch. 2-3;\nRichards, Fundamentals of Radar Signal Processing, Ch. 1, 3, 5).\n\nUse this tool when you need to:\n- Find the unambiguous range and velocity coverage of a given PRF\n- Check whether a claimed unambiguous range or velocity is possible at that PRF\n- Check whether a claimed range resolution is possible for the pulse/bandwidth\n- Determine whether a target's Doppler will alias or fall at a blind speed\n- Expose claims that silently violate the range-Doppler dilemma\n\nReturns both human-readable summary and machine-readable JSON with all\nintermediate values. Returns a PhysicalViolationError dict if any input\nviolates physics (PRF <= 0, tau <= 0, duty cycle >= 1) or a claim exceeds\nits limit.","inputSchema":{"additionalProperties":false,"properties":{"bandwidth_hz":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional compressed bandwidth in Hz; sets the resolution limit to c/(2B)"},"claimed_range_resolution_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional claimed range resolution to validate (m)"},"claimed_unambiguous_range_m":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional claimed unambiguous range to validate (m)"},"claimed_unambiguous_velocity_m_s":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional claimed unambiguous velocity to validate (m/s)"},"frequency_hz":{"description":"Carrier frequency in Hz (must be > 0)","type":"number"},"prf_hz":{"description":"Pulse repetition frequency in Hz (must be > 0)","type":"number"},"pulse_width_s":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional transmitted pulse width tau in seconds (must be > 0)"},"target_velocity_m_s":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"description":"Optional target radial velocity in m/s (closing positive)"}},"required":["frequency_hz","prf_hz"],"type":"object"},"name":"radar_ambiguity","outputSchema":{"additionalProperties":true,"type":"object"}}]}}}
