Skip to main content
Glama

Enter order data

update_order
Idempotent

Enters or corrects data of a draft order: facts about the building (including facts.certificate_type to switch between 'verbrauch' and 'bedarf'), the heating, consumption periods as printed on the bills (for Verbrauchsausweis, in the bill's unit: kWh; m3 of gas with Brennwert and Zustandszahl; litres of oil; kg of pellets; we convert — always the whole building's Gesamtverbrauch, never one flat's share), or bedarf building/plant answers (for Bedarfsausweis: heating location, emitters, extensions, windows, PV/solar, etc. — no U-values or heating bills needed). Send only what you know: fields left out stay as they are, and consumption.periods or bedarf.windows replaces that list. Synonyms such as 'Gas' or 'heat pump' are accepted. Values are marked as entered by an assistant; the customer sees and confirms them before ordering. Returns the order, open points, and (for Bedarfsausweis) updated bedarf_questions and photo_tasks. Orders nothing.

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": {
      "order_id": "<order_id>",
      "order_token": "<order_token>"
    },
    "name": "update_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
factsNo
bedarfNo
heatingNo
order_idYesthe order_id start_order returned
consumptionNo
order_tokenYesthe order_token start_order returned; it opens only this order, keep it private

Output Schema

NameRequiredDescriptionDefault
hintsNowhat looks odd without blocking, in German; check the values with the user
orderYes
open_pointsYes
photo_tasksNo
bedarf_questionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / bedarf
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "attic_partly": {
      +      "description": "if attic is unbeheizt but partly heated: approximate heated share in percent (25, 50, or 75; 0 if unknown)",
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "basement_partly": {
      +      "description": "if basement is unbeheizt but partly heated: approximate heated share in percent (25, 50, or 75; 0 if unknown)",
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "buffer": {
      +      "description": "for pellet/wood-chip boilers: true if a buffer tank (Pufferspeicher) stands next to the boiler",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "cooling_kind": {
      +      "description": "when heating.cooling is strom: split, multisplit or waermepumpe",
      +      "type": "string"
      +    },
      +    "cooling_year": {
      +      "description": "year the air conditioning was installed",
      +      "type": "integer"
      +    },
      +    "electric_kind": {
      +      "description": "for electric heating (strom_direkt): speicher (night-storage), direkt (convectors/infrared) or unbekannt",
      +      "type": "string"
      +    },
      +    "emitters": {
      +      "description": "heat emitters: heizkoerper (radiators), fussbodenheizung (underfloor) or beides (both)",
      +      "type": "string"
      +    },
      +    "extensions": {
      +      "description": "extensions or added storeys (Anbauten/Aufstockungen): keiner, einer or mehrere",
      +      "type": "string"
      +    },
      +    "floor_heating_share": {
      +      "description": "when emitters is beides: percentage of heated area with underfloor heating (1–100)",
      +      "type": "integer"
      +    },
      +    "generator_space": {
      +      "description": "where the heating generator stands: keller, dach or wohnung",
      +      "type": "string"
      +    },
      +    "heater_count": {
      +      "description": "for electric heating: approximate number of heaters",
      +      "type": "integer"
      +    },
      +    "heater_fans": {
      +      "description": "for night-storage heaters: true if they have fans",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "heaters": {
      +      "description": "number of heating systems: eine (one), eine_ofen (one plus stove) or mehrere (multiple)",
      +      "type": "string"
      +    },
      +    "heating_output_kw": {
      +      "description": "rated output of primary boiler in kW, if known from type plate",
      +      "type": "number"
      +    },
      +    "listed": {
      +      "description": "true if the building is a listed monument (Denkmalschutz)",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "per_flat": {
      +      "description": "true if each flat has its own heating system (Etagenheizung)",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "pool": {
      +      "description": "true if there is an indoor swimming pool (sauna is false)",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "pv_modules": {
      +      "description": "number of PV modules, if peak output is unknown",
      +      "type": "integer"
      +    },
      +    "pv_peak_kwp": {
      +      "description": "when heating.renewables includes photovoltaik: rated peak output in kWp",
      +      "type": "number"
      +    },
      +    "pv_side": {
      +      "description": "roof orientation of PV modules: N, NO, O, SO, S, SW, W, NW or flach",
      +      "type": "string"
      +    },
      +    "pv_year": {
      +      "description": "year PV system was installed",
      +      "type": "integer"
      +    },
      +    "radiators_under_windows": {
      +      "description": "true if most radiators stand under the windows",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "roof_insulated": {
      +      "description": "when attic is unbeheizt: true if the pitched roof above the loft is insulated",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "second_carrier": {
      +      "description": "fuel of second boiler: erdgas, heizoel, fluessiggas, scheitholz, holzpellets or hackschnitzel",
      +      "type": "string"
      +    },
      +    "second_heating": {
      +      "description": "when heaters is mehrere: kessel, holzkessel, waermepumpe or anderes",
      +      "type": "string"
      +    },
      +    "second_output_kw": {
      +      "description": "rated output of second boiler in kW, if known from type plate",
      +      "type": "number"
      +    },
      +    "second_year": {
      +      "description": "year the second heating system was installed",
      +      "type": "integer"
      +    },
      +    "simple_shape": {
      +      "description": "true if footprint is rectangular or L-shaped (only asked when 3D height was estimated)",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "solar_area_m2": {
      +      "description": "solar thermal collector area in m², if known",
      +      "type": "number"
      +    },
      +    "solar_collector": {
      +      "description": "solar collector type: flach (flat plate) or roehre (evacuated tube)",
      +      "type": "string"
      +    },
      +    "solar_panels": {
      +      "description": "number of solar thermal collector panels, if known",
      +      "type": "integer"
      +    },
      +    "solar_use": {
      +      "description": "when heating.renewables includes solarthermie: warmwasser or heizung (water + heating)",
      +      "type": "string"
      +    },
      +    "solar_year": {
      +      "description": "year solar thermal system was installed",
      +      "type": "integer"
      +    },
      +    "store_space": {
      +      "description": "where the hot-water tank stands: keller, dach, wohnung or keiner (no tank, e.g. Kombitherme)",
      +      "type": "string"
      +    },
      +    "store_with_generator": {
      +      "description": "true if hot-water tank is in the same room as the heating generator",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "stove_kind": {
      +      "description": "when heaters is eine_ofen: kaminofen, kachelofen, pelletofen or gasoel",
      +      "type": "string"
      +    },
      +    "stove_water_jacket": {
      +      "description": "when heaters is eine_ofen: true if stove is connected to heating/hot water (Wassertasche)",
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "ventilation_kind": {
      +      "description": "when heating.ventilation is anlage_wrg: zentral, dezentral or einzelraeume",
      +      "type": "string"
      +    },
      +    "ventilation_space": {
      +      "description": "when ventilation_kind is zentral: keller, dach or wohnung",
      +      "type": "string"
      +    },
      +    "ventilation_year": {
      +      "description": "year the ventilation system was installed",
      +      "type": "integer"
      +    },
      +    "windows": {
      +      "description": "optional list of distinct window types (frame, glazing, year); replaces the list",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "frame": {
      +            "description": "window frame material: kunststoff, holz or metall",
      +            "type": "string"
      +          },
      +          "glazing": {
      +            "description": "window glazing: einfach, zweifach or dreifach",
      +            "type": "string"
      +          },
      +          "year": {
      +            "description": "approximate year the windows were installed, 0 if unknown",
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    }
      +  },
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedInput schema / properties / facts / properties / certificate_type
      Added value: +{
      +  "description": "verbrauch (Verbrauchsausweis) or bedarf (Bedarfsausweis); switches the order's certificate type",
      +  "type": "string"
      +}
    • addedInput schema / properties / facts / properties / modernised_answer
      Added value: +{
      +  "description": "explicit answer when modernised is empty: nichts (nothing renewed since built) or unbekannt (unknown)",
      +  "type": "string"
      +}
    • addedOutput schema / properties / bedarf_questions
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "assume": {
      +        "description": "default assumed when left unanswered",
      +        "type": "string"
      +      },
      +      "current": {
      +        "type": "string"
      +      },
      +      "field": {
      +        "description": "the update_order field name, e.g. bedarf.generator_space or bedarf.emitters",
      +        "type": "string"
      +      },
      +      "options": {
      +        "description": "allowed values; omit for numbers or years",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "required": {
      +        "description": "true if no default stands in and the user must answer it",
      +        "type": "boolean"
      +      },
      +      "why": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "required"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / order / properties / bedarf
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "attic_partly": {
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "basement_partly": {
      +      "type": [
      +        "null",
      +        "integer"
      +      ]
      +    },
      +    "buffer": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "cooling_kind": {
      +      "type": "string"
      +    },
      +    "cooling_year": {
      +      "type": "integer"
      +    },
      +    "electric_kind": {
      +      "type": "string"
      +    },
      +    "emitters": {
      +      "type": "string"
      +    },
      +    "extensions": {
      +      "type": "string"
      +    },
      +    "floor_heating_share": {
      +      "type": "integer"
      +    },
      +    "generator_space": {
      +      "type": "string"
      +    },
      +    "heater_count": {
      +      "type": "integer"
      +    },
      +    "heater_fans": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "heaters": {
      +      "type": "string"
      +    },
      +    "heating_output_kw": {
      +      "type": "number"
      +    },
      +    "listed": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "per_flat": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "pool": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "pv_modules": {
      +      "type": "integer"
      +    },
      +    "pv_peak_kwp": {
      +      "type": "number"
      +    },
      +    "pv_side": {
      +      "type": "string"
      +    },
      +    "pv_year": {
      +      "type": "integer"
      +    },
      +    "radiators_under_windows": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "roof_insulated": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "second_carrier": {
      +      "type": "string"
      +    },
      +    "second_heating": {
      +      "type": "string"
      +    },
      +    "second_output_kw": {
      +      "type": "number"
      +    },
      +    "second_year": {
      +      "type": "integer"
      +    },
      +    "simple_shape": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "solar_area_m2": {
      +      "type": "number"
      +    },
      +    "solar_collector": {
      +      "type": "string"
      +    },
      +    "solar_panels": {
      +      "type": "integer"
      +    },
      +    "solar_use": {
      +      "type": "string"
      +    },
      +    "solar_year": {
      +      "type": "integer"
      +    },
      +    "sources": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "store_space": {
      +      "type": "string"
      +    },
      +    "store_with_generator": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "stove_kind": {
      +      "type": "string"
      +    },
      +    "stove_water_jacket": {
      +      "type": [
      +        "null",
      +        "boolean"
      +      ]
      +    },
      +    "ventilation_kind": {
      +      "type": "string"
      +    },
      +    "ventilation_space": {
      +      "type": "string"
      +    },
      +    "ventilation_year": {
      +      "type": "integer"
      +    },
      +    "windows": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "frame": {
      +            "description": "window frame material: kunststoff, holz or metall",
      +            "type": "string"
      +          },
      +          "glazing": {
      +            "description": "window glazing: einfach, zweifach or dreifach",
      +            "type": "string"
      +          },
      +          "year": {
      +            "description": "approximate year the windows were installed, 0 if unknown",
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    }
      +  },
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedOutput schema / properties / order / properties / certificate_type
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / order / properties / documents / items / properties / sector
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / order / properties / facts / properties / certificate_type
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / order / properties / facts / properties / modernised_answer
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / order / required
      Previous value: -[
      -  "order_id",
      -  "order_number",
      -  "status",
      -  "address",
      -  "facts",
      -  "heating",
      -  "consumption",
      -  "documents"
      -]New value: +[
      +  "order_id",
      +  "order_number",
      +  "certificate_type",
      +  "status",
      +  "address",
      +  "facts",
      +  "heating",
      +  "consumption",
      +  "documents"
      +]
    • addedOutput schema / properties / photo_tasks
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "done": {
      +        "type": "boolean"
      +      },
      +      "hint": {
      +        "type": "string"
      +      },
      +      "kind": {
      +        "description": "document kind to pass to add_document, e.g. fassade, fenster, heizung",
      +        "type": "string"
      +      },
      +      "sector": {
      +        "description": "for kind fassade: compass sector (N, NO, O, SO, S, SW, W, NW)",
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "title",
      +      "done"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (idempotent, non-destructive, closed-world), it discloses real semantics: partial updates leave omitted fields untouched, list fields replace rather than append, values are marked as assistant-entered and shown to the customer for confirmation, and it enumerates what is returned (order, open points, bedarf_questions, photo_tasks).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and scoping are front-loaded, and nearly every clause carries operational information (units, conversion, replacement semantics, no-ordering guarantee). The long parenthetical chains make it dense to parse, but little is genuinely redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with six top-level parameters, deep nested fact/heating/consumption objects, and an output schema, the description covers the decisions an agent must make: what to send, what to omit, how units are handled, and what comes back. Missing only edge-case handling and explicit mention of the order_token privacy constraint already stated in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%, so the description must compensate, and it does: it explains that consumption must be the whole building's Gesamtverbrauch and never one flat's share, that quantities go in the bill's unit with conversion handled (kWh, m3 gas with Brennwert and Zustandszahl, litres of oil, kg of pellets), and that certificate_type switches verbrauch/bedarf. It does not walk through the many nested bedarf fields, but the schema's per-field text covers those.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Enters or corrects data of a draft order'. It scopes the tool to draft orders and closes with 'Orders nothing', which cleanly separates it from siblings like review_order, request_confirmation, or start_order.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear conditions for use (draft order, send only what you know) and clarifies what is NOT required for each certificate type ('no U-values or heating bills needed' for Bedarf). It does not explicitly name alternative tools or state when to prefer them, which keeps it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources