Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Puissance Fiscale

calculate_puissance_fiscale
Read-onlyIdempotent

French fiscal horsepower (puissance administrative, Code des impositions sur les biens et services, CIBS art. L. 421-14 to L. 421-22). Default regime (cars M1 first registered in France from 2021-01-01, parameters in CIBS art. A. 421-3 to D. 421-11): PA = 1.80 x (PM/100)^2 + 3.87 x (PM/100) + 1.34 with PM = max net engine power in kW. Legacy regime (CIBS art. L. 421-15: cars first registered in France between 1998-07-01 and 2021-01-01, except types approved or modified from 2019-11-01, keep the formula of the former legislation, now in CIBS art. A. 421-12 to A. 421-23): PA = CO2/45 + (PM/40)^1.6. Result rounded to the nearest unit, 0.5 counted as 1. Returns: {regime, cv_raw, cv_fiscaux}.

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": {
      "power_kw": "<power_kw>"
    },
    "name": "calculate_puissance_fiscale"
  }
}

Input Schema

NameRequiredDescriptionDefault
regimeNocibs_from_2021 = general case (cars first registered in France from 1 January 2021); cibs_l421_15_1998_2020 = cars first registered in France between 1 July 1998 and 1 January 2021 whose type was approved before 1 November 2019 (CIBS art. L. 421-15). Legacy aliases accepted: art_1008_II, art_1008_III_1998_2020cibs_from_2021
co2_g_kmNoCO2 g/km (NEDC), required only for the cibs_l421_15_1998_2020 regime
power_kwYesMax net engine power in kW (PM, field P.2 of the registration certificate)

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result (fields depend on the tool).
sourceNoLegal or official source.
formulaNoMethod used.
reference_urlNomacalculatriceenligne.com page to share.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / formula / description
      Previous value: -"Human-readable formula or method used (e.g. \"I=P·r·t\", \"Magnus formula\")."New value: +"Method used."
    • changedOutput schema / properties / reference_url / description
      Previous value: -"Link to a calcul2 page documenting the calculation in detail."New value: +"macalculatriceenligne.com page to share."
    • changedOutput schema / properties / result / description
      Previous value: -"Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools)."New value: +"Computed result (fields depend on the tool)."
    • changedOutput schema / properties / source / description
      Previous value: -"Authoritative source for the rule or formula (e.g. \"Article 197 CGI\", \"NF DTU 21\")."New value: +"Legal or official source."
  2. Changed4 schema fields changed
    • changedInput schema / properties / co2_g_km / description
      Previous value: -"CO2 g/km"New value: +"CO2 g/km (NEDC), required only for the cibs_l421_15_1998_2020 regime"
    • changedInput schema / properties / power_kw / description
      Previous value: -"Engine power in kW"New value: +"Max net engine power in kW (PM, field P.2 of the registration certificate)"
    • addedInput schema / properties / regime
      Added value: +{
      +  "default": "cibs_from_2021",
      +  "description": "cibs_from_2021 = general case (cars first registered in France from 1 January 2021); cibs_l421_15_1998_2020 = cars first registered in France between 1 July 1998 and 1 January 2021 whose type was approved before 1 November 2019 (CIBS art. L. 421-15). Legacy aliases accepted: art_1008_II, art_1008_III_1998_2020",
      +  "enum": [
      +    "cibs_from_2021",
      +    "cibs_l421_15_1998_2020",
      +    "art_1008_II",
      +    "art_1008_III_1998_2020"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "co2_g_km",
      -  "power_kw"
      -]New value: +[
      +  "power_kw"
      +]
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world, non-destructive), and the description goes further by disclosing the rounding rule ('rounded to the nearest unit, 0.5 counted as 1') and the computed intermediate value. It does not describe error behavior, notably what happens if co2_g_km is omitted under the legacy regime.

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

Conciseness3/5

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

The formulas and regime conditions are front-loaded and genuinely useful, but the text is a dense single block weighted down with repeated statutory citations (L. 421-14 to L. 421-22, A. 421-3 to D. 421-11, A. 421-12 to A. 421-23) that an agent cannot act on. The regime date/alias information also duplicates the enum description in the 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?

With an output schema present, the description need not explain return values, yet it does anyway alongside the rounding rule and both formulas, making the tool largely self-contained. The remaining gap is conditional-parameter behavior: it does not state that co2_g_km is required for the legacy regime or what error results if it is missing.

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 all three parameters, including the regime enum with its legacy aliases, are already fully documented. The description adds only indirect meaning by showing how PM and CO2 feed into each formula; it largely restates PM as 'max net engine power in kW' and the regime dates already in the schema.

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 names a specific computation (French fiscal horsepower / puissance administrative) and spells out the exact statutory basis and formulas for two distinct regimes. An agent can immediately tell this apart from siblings like calculate_french_vat or calculate_french_income_tax, which are unrelated fiscal calculators.

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?

It gives explicit selection criteria between regimes via registration dates (from 2021-01-01 vs. 1998-07-01 to 2021-01-01, with the 2019-11-01 type-approval exception) and states which is the default. It stops short of stating when not to use the tool (e.g., non-French registrations, motorcycles/other vehicle categories), so it is clear context rather than a full when/when-not guide.

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.