# Remont — renovation planner

> AI renovation planner: step-by-step plan, materials from room sizes, local store prices, 3D layout

- name: io.github.Vutik/remont
- version: 1.0.1
- connection class: R0 (autonomous)
- trust: 97/100
- quality: 78/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.Vutik%2Fremont
- tools: https://api.protogrid.dev/v1/servers/io.github.Vutik%2Fremont/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "remont": {
      "type": "http",
      "url": "https://remont-mcp.wrpzdm9jmt.workers.dev/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 99
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-97% +updated-2d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 78/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 78 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 2 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 35 of 35 tools declare readOnlyHint or destructiveHint
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: open_questionnaire (destructiveHint, idempotentHint); get_work_order (destructiveHint, idempotentHint); find_cached_prices (destructiveHint, idempotentHint); …
- warn `tools.token_cost`: about 10,497 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: 83 (weight 15)

- warn `stability.changes`: 8 tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 35, about 10,497 tokens to load them all
- tool set hash: 67cbc2297345876241b584d3eef8f25f
- tools last changed: 2026-11-29T15:44:27.443Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.Vutik/remont.svg)](https://protogrid.dev/servers/io.github.Vutik/remont)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-29 `get_utils` added no new version (still 0.14.0)
  - Returns the utilities layer (pipes, cables, ducts, connectors) of a plan's layout per floor, with the room names and corner letters (wall "A-B"), plus the rooms' sizes so you can place items. Items: lines {id, kind, wall|surface, path, diam_mm, slope_pct, z, zs}, points {t:"pt", at, type}, derived connectors {t:"link", from, joined}.
- 2026-11-29 `add_utils_to_plan` added no new version (still 0.14.0)
  - Turns the parts list of the utilities layer (pipes, fittings, insulation, clamps, cables, manifolds, radiators — see get_utils bom) into material lines of a stage «Utilities» in the plan, named in the plan's language, with quantities and units (pcs / m); lines without a price. Re-running updates quantities of lines it created earlier (key starts with ut:), adds new ones and removes those no longer needed, and never touches prices you saved. Afterwards find store prices for the lines in the user's country (the returned lines have name, key, qty) and save them in the user's plan with update_plan_items (match by key or name; set price_min, url, store) — real store links only, as usual.
- 2026-11-29 `save_utils` added no new version (still 0.14.0)
  - Saves the utilities layer (pipes, cables, ducts) of a plan's floor layout: lines and points drawn on a SURFACE of a room — a wall, the floor or the ceiling — stored separately per surface so the user can show/hide them by kind, room or wall. Requires a layout (save_layout first; get_layout gives the corner letters). Items: {kind, ...} with kind water_cold|water_hot|sewage|heating|floor_heating|gas|power|low_voltage|vent. Wall: wall:"A-B" (corner letters of the room, clockwise: A-B top, B-C right, C-D bottom, D-A left) and coordinates [u, v] = cm from the first letter's corner along the wall / cm above the floor. Floor or ceiling: surface:"floor"|"ceiling" and [x, y] plan coordinates in cm (room is found automatically or give room = index), z = height above the floor (default 0 / ceiling height), slope_pct = how much the line drops per 100 cm along the path (default 2 for sewage). Line: {kind, wall|surface, path:[[a,b],…], diam_mm (standard series per kind in mm: sewage 32/40/50/75/110/160, water 16/20/25/32/40/50/63, heating 16–40, floor heating 16/17/20, gas 15/20/25/32, vent 100–250; a non-standard value is rounded to the nearest standard one in the parts list), size_mm:[w,h] (rectangular duct), note}; path order = flow direction (sewage runs downhill). Power cable (kind power): use socket|light|switch|appliance|feed and sect_mm2 1.5|2.5|4|6|10|16 (3 cores; default by use: light/switch 1.5, socket 2.5, appliance 4, feed 6; without sect_mm2 the section follows the use automatically). Points of any kind (sockets, switches, lights, toilet, sink, bath, shower, washer, tap, radiator, valve, grille, junction, boiler, manifold) snap onto the nearest run of the SAME kind on the same surface within 20 cm (`on`, `u`); a line without diam_mm gets its diameter automatically from the points attached (toilet 110 / sink 40 / shower 50 sewage; tap 16 water; radiator 16 heating …) and keeps it in sync. Sockets, switches and lights of kind power are snapped onto the nearest power cable of the same surface within 20 cm (`on` = cable id, `u` = position along it); a cable without use takes it from the first point attached. Point: {t:"pt", kind, type: socket|switch|light|toilet|sink|bath|shower|washer|tap|manifold|panel|riser|inspection|valve|grille|junction|other, at:[a,b], note}. When a line ends in a wall corner, at the floor or at the ceiling, the server adds a connector (t:"link") on the neighbouring surface at the same spot — do not send links; continue the run from it on the other surface. Merging: items with an existing id replace it, items without id are added, remove:[ids] deletes, replace:true replaces the whole floor's utilities. Returns warnings (e.g. sewage slope under 1%), rejected items with the reason and bom: the parts list computed from the geometry (pipes in sticks, elbows by angle — a horizontal 90° turn of sewage becomes two 45° bends, tees (45° for sewage), reducers, couplings, clamps, cables, points) with bom_warnings (gaps between runs, pipe narrowing downstream, branch wider than the main). Units cm; precision 1 mm (0.1 cm).
- 2026-11-29 `restore_layout` added no new version (still 0.14.0)
  - Rolls the floor layout of a plan back to an earlier version from list_layout_history (n). The current layout is kept in the history first, so a restore can itself be undone. Only the layout changes (not prices, materials or progress). Ask the user to confirm which version before restoring.
- 2026-11-29 `list_layout_history` added no new version (still 0.14.0)
  - Lists the saved earlier versions of a plan's floor layout (rooms, walls, doors, windows, furniture, pipes and cables), newest first: n (0 = the version before the latest change), when, what changed it (save_layout, save_utils, furniture, restore) and counts. The server keeps the last 20 versions for 90 days; several quick furniture or utilities edits in a row share one version. Use it when the user wants to undo a change to the layout, then call restore_layout with n.
- 2026-11-29 `get_layout` changed (description) no new version (still 0.14.0)
  - before: Returns the floor layout of a plan (floors, rooms, walls, doors, windows, furniture in cm), the rooms derived from it (area, length × width, wet, level) for recalc_plan, and corners: the corner letters shown on the plan (room i has letters 4i..4i+3 clockwise from top-left: A B C D, E F G H…) with coordinates and side lengths, so «wall A-B of the kitchen» means the same to you and the user.
  - after: Returns the floor layout of a plan (floors, rooms, walls, doors, windows, furniture in cm), the rooms derived from it (area, length × width, wet, level) for recalc_plan, and corners: the corner letters shown on the plan (a rectangle has 4 letters clockwise from top-left: A B C D; a polygon room has one letter per vertex, clockwise from its top-most-left vertex; letters continue from room to room: E F G H…) with coordinates and side lengths, so «wall A-B of the kitchen» means the same to you and the user.
- 2026-11-29 `save_layout` changed (description) no new version (still 0.14.0)
  - before: Saves the floor layout of a plan (shown in the plan's 🏠 Layout tab, where the user drags furniture). Coordinates in cm from the top-left inner corner of each floor; x to the right, y down. Per floor: name, W, H (inner size), height_cm (ceiling), rooms [{name, label (area text), x, y, w, h, wet, block (stairs/technical, not a room), finish tiles|spc|none}], walls [{x,y,w,h}] (inner walls as rectangles), doors [{x,y,len,v,hinge,swing,open}] (v: true = in a vertical wall, opening runs down from y; false = horizontal wall, runs right from x; hinge "start" (default, at x,y) or "end"; swing 1 = opens toward +x/+y, -1 = toward -x/-y; open false = shown closed; the user edits these in the widget), windows [{x,y,len,v,label,sill_cm,height_cm}] on the outer edge (x=0 / x=W / y=0 / y=H), fixed [{name,x,y,w,h}] (stairs, shower), furniture [{name,x,y,w,h,height_cm,elev_cm,kind,type}] (type = 3D/2D model id: sofa, sofa_corner, armchair, coffee_table, tv_stand, table, chair, kitchen, island, bed, nightstand, wardrobe, dresser, desk, shelf, toilet, toilet_wall, bidet, sink (two basins from 110 cm), kitchen_sink, kitchen_oven (oven housing base unit), range (freestanding oven with cooktop), kitchen_wall (wall unit), kitchen_tall (tall unit / fridge housing), bathtub, shower, shower_walkin, fridge, washer, dryer, dishwasher, oven, hob, hood, microwave, boiler, water_heater, tv, ac, radiator, towel_radiator, robot; omitted = guessed from the name; the back of the model faces the nearest wall) — furniture and appliances in one list: kind "appliance" for equipment (fridge, washer, dishwasher, oven, hob, hood, boiler, water heater, TV, air conditioner, radiator), height_cm = the item's own height, elev_cm = how high it is mounted above the floor (wall TV ≈100, boiler ≈120, hood ≈150, AC ≈220, hob on the counter 90); give height_cm for every item. presets [{name, items:[same fields]}] (ready furniture variants). Build it from a drawing or photos of the floor plan; names in the user's language. Merging: floors are matched by position (or index); a floor you send replaces the fields you give, other fields and floors stay — so to move furniture send only [{index, furniture}]. replace: true replaces the whole layout. The open plan picks it up within a minute. Returns rooms derived from the layout — pass them to recalc_plan if the user wants materials recalculated from the layout.
  - after: Saves the floor layout of a plan (shown in the plan's 🏠 Layout tab, where the user drags furniture). Coordinates in cm from the top-left inner corner of each floor; x to the right, y down. Per floor: name, W, H (inner size), height_cm (ceiling), rooms [{name, label (area text), x, y, w, h, wet, block (stairs/technical, not a room), finish tiles|spc|none, poly}] (NON-RECTANGULAR rooms: give poly = [[x,y],...] the outline vertices in cm (3–40 points, any order/direction; x, y, w, h are then computed as the bounding box). L-, T-, U-shaped rooms, bays and angled walls are ONE room with a poly, never several rectangles; the area for recalc is the polygon area, wall length from its perimeter. Corner letters follow the vertices clockwise starting from the top-most (then left-most) one, so a room with n vertices uses n letters), walls [{x,y,w,h}] (inner walls as rectangles), doors [{x,y,len,v,hinge,swing,open}] (v: true = in a vertical wall, opening runs down from y; false = horizontal wall, runs right from x; hinge "start" (default, at x,y) or "end"; swing 1 = opens toward +x/+y, -1 = toward -x/-y; open false = shown closed; the user edits these in the widget), windows [{x,y,len,v,label,sill_cm,height_cm}] on the outer edge (x=0 / x=W / y=0 / y=H), fixed [{name,x,y,w,h}] (stairs, shower), furniture [{name,x,y,w,h,height_cm,elev_cm,kind,type,rot}] (rot = degrees clockwise, -180..180, rotates the item around the centre of its x,y,w,h box; omitted = 0; the back of a rotated item is its own top edge) (type = 3D/2D model id: sofa, sofa_corner, armchair, coffee_table, tv_stand, table, chair, kitchen, island, bed, nightstand, wardrobe, dresser, desk, shelf, toilet, toilet_wall, bidet, sink (two basins from 110 cm), kitchen_sink, kitchen_oven (oven housing base unit), range (freestanding oven with cooktop), kitchen_wall (wall unit), kitchen_tall (tall unit / fridge housing), bathtub, shower, shower_walkin, fridge, washer, dryer, dishwasher, oven, hob, hood, microwave, boiler, water_heater, tv, ac, radiator, towel_radiator, robot; omitted = guessed from the name; the back of the model faces the nearest wall) — furniture and appliances in one list: kind "appliance" for equipment (fridge, washer, dishwasher, oven, hob, hood, boiler, water heater, TV, air conditioner, radiator), height_cm = the item's own height, elev_cm = how high it is mounted above the floor (wall TV ≈100, boiler ≈120, hood ≈150, AC ≈220, hob on the counter 90); give height_cm for every item. presets [{name, items:[same fields]}] (ready furniture variants). Build it from a drawing or photos of the floor plan; names in the user's language. Merging: floors are matched by position (or index); a floor you send replaces the fields you give, other fields and floors stay — so to move furniture send only [{index, furniture}]. replace: true replaces the whole layout. The open plan picks it up within a minute. Returns rooms derived from the layout — pass them to recalc_plan if the user wants materials recalculated from the layout.
- 2026-11-22 `save_layout` changed (description)
  - before: Saves the floor layout of a plan (shown in the plan's 🏠 Layout tab, where the user drags furniture). Coordinates in cm from the top-left inner corner of each floor; x to the right, y down. Per floor: name, W, H (inner size), height_cm (ceiling), rooms [{name, label (area text), x, y, w, h, wet, block (stairs/technical, not a room), finish tiles|spc|none}], walls [{x,y,w,h}] (inner walls as rectangles), doors [{x,y,len,v,hinge,swing,open}] (v: true = in a vertical wall, opening runs down from y; false = horizontal wall, runs right from x; hinge "start" (default, at x,y) or "end"; swing 1 = opens toward +x/+y, -1 = toward -x/-y; open false = shown closed; the user edits these in the widget), windows [{x,y,len,v,label,sill_cm,height_cm}] on the outer edge (x=0 / x=W / y=0 / y=H), fixed [{name,x,y,w,h}] (stairs, shower), furniture [{name,x,y,w,h,height_cm,elev_cm,kind,type}] (type = 3D/2D model id: sofa, sofa_corner, armchair, coffee_table, tv_stand, table, chair, kitchen, island, bed, nightstand, wardrobe, dresser, desk, shelf, toilet, sink, bathtub, shower, fridge, washer, dryer, dishwasher, oven, hob, hood, microwave, boiler, water_heater, tv, ac, radiator, towel_radiator, robot; omitted = guessed from the name; the back of the model faces the nearest wall) — furniture and appliances in one list: kind "appliance" for equipment (fridge, washer, dishwasher, oven, hob, hood, boiler, water heater, TV, air conditioner, radiator), height_cm = the item's own height, elev_cm = how high it is mounted above the floor (wall TV ≈100, boiler ≈120, hood ≈150, AC ≈220, hob on the counter 90); give height_cm for every item. presets [{name, items:[same fields]}] (ready furniture variants). Build it from a drawing or photos of the floor plan; names in the user's language. Merging: floors are matched by position (or index); a floor you send replaces the fields you give, other fields and floors stay — so to move furniture send only [{index, furniture}]. replace: true replaces the whole layout. The open plan picks it up within a minute. Returns rooms derived from the layout — pass them to recalc_plan if the user wants materials recalculated from the layout.
  - after: Saves the floor layout of a plan (shown in the plan's 🏠 Layout tab, where the user drags furniture). Coordinates in cm from the top-left inner corner of each floor; x to the right, y down. Per floor: name, W, H (inner size), height_cm (ceiling), rooms [{name, label (area text), x, y, w, h, wet, block (stairs/technical, not a room), finish tiles|spc|none}], walls [{x,y,w,h}] (inner walls as rectangles), doors [{x,y,len,v,hinge,swing,open}] (v: true = in a vertical wall, opening runs down from y; false = horizontal wall, runs right from x; hinge "start" (default, at x,y) or "end"; swing 1 = opens toward +x/+y, -1 = toward -x/-y; open false = shown closed; the user edits these in the widget), windows [{x,y,len,v,label,sill_cm,height_cm}] on the outer edge (x=0 / x=W / y=0 / y=H), fixed [{name,x,y,w,h}] (stairs, shower), furniture [{name,x,y,w,h,height_cm,elev_cm,kind,type}] (type = 3D/2D model id: sofa, sofa_corner, armchair, coffee_table, tv_stand, table, chair, kitchen, island, bed, nightstand, wardrobe, dresser, desk, shelf, toilet, toilet_wall, bidet, sink (two basins from 110 cm), kitchen_sink, kitchen_oven (oven housing base unit), range (freestanding oven with cooktop), kitchen_wall (wall unit), kitchen_tall (tall unit / fridge housing), bathtub, shower, shower_walkin, fridge, washer, dryer, dishwasher, oven, hob, hood, microwave, boiler, water_heater, tv, ac, radiator, towel_radiator, robot; omitted = guessed from the name; the back of the model faces the nearest wall) — furniture and appliances in one list: kind "appliance" for equipment (fridge, washer, dishwasher, oven, hob, hood, boiler, water heater, TV, air conditioner, radiator), height_cm = the item's own height, elev_cm = how high it is mounted above the floor (wall TV ≈100, boiler ≈120, hood ≈150, AC ≈220, hob on the counter 90); give height_cm for every item. presets [{name, items:[same fields]}] (ready furniture variants). Build it from a drawing or photos of the floor plan; names in the user's language. Merging: floors are matched by position (or index); a floor you send replaces the fields you give, other fields and floors stay — so to move furniture send only [{index, furniture}]. replace: true replaces the whole layout. The open plan picks it up within a minute. Returns rooms derived from the layout — pass them to recalc_plan if the user wants materials recalculated from the layout.

Full history: https://api.protogrid.dev/v1/servers/io.github.Vutik%2Fremont/changes

## Remotes

- https://remont-mcp.wrpzdm9jmt.workers.dev/mcp (streamable-http, auth none, reachable true, uptime30d 0.9677419)

## Packages

_none_

## Tools (35)

- `add_utils_to_plan`: Turns the parts list of the utilities layer (pipes, fittings, insulation, clamps, cables, manifolds, radiators — see get_utils bom) into material lines of a stage «Utilities» in the plan, named in the plan's language, with quantities and units (pcs / m); lines without a price. Re-running updates quantities of lines it created earlier (key starts with ut:), adds new ones and removes those no longer needed, and never touches prices you saved. Afterwards find store prices for the lines in the user's country (the returned lines have name, key, qty) and save them in the user's plan with update_plan_items (match by key or name; set price_min, url, store) — real store links only, as usual.
- `calculate_materials`: Calculates material quantities with waste allowance per room. Returns material keys and search queries in the language of the country's stores.
- `delete_plan`: Deletes a saved plan. Only on the user's explicit request and after confirmation.
- `find_cached_prices`: Cached prices by material keys. City first, then the whole country. A price older than 1 days is marked stale — it should be re-checked.
- `get_catalog`: Popular materials and tools by work type for the country: the base list and specific products (brand, tier, price, link) that were already found and saved. Sorted by popularity. Use before searching prices and when the user asks to replace a material or tool.
- `get_country_profile`: Country profile: currency, search language, stores for price search, specialist rules. Call first.
- `get_coverage`: Data coverage report for countries: which reference prices, real labor rates, catalog products (with links) and store prices exist in the database, what is missing or stale. Use it to decide what to look up and save (save_catalog_items, save_prices, save_labor_rates) — e.g. when asked to fill the database for a country. Without country — a short summary for all countries.
- `get_layout`: Returns the floor layout of a plan (floors, rooms, walls, doors, windows, furniture in cm), the rooms derived from it (area, length × width, wet, level) for recalc_plan, and corners: the corner letters shown on the plan (a rectangle has 4 letters clockwise from top-left: A B C D; a polygon room has one letter per vertex, clockwise from its top-most-left vertex; letters continue from room to room: E F G H…) with coordinates and side lengths, so «wall A-B of the kitchen» means the same to you and the user.
- `get_plan`: Returns the full current state of a plan as JSON: rooms (calc_input) and calculation bases, stages with tasks (done or not), who does each stage and contractor labour, materials with qty, unit, calculated qty and formula, prices, packs, store, link, selected tier/option, tools (buy/rent, owned), totals per stage and grand total with 10% reserve, plus an audit list (missing stages or prices, duplicates, suspicious quantities, old prices). Everything the user changed in the plan widget is included. Use it to check calculations, answer questions about the plan or before editing it. Pass view_id (from show_renovation_plan / open_plan) or user_code + plan_id.
- `get_ui_labels`: English widget texts (form and plan). Translate the values into the user's language and pass them as labels.
- `get_utils`: Returns the utilities layer (pipes, cables, ducts, connectors) of a plan's layout per floor, with the room names and corner letters (wall "A-B"), plus the rooms' sizes so you can place items. Items: lines {id, kind, wall|surface, path, diam_mm, slope_pct, z, zs}, points {t:"pt", at, type}, derived connectors {t:"link", from, joined}.
- `get_work_order`: Renovation stages in the right order with tasks, drying times and where a specialist is needed.
- `list_layout_history`: Lists the saved earlier versions of a plan's floor layout (rooms, walls, doors, windows, furniture, pipes and cables), newest first: n (0 = the version before the latest change), when, what changed it (save_layout, save_utils, furniture, restore) and counts. The server keeps the last 20 versions for 90 days; several quick furniture or utilities edits in a row share one version. Use it when the user wants to undo a change to the layout, then call restore_layout with n.
- `list_plans`: List of the user's saved plans by their personal code. Each plan has title, saved_at and (for plans saved after this field was added) country, currency, area_m2, rooms, stages, total_min/total_max (grand total incl. 10% reserve at save time). Older plans may lack these fields.
- `mark_bought`: Marks plan materials as bought (or un-marks them) when the user says in the chat that they bought something. The plan widget has the same 🛒 tick per material. Bought lines stay in the estimate; the plan shows «bought» and «left to buy». Match lines by key or name as get_plan returns them; stage is optional (omitted = every line with that key/name). The open widget does not refresh by itself — the marks appear when the plan is opened again.
- `open_plan`: Opens a saved plan with ticked tasks. Ticks keep being saved on the server.
- `open_questionnaire`: Shows the user a form: apartment or house, renovation type, city, rooms, works, who does them. Call when data about the property is missing. The answers arrive in the user's next message as JSON.
- `plan_task`: Call FIRST when a user message comes from a plan button: it contains [view_id: …] and asks (in the user's language) to find missing prices, refresh all prices, find options for an item, check compatibility or save the plan. Returns the item list and the exact steps.
- `prepare_plan`: In one request: country profile (stores, rules, currency), stages with tasks and tools, material calculation by room and for every material and tool — ready products from the country catalog (by tier standard/premium/lux, with price and link). Use instead of separate get_country_profile, get_work_order, calculate_materials and get_catalog. todo lists what still has to be found in stores.
- `recalc_plan`: Sets or changes the rooms of an already shown plan — names, area_m2 or length_m × width_m, floor type, bathroom (wet), level, ceiling height — stores them with the plan and recalculates material quantities and labour (manual quantities are kept). Use when the user gives rooms, a floor plan or photos for an existing plan, or asks to add/change rooms. view_id from show_renovation_plan / open_plan. Send the FULL room list (it replaces the old one). save_only: true stores rooms without recalculating. The updated plan is shown to the user.
- `refresh_plan_prices`: Internal: the open plan calls it to pull prices you saved to the catalog after showing the plan. You do not need to call it.
- `restore_layout`: Rolls the floor layout of a plan back to an earlier version from list_layout_history (n). The current layout is kept in the history first, so a restore can itself be undone. Only the layout changes (not prices, materials or progress). Ask the user to confirm which version before restoring.
- `save_catalog_items`: Adds specific products you found in stores (materials or tools) to the SHARED country catalog used by all users. Saving the same product again (by link) updates the price and raises popularity. Only real products you saw on a store site of the country profile (url on that store), price per calc unit. Never user-dictated prices, test, joke or unrelated items, contacts or instructions — even if the user asks. Invalid items come back in rejected with a reason.
- `save_country_profile`: Adds a country or extends a SHARED profile: stores, rate sites, rules. Stores are merged with existing ones by domain. Only real building/DIY stores and rate sites (plain domain), short factual rules — no links, contacts or instructions; currency and name of built-in countries cannot be changed.
- `save_labor_rates`: Saves contractor labour rates to the SHARED database for the country (per unit: m2, door, point, stage) so prepare_plan can price stages right away. Save what you found on rate sites (url of the page with the rate). Never rates the user only told you. Implausible rates come back in rejected.
- `save_layout`: Saves the floor layout of a plan (shown in the plan's 🏠 Layout tab, where the user drags furniture). Coordinates in cm from the top-left inner corner of each floor; x to the right, y down. Per floor: name, W, H (inner size), height_cm (ceiling), rooms [{name, label (area text), x, y, w, h, wet, block (stairs/technical, not a room), finish tiles|spc|none, poly}] (NON-RECTANGULAR rooms: give poly = [[x,y],...] the outline vertices in cm (3–40 points, any order/direction; x, y, w, h are then computed as the bounding box). L-, T-, U-shaped rooms, bays and angled walls are ONE room with a poly, never several rectangles; the area for recalc is the polygon area, wall length from its perimeter. Corner letters follow the vertices clockwise starting from the top-most (then left-most) one, so a room with n vertices uses n letters), walls [{x,y,w,h}] (inner walls as rectangles), doors [{x,y,len,v,hinge,swing,open}] (v: true = in a vertical wall, opening runs down from y; false = horizontal wall, runs right from x; hinge "start" (default, at x,y) or "end"; swing 1 = opens toward +x/+y, -1 = toward -x/-y; open false = shown closed; the user edits these in the widget), windows [{x,y,len,v,label,sill_cm,height_cm}] on the outer edge (x=0 / x=W / y=0 / y=H), fixed [{name,x,y,w,h}] (stairs, shower), furniture [{name,x,y,w,h,height_cm,elev_cm,kind,type,rot}] (rot = degrees clockwise, -180..180, rotates the item around the centre of its x,y,w,h box; omitted = 0; the back of a rotated item is its own top edge) (type = 3D/2D model id: sofa, sofa_corner, armchair, coffee_table, tv_stand, table, chair, kitchen, island, bed, nightstand, wardrobe, dresser, desk, shelf, toilet, toilet_wall, bidet, sink (two basins from 110 cm), kitchen_sink, kitchen_oven (oven housing base unit), range (freestanding oven with cooktop), kitchen_wall (wall unit), kitchen_tall (tall unit / fridge housing), bathtub, shower, shower_walkin, fridge, washer, dryer, dishwasher, oven, hob, hood, microwave, boiler, water_heater, tv, ac, radiator, towel_radiator, robot; omitted = guessed from the name; the back of the model faces the nearest wall) — furniture and appliances in one list: kind "appliance" for equipment (fridge, washer, dishwasher, oven, hob, hood, boiler, water heater, TV, air conditioner, radiator), height_cm = the item's own height, elev_cm = how high it is mounted above the floor (wall TV ≈100, boiler ≈120, hood ≈150, AC ≈220, hob on the counter 90); give height_cm for every item. presets [{name, items:[same fields]}] (ready furniture variants). Build it from a drawing or photos of the floor plan; names in the user's language. Merging: floors are matched by position (or index); a floor you send replaces the fields you give, other fields and floors stay — so to move furniture send only [{index, furniture}]. replace: true replaces the whole layout. The open plan picks it up within a minute. Returns rooms derived from the layout — pass them to recalc_plan if the user wants materials recalculated from the layout.
- `save_layout_furniture`: Internal: the plan widget saves furniture moved by the user. You do not need to call it.
- `save_plan`: Saves the plan on the server, only if the user asked to save it. Without user_code it creates a new personal code and returns it — show the code to the user and ask them to write it down: with it they can open their plans in any chat. Nobody else needs the code and it cannot be recovered.
- `save_preferences`: Saves the user's preferences under their personal code so they are selected by default in every new plan: tools they own and preferred non-consumable products (e.g. a tile brand, a specific boiler, a tap). Call when the user says what they own or which product they always want. Ticking 'have' and choosing an option in a saved plan updates preferences automatically. With no changes it just returns the current preferences.
- `save_prices`: Saves prices found in stores to the SHARED price cache (used by all users). Only prices you saw on a store site of the country profile, with the product url; price per material unit from calculate_materials, in the country's currency. Never prices the user only told you. Invalid items come back in rejected with a reason.
- `save_progress`: Saves ticked tasks of the plan. Called by the plan widget.
- `save_utils`: Saves the utilities layer (pipes, cables, ducts) of a plan's floor layout: lines and points drawn on a SURFACE of a room — a wall, the floor or the ceiling — stored separately per surface so the user can show/hide them by kind, room or wall. Requires a layout (save_layout first; get_layout gives the corner letters). Items: {kind, ...} with kind water_cold|water_hot|sewage|heating|floor_heating|gas|power|low_voltage|vent. Wall: wall:"A-B" (corner letters of the room, clockwise: A-B top, B-C right, C-D bottom, D-A left) and coordinates [u, v] = cm from the first letter's corner along the wall / cm above the floor. Floor or ceiling: surface:"floor"|"ceiling" and [x, y] plan coordinates in cm (room is found automatically or give room = index), z = height above the floor (default 0 / ceiling height), slope_pct = how much the line drops per 100 cm along the path (default 2 for sewage). Line: {kind, wall|surface, path:[[a,b],…], diam_mm (standard series per kind in mm: sewage 32/40/50/75/110/160, water 16/20/25/32/40/50/63, heating 16–40, floor heating 16/17/20, gas 15/20/25/32, vent 100–250; a non-standard value is rounded to the nearest standard one in the parts list), size_mm:[w,h] (rectangular duct), note}; path order = flow direction (sewage runs downhill). Power cable (kind power): use socket|light|switch|appliance|feed and sect_mm2 1.5|2.5|4|6|10|16 (3 cores; default by use: light/switch 1.5, socket 2.5, appliance 4, feed 6; without sect_mm2 the section follows the use automatically). Points of any kind (sockets, switches, lights, toilet, sink, bath, shower, washer, tap, radiator, valve, grille, junction, boiler, manifold) snap onto the nearest run of the SAME kind on the same surface within 20 cm (`on`, `u`); a line without diam_mm gets its diameter automatically from the points attached (toilet 110 / sink 40 / shower 50 sewage; tap 16 water; radiator 16 heating …) and keeps it in sync. Sockets, switches and lights of kind power are snapped onto the nearest power cable of the same surface within 20 cm (`on` = cable id, `u` = position along it); a cable without use takes it from the first point attached. Point: {t:"pt", kind, type: socket|switch|light|toilet|sink|bath|shower|washer|tap|manifold|panel|riser|inspection|valve|grille|junction|other, at:[a,b], note}. When a line ends in a wall corner, at the floor or at the ceiling, the server adds a connector (t:"link") on the neighbouring surface at the same spot — do not send links; continue the run from it on the other surface. Merging: items with an existing id replace it, items without id are added, remove:[ids] deletes, replace:true replaces the whole floor's utilities. Returns warnings (e.g. sewage slope under 1%), rejected items with the reason and bom: the parts list computed from the geometry (pipes in sticks, elbows by angle — a horizontal 90° turn of sewage becomes two 45° bends, tees (45° for sewage), reducers, couplings, clamps, cables, points) with bom_warnings (gaps between runs, pipe narrowing downstream, branch wider than the main). Units cm; precision 1 mm (0.1 cm).
- `save_view_progress`: Internal: the open plan saves checklist ticks and switches. You do not need to call it.
- `show_renovation_plan`: Shows the user an interactive plan: stages with a checklist and a materials table with the estimate. All texts in the user's language.
- `update_plan_items`: Changes an already shown plan without showing it again: replace a material or tool, set brand/price/link/quantity, add or remove a line, add a stage or items to a stage, rename. The open plan updates itself within seconds; a saved plan (save_plan) is updated too. view_id comes from the show_renovation_plan response.

## Prompts and resources

### Resources (2)

- `` ui://remont/form-live.html ``
- `` ui://remont/plan-live.html ``
