Skip to main content
Glama

get_optimal_schedule

Given multiple zones where flexible compute or charging could run, find the best contiguous hour block before a UTC deadline. Returns a ranked list using day-ahead prices per zone and each zone’s current green score. Optimise for lowest price, highest green score, or a balanced blend.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursYesLength of the contiguous scheduling window in hours.
zonesYesBidding zone codes to compare (e.g. ["DE", "FR", "NO"]).
deadline_utcYesISO 8601 instant — only hours at or before this timestamp are considered (per day-ahead series).
optimise_forNoprice = rank by lowest average €/MWh; carbon = rank by green score (higher better); balanced = 50/50 normalized price and green score.balanced

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses the core logic (day-ahead prices, green scores, optimization modes, ranked list) but misses behavioral details like read-only nature, handling of missing data, or exact ranking/tie-break behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose, zero fluff. Every clause earns its place while covering the essential inputs, methodology, and output type.

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?

No output schema and no annotations; description says 'ranked list' but doesn't clarify whether the list ranks zones or hour blocks, nor what fields appear in each item. It also doesn't mention behavior when no valid block exists. Missing these details hurts completeness.

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 baseline is 3. The description adds little beyond the schema; 'contiguous' and 'UTC deadline' are already in the schema. It does clarify the optimization intent but not significantly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb+resource: 'find the best contiguous hour block before a UTC deadline' across multiple zones. It also distinguishes itself from siblings like get_cheapest_window by supporting multiple optimization modes (price, carbon, balanced).

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?

The description gives a clear use case: 'where flexible compute or charging could run' and 'before a UTC deadline'. It does not explicitly mention alternatives or when not to use, but the context is clear enough.

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.

TDQS

A4.2/5.0
Disambiguation4/5

Tools are mostly distinct with clear scopes; compare_* tools each target a different metric (carbon vs green vs price), and get_carbon_intensity vs get_global_carbon differ by temporal and geographic scope. Minor confusion possible between get_cheapest_window and get_optimal_schedule but descriptions clarify single vs multi-zone.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using get_ or compare_, with no mixed conventions. Nouns are descriptive and predictable.

Tool Count5/5

15 tools is at the upper bound of the ideal range but each serves a distinct function for an energy API covering prices, carbon, scheduling, and market insights. No redundancy or bloat.

Completeness4/5

Covers price (current, day-ahead, history), carbon (current, global, comparative), green scores, scheduling optimization, weather, and market specifics. Missing historical carbon intensity for zones and renewable generation mix, but core workflows are supported.

Resources