Skip to main content
Glama

Total bilkostnad per månad

total_cost
Read-onlyIdempotent

Räknar total ägandekostnad (TCO) per månad för en bil i Sverige: värdeminskning, ränta eller leasing, drivmedel/el (fältet drivmedel_kr_man), försäkring, fordonsskatt (inkl. malus enligt Transportstyrelsen), service, däck, besiktning. Enklast: ange bara bil (t.ex. "Volvo XC40") så används bildatabasens pris, leasingnivå och service. Uttryckligt angivet pris (köp) eller leasingPerManad överstyr alltid modellens standardvärde, även tillsammans med bil. Standardvärden om inget anges: privatleasing, 3 år, 1 500 mil/år – anropa direkt utan motfrågor och redovisa antagandena (fältet standardvarden) i svaret.

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": "total_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
arNo
bilNoBil-id eller modellnamn, t.ex. "XC40"
prisNoInköpspris kr; överstyr modelldefault
rantaNo
elprisNo
milPerArNo
drivmedelNo
bensinprisNo
dieselprisNo
anskaffningNo
forbrukningNol/mil eller kWh/mil
co2GramPerKmNo
servicePerArNo
forsakringPerArNo
leasingPerManadNoLeasingavgift kr/mån; överstyr modelldefault
kontantinsatsAndelNo
leasingInklServiceNo
vardeminskningPerArNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / leasingPerManad / description
      Added value: +"Leasingavgift kr/mån; överstyr modelldefault"
    • addedInput schema / properties / pris / description
      Added value: +"Inköpspris kr; överstyr modelldefault"
  2. Changed1 schema field changed
    • addedInput schema / properties / bil
      Added value: +{
      +  "description": "Bil-id eller modellnamn, t.ex. \"XC40\"",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish a safe, read-only, idempotent, closed-world calculation, so the burden is lower; the description still adds real context by disclosing defaults (privatleasing, 3 years, 1500 mil/year), the override precedence for pris and leasingPerManad, the malus inclusion per Transportstyrelsen, and the existence of a standardvarden field in the response. It does not describe the shape of the result beyond that one field, which keeps it from a 5.

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?

Purpose and component list are front-loaded, and the whole thing is only a few long sentences. There is some duplication (defaults for privatleasing/3 år/1500 mil are implied in the first sentence and then restated) and the parenthetical phantom field name adds noise, but overall it is dense rather than padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter, zero-required, no-output-schema calculator, the definition covers the primary entry path and key overrides, which is the most important part. It does not explain what the response contains beyond the standardvarden assumptions, and it leaves most numeric parameters unexplained, so an agent cannot reason about the full parameter space from the description alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 18 parameters and only 22% schema description coverage, the description needs to compensate, and it does so for only a handful: bil (with example), pris, leasingPerManad, ar, milPerAr and anskaffning defaults. Around ten parameters (ranta, elpris, bensinpris, dieselpris, forbrukning, co2GramPerKm, servicePerAr, forsakringPerAr, kontantinsatsAndel, leasingInklService, vardeminskningPerAr) receive no explanation. Worse, it references a field "drivmedel_kr_man" that does not exist in the input schema, which can actively mislead.

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 opens with a precise verb and resource: "Räknar total ägandekostnad (TCO) per månad för en bil i Sverige" and enumerates the exact cost components (depreciation, interest/leasing, fuel/electricity, insurance, tax incl. malus, service, tyres, inspection). This is far more specific than a restated title. It stops short of differentiating itself from plausible siblings such as my_monthly_cost or compare_cars, so it does not reach a 5.

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?

"Enklast: ange bara bil ... så används bildatabasens pris, leasingnivå och service" plus "anropa direkt utan motfrågor" gives concrete invocation guidance, and the override rule (explicit pris/leasingPerManad always wins) is a useful usage constraint. However, there is no guidance on when this tool should be chosen over alternatives like my_monthly_cost, compare_cars or explain_costs; the guidance is about how to call it, not when to select it.

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