Compare Flemish energy contracts (V-test)
compare_energy_contractsCompare electricity and gas contracts in Flanders with official V-test data and yearly usage to rank options by yearly price for a postcode.
Instructions
Find the cheapest electricity and gas contracts for a home in Flanders (Belgium) using the official V-test of the Flemish energy regulator (VREG, vtest.be).
Before calling, gather yearly usage for the last 12 months from the user's energy tools (Home Assistant energy dashboard, Homey, a P1 meter app such as HomeWizard, or Fluvius data):
electricity.day_kwh / night_kwh: energy taken from the grid. On a P1 meter, tariff 1 is day and tariff 2 is night. Single-rate meter: put everything in day_kwh.
electricity.injection_day_kwh / injection_night_kwh: energy returned to the grid (solar panels).
electricity.capacity_peak_kw: average of the monthly peaks over 12 months (capacity tariff), if available.
gas.amount: yearly gas usage, in kWh (or m3 with unit "m3"). If you only have a shorter period, scale it to a year and tell the user. Ask the user for their postcode if you don't know it.
Returns contracts sorted from cheapest to most expensive yearly price, incl. VAT, ranked like the V-test on the regular price; yearlyPriceWithDiscountEur shows the first-year price with welcome discounts when there is one. Homes that inject also get "injection": feed-in contracts where a negative price is what the user earns; suppliers often require their electricity and feed-in contract together, so compare totals per supplier. Brussels and Wallonia are not covered.
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": {
"postal_code": "<postal_code>"
},
"name": "compare_energy_contracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | Omit to compare electricity only. | |
| limit | No | Maximum contracts to return per energy type. | |
| filters | No | ||
| electricity | No | Omit to compare gas only. | |
| postal_code | Yes | Belgian postcode of the delivery address. Flanders only. | |
| municipality | No | Municipality name. Only needed when the postcode covers several municipalities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | ||
| note | Yes | ||
| source | Yes | ||
| location | Yes | ||
| injection | No | ||
| electricity | No |