Skip to main content
Glama

Boncourant

Vérifier la puissance souscrite

check_subscribed_power
Read-onlyIdempotent

Évalue la puissance à la date demandée sans extrapoler une pointe isolée. Une candidature C5 exige une année de pointes apparentes officielles et les paliers du contrat ; une C4 exige P1 à P4 et reste non concluante si une pointe non étiquetée tombe entre les seuils actifs P1 × 0,93 et P4 × 0,93.

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": {
      "evaluation_date": "<evaluation_date>",
      "subscribed_kva": "<subscribed_kva>",
      "connection_segment": "<connection_segment>"
    },
    "name": "check_subscribed_power"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_demand_kwNoPointe active mesurée en kW, pas une pointe apparente ; null si inconnue.
max_demand_kvaNoPointe apparente mesurée en kVA ; null si inconnue.
monthly_max_kwNoPointes actives mensuelles en kW ; null si absentes.
subscribed_kvaYesPuissance souscrite en kVA à la date d’évaluation.
evaluation_dateYesDate d’évaluation YYYY-MM-DD, pas la date d’effet du contrat.
monthly_max_kvaNoPointes apparentes mensuelles en kVA ; une année officielle est nécessaire pour conclure en C5.
measurement_basisNoOrigine des pointes.
connection_segmentYesClasse de raccordement réseau, distincte du profil Enedis d’annualisation.
subscribed_powers_kvaNoPuissances contractuelles C4, en kVA.
measurement_period_daysNoNombre de jours couverts par les mesures, pas leur nombre.
available_contract_tiers_kvaNoPaliers réellement disponibles au contrat C5, en kVA ; ne pas inventer un palier.

Output Schema

NameRequiredDescriptionDefault
methodNo
outputNo
warningsNo
intermediatesNo

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: +{
      +  "intermediates": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "method": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "output": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "warnings": {
      +    "items": {},
      +    "type": "array"
      +  }
      +}
  2. Changed7 schema fields changed
    • changedInput schema / properties / connection_segment / description
      Previous value: -"Classe de raccordement réseau C5 (BT ≤ 36 kVA) ou C4 (BT > 36 et ≤ 250 kVA), distincte de l’audience documentaire et du profil Enedis d’annualisation."New value: +"Classe de raccordement réseau, distincte du profil Enedis d’annualisation."
    • changedInput schema / properties / evaluation_date / description
      Previous value: -"Date civile d’évaluation YYYY-MM-DD ; ne remplace pas la date d’effet du contrat."New value: +"Date d’évaluation YYYY-MM-DD, pas la date d’effet du contrat."
    • changedInput schema / properties / max_demand_kw / description
      Previous value: -"Pointe active mesurée en kW ; null si inconnue, ne remplace pas une pointe apparente."New value: +"Pointe active mesurée en kW, pas une pointe apparente ; null si inconnue."
    • changedInput schema / properties / measurement_basis / description
      Previous value: -"Origine des pointes : mesure officielle ou pointe de facture."New value: +"Origine des pointes."
    • changedInput schema / properties / monthly_max_kw / description
      Previous value: -"Pointes actives mensuelles en kW, de 1 à 12 mesures ; null si absentes."New value: +"Pointes actives mensuelles en kW ; null si absentes."
    • changedInput schema / properties / subscribed_powers_kva / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "p1": {
      -        "description": "Puissance contractuelle P1 en kVA.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 250,
      -        "type": "number"
      -      },
      -      "p2": {
      -        "description": "Puissance contractuelle P2 en kVA.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 250,
      -        "type": "number"
      -      },
      -      "p3": {
      -        "description": "Puissance contractuelle P3 en kVA.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 250,
      -        "type": "number"
      -      },
      -      "p4": {
      -        "description": "Puissance contractuelle P4 en kVA, strictement supérieure à 36.",
      -        "exclusiveMinimum": 36,
      -        "maximum": 250,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "p1",
      -      "p2",
      -      "p3",
      -      "p4"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "p1": {
      +        "description": "P1 en kVA.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 250,
      +        "type": "number"
      +      },
      +      "p2": {
      +        "description": "P2 en kVA.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 250,
      +        "type": "number"
      +      },
      +      "p3": {
      +        "description": "P3 en kVA.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 250,
      +        "type": "number"
      +      },
      +      "p4": {
      +        "description": "P4 en kVA.",
      +        "exclusiveMinimum": 36,
      +        "maximum": 250,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "p1",
      +      "p2",
      +      "p3",
      +      "p4"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / subscribed_powers_kva / description
      Previous value: -"Puissances contractuelles C4 par plage P1 à P4, en kVA."New value: +"Puissances contractuelles C4, en kVA."
  3. Changed48 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / available_contract_tiers_kva / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 36,
      +      "type": "number"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / available_contract_tiers_kva / description
      Added value: +"Paliers réellement disponibles au contrat C5, en kVA ; ne pas inventer un palier."
    • removedInput schema / properties / available_contract_tiers_kva / items
      Removed value: -{
      -  "exclusiveMinimum": 0,
      -  "maximum": 36,
      -  "type": "number"
      -}
    • removedInput schema / properties / available_contract_tiers_kva / minItems
      Removed value: -1
    • removedInput schema / properties / available_contract_tiers_kva / type
      Removed value: -[
      -  "array",
      -  "null"
      -]
    • removedInput schema / properties / available_contract_tiers_kva / uniqueItems
      Removed value: -true
    • addedInput schema / properties / connection_segment / description
      Added value: +"Classe de raccordement réseau C5 (BT ≤ 36 kVA) ou C4 (BT > 36 et ≤ 250 kVA), distincte de l’audience documentaire et du profil Enedis d’annualisation."
    • addedInput schema / properties / evaluation_date / description
      Added value: +"Date civile d’évaluation YYYY-MM-DD ; ne remplace pas la date d’effet du contrat."
    • changedInput schema / properties / evaluation_date / pattern
      Previous value: -"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"New value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / max_demand_kva / anyOf
      Added value: +[
      +  {
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / max_demand_kva / description
      Added value: +"Pointe apparente mesurée en kVA ; null si inconnue."
    • removedInput schema / properties / max_demand_kva / minimum
      Removed value: -0
    • removedInput schema / properties / max_demand_kva / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedInput schema / properties / max_demand_kw / anyOf
      Added value: +[
      +  {
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / max_demand_kw / default
      Added value: +null
    • addedInput schema / properties / max_demand_kw / description
      Added value: +"Pointe active mesurée en kW ; null si inconnue, ne remplace pas une pointe apparente."
    • removedInput schema / properties / max_demand_kw / minimum
      Removed value: -0
    • removedInput schema / properties / max_demand_kw / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedInput schema / properties / measurement_basis / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "official_metering",
      +      "invoice_peak"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / measurement_basis / description
      Added value: +"Origine des pointes : mesure officielle ou pointe de facture."
    • removedInput schema / properties / measurement_basis / enum
      Removed value: -[
      -  "official_metering",
      -  "invoice_peak",
      -  null
      -]
    • removedInput schema / properties / measurement_basis / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedInput schema / properties / measurement_period_days / anyOf
      Added value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 370,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / measurement_period_days / description
      Added value: +"Nombre de jours couverts par les mesures, pas leur nombre."
    • removedInput schema / properties / measurement_period_days / maximum
      Removed value: -370
    • removedInput schema / properties / measurement_period_days / minimum
      Removed value: -1
    • removedInput schema / properties / measurement_period_days / type
      Removed value: -[
      -  "integer",
      -  "null"
      -]
    • addedInput schema / properties / monthly_max_kva / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "maxItems": 12,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / monthly_max_kva / description
      Added value: +"Pointes apparentes mensuelles en kVA ; une année officielle est nécessaire pour conclure en C5."
    • removedInput schema / properties / monthly_max_kva / items
      Removed value: -{
      -  "minimum": 0,
      -  "type": "number"
      -}
    • removedInput schema / properties / monthly_max_kva / maxItems
      Removed value: -12
    • removedInput schema / properties / monthly_max_kva / minItems
      Removed value: -1
    • removedInput schema / properties / monthly_max_kva / type
      Removed value: -[
      -  "array",
      -  "null"
      -]
    • addedInput schema / properties / monthly_max_kw / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "maxItems": 12,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / monthly_max_kw / default
      Added value: +null
    • addedInput schema / properties / monthly_max_kw / description
      Added value: +"Pointes actives mensuelles en kW, de 1 à 12 mesures ; null si absentes."
    • removedInput schema / properties / monthly_max_kw / items
      Removed value: -{
      -  "minimum": 0,
      -  "type": "number"
      -}
    • removedInput schema / properties / monthly_max_kw / maxItems
      Removed value: -12
    • removedInput schema / properties / monthly_max_kw / minItems
      Removed value: -1
    • removedInput schema / properties / monthly_max_kw / type
      Removed value: -[
      -  "array",
      -  "null"
      -]
    • addedInput schema / properties / subscribed_kva / description
      Added value: +"Puissance souscrite en kVA à la date d’évaluation."
    • removedInput schema / properties / subscribed_powers_kva / additionalProperties
      Removed value: -false
    • addedInput schema / properties / subscribed_powers_kva / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "p1": {
      +        "description": "Puissance contractuelle P1 en kVA.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 250,
      +        "type": "number"
      +      },
      +      "p2": {
      +        "description": "Puissance contractuelle P2 en kVA.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 250,
      +        "type": "number"
      +      },
      +      "p3": {
      +        "description": "Puissance contractuelle P3 en kVA.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 250,
      +        "type": "number"
      +      },
      +      "p4": {
      +        "description": "Puissance contractuelle P4 en kVA, strictement supérieure à 36.",
      +        "exclusiveMinimum": 36,
      +        "maximum": 250,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "p1",
      +      "p2",
      +      "p3",
      +      "p4"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / subscribed_powers_kva / description
      Added value: +"Puissances contractuelles C4 par plage P1 à P4, en kVA."
    • removedInput schema / properties / subscribed_powers_kva / properties
      Removed value: -{
      -  "p1": {
      -    "exclusiveMinimum": 0,
      -    "maximum": 250,
      -    "type": "number"
      -  },
      -  "p2": {
      -    "exclusiveMinimum": 0,
      -    "maximum": 250,
      -    "type": "number"
      -  },
      -  "p3": {
      -    "exclusiveMinimum": 0,
      -    "maximum": 250,
      -    "type": "number"
      -  },
      -  "p4": {
      -    "exclusiveMinimum": 36,
      -    "maximum": 250,
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / subscribed_powers_kva / required
      Removed value: -[
      -  "p1",
      -  "p2",
      -  "p3",
      -  "p4"
      -]
    • removedInput schema / properties / subscribed_powers_kva / type
      Removed value: -[
      -  "object",
      -  "null"
      -]
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: no extrapolation from an isolated peak, and the specific inconclusive condition for C4 when an untagged peak falls between P1×0.93 and P4×0.93. It stops short of saying what happens when the required inputs are null or insufficient, which is the main remaining behavioral gap.

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, no filler, with the core rule ('no extrapolation') front-loaded and the two segment cases following. It is dense with domain jargon and written in French while the tool name is English, which slightly raises parsing cost for an English-context agent, but nothing is 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 an 11-parameter tool with an output schema and full annotation coverage, the description supplies the decision logic that the schema cannot express — the C5/C4 input requirements and the inconclusive outcome. It does not address null-input handling or the role of measurement_period_days and measurement_basis, which are covered only by 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 description coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not carry: the distinction between apparent and active peaks in the C5/C4 rules, and the 0.93 derating coefficient applied to P1 that defines the inconclusive band. It does not explain how monthly_max_kva versus max_demand_kva are combined, leaving one interpretive gap.

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 states a specific verb and resource: 'Évalue la puissance à la date demandée', and adds a scope qualifier ('sans extrapoler une pointe isolée') that tells the agent what the tool will not do. It does not name or differentiate itself from any sibling tool, so an agent must rely on the name alone to pick it out of a catalog that includes analyze_bill, annualize_invoice and simulate.

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?

Usage is clearly conditioned on the two connection segments: C5 requires a year of official apparent peaks plus contract tiers, C4 requires P1–P4. That gives the agent a concrete pre-call checklist per case, including the inconclusive branch. No alternatives or when-not-to-use-this-tool guidance is offered, which keeps it below 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.