Skip to main content
Glama

electricity_local

Electricity in one place (mainland Portugal): billed consumption per month, and how often and for how long the power went out there in recent years compared with the average municipality.

Args: municipality: a concelho, e.g. "Sintra". postal_code: "2710" or "2710-123" (consumption is published per 4-digit area); its municipality is used for the outage figures. months: how many recent months of consumption (max 60).

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

Input Schema

NameRequiredDescriptionDefault
monthsNo
postal_codeNo
municipalityNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations the description carries the full behavioral burden, and it does disclose meaningful scope limits: mainland Portugal only, outages given for 'recent years', and a maximum of 60 months. It does not clarify the behavior with 0 required parameters (no default location, no error case) or whether one location argument overrides the other, leaving the main ambiguity of this read tool unresolved.

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 summary sentence is front-loaded with the resource and scope, and the Args block is terse and well formatted. Only mild redundancy and a slightly awkward trailing newline keep it from being maximally tight.

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?

An output schema exists so return values need not be explained, and all three parameters receive some documentation. The remaining gap is behavioral for an all-optional-parameter tool: nothing says what the tool returns when called with no location, which is the most likely invocation and the biggest source of failure.

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 description coverage is 0%, so the description must compensate, and it largely does: municipality is defined as a concelho with an example, postal_code is given both accepted formats plus the 4-digit aggregation caveat and its role in the outage lookup, and months is bounded at 60. It stops short of stating the defaults (12 months, null location) and the interaction between the two location parameters.

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 states a specific resource and two concrete data products: monthly billed electricity consumption and outage frequency/duration relative to the municipal average, scoped to mainland Portugal. An agent can distinguish this local-statistics tool from electricity_grid and electricity_price, though it never explicitly says how it differs from them.

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?

Implicit guidance is present: the Args section explains that consumption is published per 4-digit postal area while the municipality drives the outage figures, which steers parameter choice. However, there is no explicit when-to-use versus electricity_grid/electricity_price, no statement of what happens if neither or both location parameters are supplied, and no exclusion rules.

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.