Skip to main content
Glama

CalcPronto: exact calculators (tax, payroll, loans, VAT, EU261)

French mileage allowance (barème kilométrique)

mileage_fr_calculate
Read-onlyIdempotent

French mileage allowance (barème kilométrique 2026, used for 2025 income declared in 2026, also the limit of tax- and contribution-free allowances paid by an employer): amount for the professional distance of a year, band and formula, +20 % for a 100 % electric vehicle, cost per km. vehicle: 'car', 'motorcycle' (over 50 cm3) or 'moped' (cyclomoteur, under 50 cm3); power_cv: fiscal horsepower (puissance administrative, CV; cars of more than 7 CV use the 7 CV line; not needed for a moped). Distance in km: distance_km (annual professional distance), OR commute_one_way_km (home to work) and work_days (days actually travelled; one round trip a day, first 40 km of each way unless commute_justified) plus other_km. Amounts in euros: tolls_parking and loan_interest (share of professional use) are added to the scale. Give salary (annual net taxable salary before the 10 % deduction) to compare actual costs with the 10 % deduction (509 € to 14 555 €), with allowances_received (employer allowances for these costs, added back to the salary) and other_costs (other actual professional costs).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mileage_fr_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
salaryNo
vehicleNocar
electricNo
other_kmNo
power_cvNo
work_daysNo
distance_kmNo
other_costsNo
loan_interestNo
tolls_parkingNo
commute_justifiedNo
commute_one_way_kmNo
allowances_receivedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description's job is domain context — and it delivers: +20% for 100% electric vehicles, cars above 7 CV capped to the 7 CV line, the 40 km-per-way commute cap unless commute_justified, and tolls/loan interest added on top of the scale. It stops short of stating precedence when both distance_km and commute inputs are supplied.

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?

Almost every clause carries real information, but it is delivered as one dense run-on paragraph stitched with semicolons and parentheses, with no front-loaded summary of the core computation. Restructuring into input groups (vehicle, distance, costs, comparison) would make it far easier to parse.

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 13-parameter tool with no schema descriptions, the definition covers nearly every input plus the domain rules that govern them, and an output schema exists so return values need not be explained. The gaps are the precedence between distance_km and the commute pair, and the default behavior when no distance input is given.

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?

With 0% schema description coverage across 13 parameters, the description carries the full burden and mostly succeeds: vehicle values are enumerated with engine-size thresholds, power_cv is defined as fiscal horsepower with the >7 CV rule, salary is specified as annual net taxable before the 10% deduction, and tolls_parking/loan_interest are scoped to the professional-use share. The only weak spot is commute_justified, whose effect is only obliquely implied by the 40 km cap clause.

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 names a specific resource and computation: the French barème kilométrique for a given year, returning 'amount for the professional distance of a year, band and formula'. It is clearly the calculator rather than the sibling mileage_fr_parameters, though it never states that distinction explicitly.

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?

Usage is implied through input-combination rules ('distance_km (annual professional distance), OR commute_one_way_km ... and work_days') and a conditional note ('not needed for a moped'), which is genuinely helpful. However, there is no explicit when-to-use/when-not guidance and no mention of the mileage_fr_parameters sibling for rate tables, so an agent must infer the boundary.

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.