Check a filled certificate
check_certificateChecks 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"certificate": "<certificate>",
"data": "<data>"
},
"name": "check_certificate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The certificate object, shaped like the JSON Schema from get_certificate_schema. | |
| trade | No | 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. | |
| certificate | Yes |