Skip to main content
Glama

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. 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. 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"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "formula": {
      +      "description": "Human-readable formula or method used (e.g. \"I=P·r·t\", \"Magnus formula\").",
      +      "type": "string"
      +    },
      +    "reference_url": {
      +      "description": "Link to a calcul2 page documenting the calculation in detail.",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools)."
      +    },
      +    "source": {
      +      "description": "Authoritative source for the rule or formula (e.g. \"Article 197 CGI\", \"NF DTU 21\").",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, closed-world calculation. The description adds substantial behavioral context beyond annotations: the exact formulas, regime selection rules, rounding convention, and returned fields. It does not need to explain safety properties because the annotations cover them.

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?

The description is dense and front-loads the domain and legal basis, with formulas placed near their regimes. The legal citations are somewhat heavy, but they are relevant to a specialized statutory calculation and are not pure filler.

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?

Given the tool's complexity, the description is complete enough: it defines both regimes, supplies formulas, explains rounding, and names the return fields. The input schema covers parameter details including the enum and CO2 condition, and the output schema is available.

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 coverage is 100%, so the schema already documents the parameters well. The description still adds value by tying power_kw to PM in the formulas, explaining that CO2 enters the legacy formula, and clarifying how the regime affects parameter use.

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 the specific resource, French fiscal horsepower, and specifies the two legal regimes and formulas used to compute it. An agent can tell this is not a generic arithmetic calculator but a jurisdiction-specific vehicle tax calculation.

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 clearly states the registration-date conditions that select the default versus legacy regime, including the 2021-01-01 and 1998-07-01 boundaries. It does not explicitly say when to prefer this tool over other calculators, but the domain specificity makes the intended use clear.

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