Skip to main content
Glama

bil_forbrug

Read-only

Retrieve EV charging consumption, cost, CO2, and electricity prices to check usage and decide if charging is cheap. Covers last charge, 24h, today, week, month, year, total, and upcoming-hour prices.

Instructions

Bilens opladningsforbrug (talt fra 26/11-2026): kWh, kr., kg CO2 og kr./kWh for sidste opladning, seneste 24 t, i dag (fra kl. 00), seneste 7 dage, denne måned, i år og i alt, samt i_gaar og sidste_maaned (null, hvis Home Assistant ikke har et sikkert tal). Desuden strømprisen nu (kr./kWh), CO2 nu (g/kWh), billigste kommende time og snittet af de kommende timer. Til spørgsmål om pris, kWh og CO2 for opladning, og om det er billigt at lade nu. tekst er et færdigt svar.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.41.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: that `i_gaar` and `sidste_maaned` may be null when Home Assistant lacks a reliable figure, that `tekst` is a finished/preformatted answer the agent can relay directly, and the 26/11-2026 data start bound. It does not describe pagination or overall response shape, but for a zero-parameter read tool this is solid added context.

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?

It is a single dense sentence, but it is front-loaded with the primary resource (charging consumption) and then the metric list, with no filler. The long enumeration of time windows is justified because there is no output schema to document them elsewhere, though it could be split into two sentences for scanability.

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 no output schema, the description must carry the return-value burden and it does: it lists every time window, the current price/CO2 values, the cheapest upcoming hour, the upcoming-hour average, and the two nullable fields. Combined with annotations covering the read-only/open-world profile, an agent has enough to call it with no arguments and interpret the result.

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?

Zero input parameters, so there is nothing for the description to disambiguate; the baseline for a no-parameter tool applies. The description instead spends its words on returned field names (`tekst`, `i_gaar`, `sidste_maaned`), which is the right use of space here.

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 enumerates exactly what the tool returns: kWh, kr., kg CO2, kr./kWh across defined time windows plus current price, current CO2, cheapest upcoming hour and upcoming-hour average. That makes the resource unmistakable – charging consumption and pricing for the car – even though no explicit verb ('returner'/'hent') is used and no sibling (e.g. bil_status, bil_oplad) is named to draw the boundary explicitly.

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?

'Til spørgsmål om pris, kWh og CO2 for opladning, og om det er billigt at lade nu' clearly states the question types that should route here, which is exactly the selection signal an agent needs. It stops short of naming alternatives or exclusions (e.g. when to prefer bil_status or bil_oplad instead), so it is clear context rather than full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.