Spark Pack
v1.3.0Live listed building and conservation area checks, cable sizing, Part P and G98/G99 for electricians
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_capabilities What Spark Pack can do
Lists Spark Pack's tools, the regulations edition it targets, what it covers (nations, circuit types, cable types, installation methods) and what it deliberately does not do. Free, needs no input.
size_cable Cable size, voltage drop and earth fault loop check
Sizes a UK final circuit or sub-main and shows the working: design current (with cooker diversity), protective device rating, the smallest cable size that passes current-carrying capacity, voltage drop (3% lighting, 5% other) and earth fault loop impedance (Zs against the maximum for B, C or D breakers), plus a cpc adiabatic check. Returns `recommended` (size and every check with status pass, fail, indicative_pass, needs_input), `sizes_considered` (one line per size), `must_check_against_regs` (points the electrician confirms in BS 7671) and sources. Current-carrying capacity comes from a caut…
| Parameter | Type | Description |
|---|---|---|
circuit_type * | string | What the circuit feeds. ring_final and radial_sockets can be sized without a load (the device rating is used). |
installation_method * | string | How the cable is run. clipped_direct: Clipped direct to a wall or surface, in free air; in_conduit_or_trunking_on_wall: In conduit or trunking fixed on a wall; in_conduit_in_insulated_wall: In conduit… |
run_length_m * | number | Cable length from the board to the furthest point, metres. For a ring, the total ring length. |
ambient_c | number | Ambient temperature, C. Defaults to 30 in air, 20 in the ground. |
apply_cooker_diversity | boolean | Cooker only: apply the usual domestic cooker diversity (default true). |
armour_resistance_mohm_per_m | number | SWA armour resistance from the cable datasheet, milliohms per metre, when the armour is the cpc. |
cable_size_mm2 | number | Check this specific size as well as finding the smallest that passes. |
cable_type | string | Defaults to twin_and_earth, or swa_xlpe for buried runs and sub-mains. |
cooker_has_socket | boolean | Cooker only: the cooker control unit has a socket outlet. |
cores | number | SWA only: number of cores. Defaults to 3 single phase (spare core as cpc) or 4 three phase. With 2 the armour is the cpc: give armour_resistance_mohm_per_m. |
cpc_size_mm2 | number | Override the circuit protective conductor size (twin and earth sizes are known). |
design_current_a | number | Design current Ib in amps, if already known. Overrides load_kw. |
earthing | string | Supply earthing. Defaults to tn_c_s (PME). |
grouped_circuits | number | Number of circuits bunched together along the run, including this one. Defaults to 1. |
grouping_factor | number | Grouping factor Cg from the regs for the arrangement, if known. Without it Spark Pack uses a cautious estimate. |
load_kw | number | Load in kW (for example 9.5 for a shower, 7.4 for a 32 A EV charger). Give this or design_current_a. |
phases | number | Defaults to 1. |
power_factor | number | Defaults to 1 (resistive loads, EV chargers). Use about 0.95 for heat pumps or mixed sub-main loads. |
protective_device | object | The breaker or fuse. Leave rating_a out to let Spark Pack choose the smallest standard rating at or above the design current. |
soil_thermal_resistivity | number | Buried runs: soil thermal resistivity K.m/W, defaults to 2.5 (cautious). |
tabulated_capacity_a | number | Tabulated current-carrying capacity It for cable_size_mm2 and this method, read from BS 7671 Appendix 4 by the electrician. Makes the capacity check firm. |
trade | object | Optional. The electrician's own business details (Nero Trade Profile v1). Used to prefill certificate contractor fields and to give a stable nero_trade_ref. Not stored by Spark Pack. |
upstream_voltage_drop_percent | number | Voltage drop already used upstream (for a circuit fed from a sub-board), percent. |
ze_ohms | number | Measured external earth fault loop impedance Ze, ohms. Without it the typical network maximum is used (0.35 TN-C-S, 0.8 TN-S). |
check_part_p Is this job notifiable under Part P?
Answers whether domestic electrical work in England or Wales must be notified to building control under Part P of the Building Regulations, with the reason and what to do next (self-certify through a competent person scheme within 30 days, or tell building control before starting). England and Wales differ: in Wales kitchens and outdoor areas are still special locations. Returns `notifiable` (true or false), `answer`, `reason`, `what_to_do`, `must_check` and sources. Scotland and Northern Ireland return not_covered. Example: adding a socket in a kitchen in England: {"nation":"england","work":"…
| Parameter | Type | Description |
|---|---|---|
nation * | string | Where the property is. |
work * | string | The kind of work. Pick the most significant if the job has several parts (a new circuit outranks everything). |
building | string | Defaults to dwelling. |
locations | array | Where the work is. bath_or_shower_zone means within the zoned space around a bath or shower. Defaults to ["elsewhere"]. |
registered_with_competent_person_scheme | boolean | Whether the electrician is registered with a scheme such as NICEIC or NAPIT. Changes the next steps. |
trade | object | Optional. The electrician's own business details (Nero Trade Profile v1). Used to prefill certificate contractor fields and to give a stable nero_trade_ref. Not stored by Spark Pack. |
get_certificate_schema Certificate fields as a JSON schema
Returns the fields an Electrical Installation Certificate (eic), Minor Electrical Installation Works Certificate (minor_works) or Electrical Installation Condition Report (eicr) needs, as a JSON Schema the assistant fills from the job notes and test readings (spark-pack-certs-1.0 (for BS 7671:2018+A4:2026 certificates)). Includes which certificate to use when, and the contractor block prefilled from `trade` if given. check_certificate checks the filled object. Field names are Spark Pack's own; the electrician transfers the values to the official form in their scheme portal or software.
| Parameter | Type | Description |
|---|---|---|
certificate * | string | eic for new circuits, consumer units and new installations; minor_works for additions or alterations to one existing circuit; eicr for periodic inspection reports. |
trade | object | Optional. The electrician's own business details (Nero Trade Profile v1). Used to prefill certificate contractor fields and to give a stable nero_trade_ref. Not stored by Spark Pack. |
check_certificate Check a filled certificate
Checks a filled EIC, Minor Works certificate or EICR (shape from get_certificate_schema) and returns `ready_to_transfer`, every missing required field by path, errors (readings that fail: insulation resistance under 1 megohm at 500 V, measured Zs above the maximum for the breaker, RCD trip times too slow, wrong polarity, an EICR marked satisfactory with a C1 or C2) and warnings (Zs above 80% of maximum, mismatched ring readings, low insulation resistance). Contractor fields left blank are filled from `trade`. Returns the (prefilled) data back.
| Parameter | Type | Description |
|---|---|---|
certificate * | string | |
data * | object | The certificate object, shaped like the JSON Schema from get_certificate_schema. |
trade | object | Optional. The electrician's own business details (Nero Trade Profile v1). Used to prefill certificate contractor fields and to give a stable nero_trade_ref. Not stored by Spark Pack. |
check_grid_connection G98, G99 or EV and heat pump notification?
For solar PV, batteries, V2G chargers, EV chargers and heat pumps in Great Britain: says which network operator process applies and when. Generation: G98 (fully type tested, 16 A / 3.68 kW per phase or less: install, then notify within 28 days) or G99 (apply and wait for acceptance before installing), counting existing generation and battery inverters. Demand: the ENA EV charge point and heat pump form (connect and notify within 28 days if every criterion is met, otherwise apply first), with each criterion marked true, false or null (not yet known). Returns `generation`, `demand`, `facts_to_pu…
| Parameter | Type | Description |
|---|---|---|
new_equipment * | array | Equipment being installed. |
battery_storage_kwh | number | |
commissioning_date | string | YYYY-MM-DD. |
ct_metered | boolean | |
cut_out_rating_a | number | Network cut-out fuse rating, amps. Do not open the cut-out to find it. |
earthing | string | Supply earthing, for example TN-C-S. |
existing_equipment | array | Generation, storage or chargers already at the premises, same shape as new_equipment. |
export_limit_kw | number | Export limit if an export limiting scheme (G100) is fitted. |
heat_pump_single_controller | boolean | |
load_limiting_device | boolean | A load limiting or curtailment device keeps demand below the cut-out rating. |
looped_service | boolean | The supply is looped with a neighbour. |
max_demand_after_a | number | Premises maximum demand after the installation, amps per phase (from a load survey). |
metered | boolean | The supply is metered (defaults to unknown). |
mpan | string | Meter point administration number (the supply number on the bill). |
multiple_premises | boolean | Part of several installations in a close area (housing development, street-wide scheme). |
nation | string | Defaults to great_britain. |
service_equipment_ok | boolean | No safety or adequacy concerns with the cut-out and service cable. |
site_postcode | string | |
supply_phases | number | Defaults to 1. |
trade | object | Optional. The electrician's own business details (Nero Trade Profile v1). Used to prefill certificate contractor fields and to give a stable nero_trade_ref. Not stored by Spark Pack. |
property_check Live planning constraints for an electrical job postcode
Looks up, live from official open data, what applies at the customer's postcode before solar PV, battery, EV charger, external cabling, rewire or consumer unit work: listed buildings, conservation areas, Article 4 directions, World Heritage Sites, National Landscapes, scheduled monuments and flood risk zones (planning.data.gov.uk, England, councils that publish). Returns each constraint found with its source link, what it means for the electrical work (listed building consent, solar on a wall facing a road, flood resilient wiring), the council and nation, and the matching check_part_p nation.…
| Parameter | Type | Description |
|---|---|---|
postcode * | string | The job's full UK postcode. |
trade_profile Check the electrician's business details
Checks the electrician's own business details (Nero Trade Profile v1: trading name, Companies House number, competent person scheme and number, postcode, contact) and returns them cleaned, with a stable `nero_trade_ref` computed from the scheme registration or company number. The same object, given as `trade` to the other tools, prefills certificates and grid forms. Spark Pack stores nothing. The same profile and reference can later be used to sign the business into Nero Work, the agent job exchange for trades.
| Parameter | Type | Description |
|---|---|---|
trade * | object | Optional. The electrician's own business details (Nero Trade Profile v1). Used to prefill certificate contractor fields and to give a stable nero_trade_ref. Not stored by Spark Pack. |