Skip to main content
Glama

Kildeverk

Electricity use in a municipality

electricity_municipality
Read-onlyIdempotent

Electricity consumption in one Norwegian municipality from Elhub: MWh per day or hour for homes and cabins, business and industry, with shares and metering points, and the production capacity installed (hydro, wind, solar, thermal). Up to 31 days since 2021; default the last seven full days. Codes, old or current, or names.

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": {
      "municipality": "<municipality>"
    },
    "name": "electricity_municipality"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_dateNoLast day, inclusive; at most 31 days from from_date.
from_dateNoFirst day, in Norwegian time, from 2021-01-01. Leave out both dates for the last seven full days.
resolutionNo'hour' adds every hour, for periods of up to 3 days.day
municipalityYesA municipality code, old or current ('1201', '4601'), or a name ('Bergen').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive, open-world read, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the data source (Elhub), units (MWh), the historical window (since 2021), the hard 31-day cap, and the tighter 3-day cap when resolution is 'hour'. It does not discuss latency, caching, or error behavior, 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?

Three dense sentences that front-load the data scope, then the limits, then the identifier formats. The parenthetical enumerations (hydro, wind, solar, thermal) and quoted codes are compact rather than wasteful, though the single long first sentence is somewhat overloaded.

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?

There is no output schema, so the description must describe returns, and it does: MWh per day or hour, split by consumer category, with shares and metering points plus installed production capacity by source. Combined with the explicit time-range and resolution limits, an agent has everything needed to call this correctly.

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 every parameter is already documented including the municipality code/name pattern and the from/to date semantics. The description largely restates this ('Codes, old or current, or names') while adding the MWh unit and the 3-day hourly limit. With the schema doing the heavy lifting, the baseline of 3 is appropriate.

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 concrete resource and scope: electricity consumption for one Norwegian municipality from Elhub, broken down by consumer category (homes/cabins, business and industry) with shares, metering points, and installed production capacity. An agent can distinguish this from grid-area or price-area tools by the 'one municipality' scope. It stops short of explicitly naming the sibling tools it is not, so it lands at 4 rather than 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?

It gives useful invocation context in the form of constraints: max 31 days, data since 2021, default to the last seven full days, and hourly resolution only for periods up to 3 days. However, there is no guidance on when to choose this over electricity_grid_area, electricity_price_areas, or municipality_profile, so usage is implied rather than directed.

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.