Skip to main content
Glama

Boncourant

Simuler une facture résidentielle

simulate
Read-onlyIdempotent

Estimation résidentielle à partir des kWh, kVA, code postal et option, sans facture ; avec une facture extraite, appelez analyze_bill. Compare les offres évaluées au tarif réglementé, hypothèses explicites.

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>",
      "puissance_kva": "<puissance_kva>",
      "conso_annuelle_kwh": "<conso_annuelle_kwh>"
    },
    "name": "simulate"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionNoOption tarifaire, comme retournée par extract_energy_document.
postal_codeYesCode postal du logement ; demandez-le, ne l'inventez jamais.
proportion_hcNoPart HC des kWh annuels ; requise pour hp_hc seulement.
puissance_kvaYesPuissance souscrite en kVA.
conso_annuelle_kwhYesConsommation annuelle en kWh, mesurée ou déclarée.

Output Schema

NameRequiredDescriptionDefault
optionNo
reasonNoSi grounded=false : aucun montant calculé.
sourcesNoSources publiques datées, à citer.
groundedNo
next_stepNo
confidenceNo
provenanceNo
saving_eurNo
assumptionsNo
postal_codeNo
generated_atNo
puissance_kvaNo
uncertaintiesNo
recommendationNo
trv_annual_eurNo
best_offer_nameNo
catalog_versionNo
offers_comparedNo
confidence_scaleNo
best_offer_optionNoOption propre à la meilleure offre.
option_comparisonNo
simulator_versionNo
calculation_statusNo
conso_annuelle_kwhNo
best_offer_supplierNo
best_offer_annual_eurNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties
      Added value: +{
      +  "assumptions": {
      +    "items": {},
      +    "type": "array"
      +  },
      +  "best_offer_annual_eur": {
      +    "anyOf": [
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "best_offer_name": {
      +    "type": "string"
      +  },
      +  "best_offer_option": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "Option propre à la meilleure offre."
      +  },
      +  "best_offer_supplier": {
      +    "type": "string"
      +  },
      +  "calculation_status": {
      +    "anyOf": [
      +      {
      +        "enum": [
      +          "verified",
      +          "estimated",
      +          "needs_confirmation"
      +        ],
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "catalog_version": {
      +    "type": "string"
      +  },
      +  "confidence": {
      +    "anyOf": [
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "confidence_scale": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "conso_annuelle_kwh": {
      +    "type": "number"
      +  },
      +  "generated_at": {
      +    "type": "string"
      +  },
      +  "grounded": {
      +    "type": "boolean"
      +  },
      +  "next_step": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "offers_compared": {
      +    "anyOf": [
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "option": {
      +    "type": "string"
      +  },
      +  "option_comparison": {
      +    "items": {},
      +    "type": "array"
      +  },
      +  "postal_code": {
      +    "type": "string"
      +  },
      +  "provenance": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "puissance_kva": {
      +    "type": "number"
      +  },
      +  "reason": {
      +    "description": "Si grounded=false : aucun montant calculé.",
      +    "type": "string"
      +  },
      +  "recommendation": {
      +    "enum": [
      +      "stay",
      +      "switch"
      +    ],
      +    "type": "string"
      +  },
      +  "saving_eur": {
      +    "anyOf": [
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "simulator_version": {
      +    "type": "string"
      +  },
      +  "sources": {
      +    "description": "Sources publiques datées, à citer.",
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "data_as_of": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "publisher": {
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "publisher",
      +        "title",
      +        "url",
      +        "data_as_of"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "trv_annual_eur": {
      +    "anyOf": [
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "uncertainties": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / postal_code / description
      Previous value: -"Code postal français."New value: +"Code postal du logement ; demandez-le, ne l'inventez jamais."
  3. Changed5 schema fields changed
    • changedInput schema / properties / conso_annuelle_kwh / description
      Previous value: -"Consommation annuelle en kWh, mesurée ou explicitement déclarée."New value: +"Consommation annuelle en kWh, mesurée ou déclarée."
    • changedInput schema / properties / option / description
      Previous value: -"Option tarifaire canonique : base, hp_hc ou tempo ; la même valeur est retournée par extract_energy_document."New value: +"Option tarifaire, comme retournée par extract_energy_document."
    • changedInput schema / properties / postal_code / description
      Previous value: -"Code postal français à cinq chiffres, fourni par le client."New value: +"Code postal français."
    • changedInput schema / properties / proportion_hc / description
      Previous value: -"Part des kWh annuels en heures creuses, entre 0 et 1 ; obligatoire uniquement pour hp_hc."New value: +"Part HC des kWh annuels ; requise pour hp_hc seulement."
    • changedInput schema / properties / puissance_kva / description
      Previous value: -"Puissance souscrite du compteur en kVA."New value: +"Puissance souscrite en kVA."
  4. Changed14 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / conso_annuelle_kwh / description
      Previous value: -"Consommation annuelle en kWh (lue sur la facture)"New value: +"Consommation annuelle en kWh, mesurée ou explicitement déclarée."
    • addedInput schema / properties / conso_annuelle_kwh / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / conso_annuelle_kwh / maximum
      Added value: +1000000
    • addedInput schema / properties / option / description
      Added value: +"Option tarifaire canonique : base, hp_hc ou tempo ; la même valeur est retournée par extract_energy_document."
    • changedInput schema / properties / option / enum
      Previous value: -[
      -  "Base",
      -  "HP/HC",
      -  "Tempo"
      -]New value: +[
      +  "base",
      +  "hp_hc",
      +  "tempo"
      +]
    • changedInput schema / properties / postal_code / description
      Previous value: -"Code postal à 5 chiffres"New value: +"Code postal français à cinq chiffres, fourni par le client."
    • addedInput schema / properties / postal_code / pattern
      Added value: +"^\\d{5}$"
    • changedInput schema / properties / proportion_hc / description
      Previous value: -"Proportion de consommation en heures creuses (0.0 à 1.0). Requis si option = HP/HC."New value: +"Part des kWh annuels en heures creuses, entre 0 et 1 ; obligatoire uniquement pour hp_hc."
    • addedInput schema / properties / proportion_hc / maximum
      Added value: +1
    • addedInput schema / properties / proportion_hc / minimum
      Added value: +0
    • changedInput schema / properties / puissance_kva / description
      Previous value: -"Puissance du compteur en kVA"New value: +"Puissance souscrite du compteur en kVA."
    • addedInput schema / properties / puissance_kva / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / puissance_kva / maximum
      Added value: +36
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context: the estimate is compared against the regulated tariff and the assumptions are made explicit, which tells the agent what the result contains. It stops short of noting any limits on the estimate's accuracy, and an output schema already exists to describe the payload shape.

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?

A single dense sentence, front-loaded with purpose and separated by a semicolon into the no-bill case, the alternative route, and the comparison basis. Nothing is extraneous, though the telegraphic phrasing makes it slightly harder to parse than a short bulleted split.

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?

With rich annotations, a 100%-documented schema and an output schema, the description only needs to fix purpose and routing, which it does. The one remaining gap is the conditional requirement of proportion_hc for the hp_hc option, which lives only in the schema rather than the description.

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 description coverage is 100%, so the schema already documents postal_code, puissance_kva, conso_annuelle_kwh, option and proportion_hc, including the enum source and the postal-code pattern. The description only restates the same four inputs at a high level and adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

The description opens with a specific verb+resource ("Estimation résidentielle") and scopes it to the four inputs (kWh, kVA, postal code, option) plus the "sans facture" condition, which implicitly separates it from the pro variant. It does not explicitly name simulate_pro as the sibling it is not, so differentiation is strong against analyze_bill but only implicit against simulate_pro.

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

Usage Guidelines5/5

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

It states both branches: use this tool when there is no bill, and use analyze_bill when a bill has already been extracted. The selecting condition (presence of an extracted invoice) is stated outright, leaving nothing to inference.

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.