Skip to main content
Glama

Boncourant

Annualiser une facture

annualize_invoice
Read-onlyIdempotent

Annualise la consommation et/ou le total TTC d'une période avec les coefficients officiels du profil Enedis correspondant au segment, à l'option et à la puissance. Si les coefficients sont indisponibles, le repli linéaire est explicite et borné pour les kWh.

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": {
      "period_start": "<period_start>",
      "period_end": "<period_end>",
      "segment": "<segment>",
      "puissance_kva": "<puissance_kva>"
    },
    "name": "annualize_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionNoOption tarifaire, comme retournée par extract_energy_document.
segmentYesProfil Enedis d’annualisation, distinct de la classe réseau C4/C5.
period_endYesFin YYYY-MM-DD, après period_start.
period_kwhNokWh de la période ; ce champ et/ou period_total_ttc_eur.
period_startYesDébut de période facturée YYYY-MM-DD.
puissance_kvaYesPuissance souscrite en kVA.
period_total_ttc_eurNoEuros TTC de la période ; ce champ et/ou period_kwh.
period_subscription_ttc_eurNoAbonnement TTC inclus dans period_total_ttc_eur, s'il est connu.

Output Schema

NameRequiredDescriptionDefault
profileNo
estimatesNo
calculationsNo

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: +{
      +  "calculations": {
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "estimates": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "profile": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  }
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / period_subscription_ttc_eur
      Added value: +{
      +  "description": "Abonnement TTC inclus dans period_total_ttc_eur, s'il est connu.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  3. Changed6 schema fields changed
    • 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 / period_end / description
      Previous value: -"Fin de période facturée YYYY-MM-DD, strictement postérieure au début."New value: +"Fin YYYY-MM-DD, après period_start."
    • changedInput schema / properties / period_kwh / description
      Previous value: -"Consommation de la période en kWh ; fournir ce champ et/ou le total TTC."New value: +"kWh de la période ; ce champ et/ou period_total_ttc_eur."
    • changedInput schema / properties / period_total_ttc_eur / description
      Previous value: -"Total TTC de la période en euros ; fournir ce champ et/ou les kWh."New value: +"Euros TTC de la période ; ce champ et/ou period_kwh."
    • changedInput schema / properties / puissance_kva / description
      Previous value: -"Puissance souscrite du compteur en kVA."New value: +"Puissance souscrite en kVA."
    • changedInput schema / properties / segment / description
      Previous value: -"Profil Enedis d’annualisation : résidentiel, professionnel BT ≤ 36 kVA ou BT > 36 kVA ; distinct de l’audience documentaire et de la classe réseau C4/C5."New value: +"Profil Enedis d’annualisation, distinct de la classe réseau C4/C5."
  4. Changed11 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / anyOf
      Removed value: -[
      -  {
      -    "required": [
      -      "period_kwh"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "period_total_ttc_eur"
      -    ]
      -  }
      -]
    • 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."
    • addedInput schema / properties / period_end / description
      Added value: +"Fin de période facturée YYYY-MM-DD, strictement postérieure au début."
    • changedInput schema / properties / period_end / pattern
      Previous value: -"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"New value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / period_kwh / description
      Added value: +"Consommation de la période en kWh ; fournir ce champ et/ou le total TTC."
    • addedInput schema / properties / period_start / description
      Added value: +"Début de période facturée YYYY-MM-DD."
    • changedInput schema / properties / period_start / pattern
      Previous value: -"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"New value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / period_total_ttc_eur / description
      Added value: +"Total TTC de la période en euros ; fournir ce champ et/ou les kWh."
    • addedInput schema / properties / puissance_kva / description
      Added value: +"Puissance souscrite du compteur en kVA."
    • addedInput schema / properties / segment / description
      Added value: +"Profil Enedis d’annualisation : résidentiel, professionnel BT ≤ 36 kVA ou BT > 36 kVA ; distinct de l’audience documentaire et de la classe réseau C4/C5."
  5. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world, so the safety profile needs no restating. The description does add one real behavioral fact beyond that: when official coefficients are unavailable a bounded linear fallback is applied, explicitly and only for kWh. It stops short of saying what happens when the fallback is needed for a TTC total, or how the agent learns which path was taken.

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?

Two sentences, front-loaded with the operation and then the fallback caveat; every clause carries information and there is no filler. It is dense in domain vocabulary ('profil Enedis', 'repli linéaire') but not 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?

With an output schema present, return values need no explanation, and the input schema is fully annotated, so the description's remaining burden is method and edge-case behavior — both are covered at a basic level (official coefficients, bounded linear fallback for kWh). It leaves unstated the accuracy limitations of annualization and whether the subscription component is extrapolated the same way, which matters for a financial calculation tool.

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 every one of the 8 parameters is already documented, and the enum meanings (option, segment) are spelled out in the schema itself. The description adds only the linkage that segment + option + puissance jointly select the coefficient table, which the schema does not state explicitly — useful but marginal against a fully annotated schema.

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?

States a specific verb ('Annualise') and the exact resources acted on (consommation and/or total TTC over a period), plus the mechanism (coefficients officiels du profil Enedis keyed by segment, option and puissance). It never names a sibling tool, so an agent cannot tell from the text alone whether analyze_bill or decompose_invoice is the better fit for the same input.

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

Usage Guidelines3/5

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

Usage is implied by the phrase 'd'une période' and the coefficient lookup: it is for extrapolating a partial billing period to a full year. There is no explicit when-to-use/when-not statement, no prerequisites (e.g. minimum period length), and no routing to alternatives among the many analysis siblings.

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.