iso11452_levels
Retrieve ISO 11452-2 radiated immunity test levels for automotive components to ensure compliance with EMC requirements.
Instructions
Get ISO 11452-2 radiated immunity test levels for automotive components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler function for iso11452_levels tool. Reads ISO 11452-2 radiated immunity test levels from AUTOMOTIVE_EMC data (automotive_emc.json) and formats them as text.
def _iso11452_levels() -> list[TextContent]: result = "ISO 11452-2 Radiated Immunity Test Levels\n" + "=" * 50 + "\n\n" iso_data = AUTOMOTIVE_EMC.get("iso_11452_2", {}) result += f"{iso_data.get('title', '')}\n" result += f"Frequency range: {iso_data.get('test_levels', {}).get('frequency_range', {}).get('min_mhz', '?')}-" result += f"{iso_data.get('test_levels', {}).get('frequency_range', {}).get('max_mhz', '?')} MHz\n" result += f"Modulation: {iso_data.get('test_levels', {}).get('modulation', '1 kHz AM, 80%')}\n\n" result += "## Test Severity Levels:\n" for level in iso_data.get("test_levels", {}).get("levels", []): result += f" Level {level['level']}: {level['field_strength_v_m']} V/m - {level['typical_use']}\n" result += "\n## Typical OEM Requirements:\n" for req in iso_data.get("oem_requirements", {}).get("examples", []): result += f" {req['oem']}: {req['level_v_m']} V/m ({req['range_mhz'][0]}-{req['range_mhz'][1]} MHz)\n" return [TextContent(type="text", text=result)] - src/mcp_emc_regulations/tools/automotive.py:61-145 (registration)Tool registration definition inside AutomotiveTools.list_tools(). Defines name, description, and empty inputSchema for iso11452_levels.
Tool( name="iso11452_levels", description="Get ISO 11452-2 radiated immunity test levels for automotive components.", inputSchema={"type": "object", "properties": {}}, ), Tool( name="iso7637_pulses", description="Get ISO 7637-2 conducted transient immunity test pulses for automotive components.", inputSchema={"type": "object", "properties": {}}, ), Tool( name="automotive_emc_overview", description="Get an overview of automotive EMC standards (CISPR 12, CISPR 25, ISO 11452, ISO 7637, UNECE R10).", inputSchema={"type": "object", "properties": {}}, ), Tool( name="automotive_immunity_method", description=( "Get details on an ISO 11452 immunity test method. " "Methods: ALSE (Part 2), TEM cell (Part 3), BCI (Part 4), " "stripline (Part 5), direct injection (Part 7), magnetic (Part 8), " "portable TX (Part 9), reverberation (Part 11)." ), inputSchema={ "type": "object", "properties": { "method": { "type": "string", "enum": ["alse", "tem", "bci", "stripline", "direct_injection", "magnetic", "portable_tx", "off_vehicle_tx", "reverberation", "part_2", "part_3", "part_4", "part_5", "part_7", "part_8", "part_9", "part_10", "part_11", "all"], "description": "Test method or ISO 11452 part number", }, }, "required": ["method"], }, ), Tool( name="oem_emc_requirements", description=( "Get OEM-specific automotive EMC requirements. " "Returns emission class, immunity level, BCI level, and special requirements. " "OEMs: gm, ford, vw, bmw, stellantis, toyota, hyundai, mercedes, tesla, generic." ), inputSchema={ "type": "object", "properties": { "oem": { "type": "string", "enum": ["gm", "ford", "vw", "bmw", "stellantis", "toyota", "hyundai", "mercedes", "tesla", "generic", "all"], "description": "OEM name", }, "location": { "type": "string", "enum": ["engine_bay", "passenger", "trunk", "exterior"], "description": "Component mounting location", }, }, }, ), Tool( name="iso16750_conditions", description=( "Get ISO 16750 environmental conditions for automotive electronic equipment. " "Covers electrical loads, vibration, temperature, and chemical exposure by mounting location." ), inputSchema={ "type": "object", "properties": { "category": { "type": "string", "enum": ["electrical", "mechanical", "climatic", "chemical", "all"], "description": "Environmental category", }, "location": { "type": "string", "enum": ["engine_bay", "passenger", "trunk", "exterior", "chassis"], "description": "Mounting location", }, }, }, ), ] - Dispatch call in AutomotiveTools.call_tool() that routes iso11452_levels to _iso11452_levels() handler.
elif name == "iso11452_levels": return self._iso11452_levels() - Input schema for iso11452_levels tool - empty properties indicating no parameters required.
inputSchema={"type": "object", "properties": {}}, - Loads the automotive_emc.json data file which contains the ISO 11452-2 test levels used by the handler.
AUTOMOTIVE_EMC = load_json("automotive_emc.json") AUTO_EXTENDED = load_json("automotive_emc_extended.json") OEM_SPECS = load_json("automotive_oem_specs.json") ISO16750 = load_json("iso16750_environmental.json")