Skip to main content
Glama

electricity_grid

How much electricity mainland Portugal used on a day, the peak, and how much wind, solar and hydro the distribution grid generated (E-REDES, 15-minute data, usually one day behind).

Args: day: "YYYY-MM-DD" (default: the latest complete day, usually yesterday). Big power stations feed the transmission grid (REN) and show here only as one total.

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_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does well: it discloses that the data is 15-minute resolution, usually one day behind, and sourced from E-REDES. It also clarifies an important aggregation caveat that big power stations feeding the REN transmission grid appear only as one total. It does not cover auth or rate limits, but those are less critical for this data retrieval tool.

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 description is front-loaded with purpose and is concise overall. The Args block is clearly structured, though slightly redundant with the schema. The final sentence about transmission-grid power stations earns its place by clarifying scope.

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 simple one-parameter data tool with an output schema, the description is nearly complete: it covers data source, granularity, freshness, scope limitation, and parameter semantics. Minor gaps remain, such as timezone or exact update timing, and there is no explicit routing guidance to sibling electricity tools.

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

Parameters5/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 fully explain the sole parameter, and it does: day accepts "YYYY-MM-DD" and defaults to the latest complete day, usually yesterday. This adds complete semantic meaning beyond the bare schema, which only declares a nullable string with no description.

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 scope: mainland Portugal's daily electricity consumption, peak, and wind/solar/hydro generation from the distribution grid. It also names the source (E-REDES) and distinguishes distribution data from transmission-grid power stations, which adds useful precision. It does not explicitly name sibling tools like electricity_local or electricity_price, so it stops short of 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what data is returned and how the day parameter defaults, but it gives no explicit guidance on when to use this tool versus alternatives such as electricity_local or electricity_price. Usage is only implied by the stated purpose, and there are no exclusions or routing cues.

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.