Skip to main content
Glama

Start a draft order

start_order

Starts a draft order for the building the user confirmed (building_ref from find_building), for either a Verbrauchsausweis (certificate_type 'verbrauch', default) or a Bedarfsausweis (certificate_type 'bedarf'). Orders and charges nothing. Returns order_id and order_token, which every later tool needs; the token opens only this order, so keep it private and never show it to anyone. Also returns what our 3D building model and the cadastre already say about the building (estimates the customer can correct), open points, and for a Bedarfsausweis the applicable building/plant questions (bedarf_questions) and photo tasks (photo_tasks).

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": {
      "building_ref": "<building_ref>"
    },
    "name": "start_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
building_refYesthe building_ref find_building returned for the building the user confirmed
certificate_typeNoverbrauch (Verbrauchsausweis, default) or bedarf (Bedarfsausweis); can also be switched later with update_order

Output Schema

NameRequiredDescriptionDefault
orderYes
order_idYes
next_stepYes
open_pointsYes
order_tokenYesopens only this order; keep it private
photo_tasksNo
order_numberYes
bedarf_questionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / certificate_type
      Added value: +{
      +  "description": "verbrauch (Verbrauchsausweis, default) or bedarf (Bedarfsausweis); can also be switched later with update_order",
      +  "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.4/5.0
Behavior5/5

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

Goes well beyond the annotations by stating that the call orders and charges nothing, that it produces an order_id plus an order_token, and that the token is scoped to this single order and must never be shown to the user. The security handling of the token is exactly the kind of disclosure annotations cannot convey, and nothing contradicts readOnlyHint=false / destructiveHint=false.

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?

Front-loaded with the action and the key constraint, and no filler words. The closing sentence packs a long list of return payload items that an output schema already covers, which is the only excess.

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

Completeness5/5

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

For a non-destructive but state-creating tool with two parameters and an output schema, everything an agent needs is present: prerequisite, cost behavior, credentials handling, and what comes back. Nothing material is left to inference.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents both parameters, including the verbrauch default and the update_order escape hatch, so the description largely restates it. It adds only the reinforcement that building_ref must be the confirmed building returned by find_building.

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?

States a specific verb and resource ("Starts a draft order") scoped to the confirmed building, and immediately distinguishes the two certificate variants. It also names find_building as the source of building_ref, so the agent can place it in the workflow without opening another schema.

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?

Prerequisite is explicit (building_ref from find_building for the building the user confirmed), and it points to update_order as the way to switch certificate_type later. It does not spell out a when-not-to-use condition, but the ordering and alternatives are clear enough to route correctly.

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