Skip to main content
Glama

MaCalculatriceEnLigne

Calculate LED Savings

calculate_led_savings
Read-onlyIdempotent

Compute energy and money saved by switching from incandescent/halogen to LED. Use for energy audit. Inputs: old wattage, LED wattage, daily hours, kWh price, bulbs. Returns yearly savings. See list_bundles for related 'energie' calculators.

Input Schema

NameRequiredDescriptionDefault
led_wYesLED replacement wattage
old_wYesOld bulb wattage
hours_dayNoHours per day
num_bulbsNoNumber of bulbs
price_kwhNoEUR/kWh

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, so the safety profile is covered structurally. The description adds "Returns yearly savings," but says nothing about assumptions, units of the result, or rounding. With annotations carrying safety, a 3 is appropriate.

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 core action, then usage, inputs, return, and a cross-reference — a logical order with little waste. The input enumeration partly duplicates the schema, keeping it short of a 5.

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?

With an output schema present, the description needn't detail return values, and it doesn't need to. Combined with full schema coverage and covering annotations, the description supplies what an agent needs to invoke the tool correctly.

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 all five parameters with types and defaults. The description merely re-lists them ("old wattage, LED wattage, daily hours, kWh price, bulbs") without adding format, unit, or default semantics beyond the schema. Baseline 3.

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 (compute) and resource (energy and money saved switching incandescent/halogen to LED), which is far more specific than the dozens of generic calculate_* siblings. An agent can immediately tell this is an LED-retrofit savings calculator rather than a generic electricity-cost tool.

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?

"Use for energy audit" gives an implied context, and "See list_bundles for related 'energie' calculators" points to a discovery path, but there is no explicit when-to-use vs when-not against the closest competing siblings (e.g. calculate_electricity_cost, calculate_solar_roi). Guidance is present but leaves the boundary with alternatives 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.