Skip to main content
Glama

Boncourant

Analyser une facture résidentielle

analyze_bill
Read-onlyIdempotent

Analyse une facture d'électricité résidentielle déjà extraite (champs structurés) via le moteur versionné. Retourne un verdict explicite stay/switch et l'option tarifaire de chaque offre ; quand aucune offre ne bat le contrat actuel, recommended_offer ne désigne jamais l'offre plus chère du catalogue. MCP est JSON uniquement : extrayez le PDF en amont, puis appelez cet outil avec les champs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionNoOption tarifaire actuelle
postal_codeYesCode postal à 5 chiffres
conso_kwh_hcNoConsommation en heures creuses (kWh), si option HP/HC
conso_kwh_hpNoConsommation en heures pleines (kWh), si option HP/HC
current_offerNoNom de l'offre actuelle (facultatif)
puissance_kvaYesPuissance souscrite en kVA
current_supplierNoFournisseur actuel (facultatif)
conso_annuelle_kwhYesConsommation annuelle en kWh (lue sur la facture)
current_annual_cost_eurNoCoût annuel TTC du contrat actuel en euros (facultatif) — sert de référence pour l'économie

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint, lowering the bar; the description still adds meaningful context beyond them: the versioned engine, the explicit stay/switch and per-offer tariff output, and a specific edge-case guarantee that recommended_offer never points to a pricier catalog offer when nothing beats the current contract. The JSON-only note is an actionable transport constraint.

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

Conciseness5/5

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

Three dense sentences with no filler: purpose is front-loaded, then output behavior, then the usage constraint. Every sentence earns its place relative to the 9-parameter schema and the output schema.

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 read-only analysis tool with a full output schema and 100% parameter coverage, the description covers purpose, output behavior, and the required upstream extraction step. The only gap is explicit routing among the many sibling analysis tools (analyze_renewal_terms, simulate, assess_*), but that is not essential to making a correct call.

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% — every parameter already has a meaningful description, so the baseline is 3. The tool description only refers generically to 'les champs' and adds no parameter-specific meaning beyond what the schema already provides.

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 states a precise verb+resource: analyzing an already-extracted residential electricity bill via the versioned engine. The qualifier 'déjà extraite' plus the explicit stay/switch verdict separates it from extraction siblings (extract_energy_document) and simulation/analysis siblings without opening their schemas.

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?

The description gives a clear workflow precondition: extract the PDF first, then call with structured fields, and warns that MCP is JSON only. This tells the agent where in the pipeline to invoke the tool, though it does not explicitly name alternative sibling tools or state when-not-to-use conditions.

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