Skip to main content
Glama

OilPriceAPI hosted energy data

Manage Price Alerts

energy_manage_alerts
Destructive

List account price alerts or trigger history (energy:read), or create/delete persistent price threshold alerts (requires energy:write scope). Account entitlement is enforced by OilPriceAPI.

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": {
      "action": "<action>"
    },
    "name": "energy_manage_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
actionYes
alert_idNo
commodity_codeNo
condition_valueNo
cooldown_minutesNo
condition_operatorNo

Output Schema

NameRequiredDescriptionDefault
accessNo
datasetNo
messageNo
outcomeNo
handoff_urlYes
upgrade_urlNo
website_urlYes
availabilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, openWorldHint=true, and idempotentHint=false, so the safety profile is largely covered. The description adds genuinely useful context beyond them by tying each action to an OAuth scope and noting that alerts are persistent and entitlement is enforced server-side, but it never says what delete removes or whether re-creating a duplicate alert is rejected.

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?

One dense sentence, front-loaded with the read actions before the write actions, with scope requirements parenthesized inline. Nothing is wasted, though packing four actions plus two scopes into a single sentence makes it slightly hard to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 described, but for a seven-parameter tool with destructive writes and zero schema coverage the description omits too much: it never explains how condition_operator and condition_value combine or what cooldown_minutes controls. An agent could pick the right action but would have to guess at the payload.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across seven parameters, so the description carries the full burden and does not meet it. It never explains name, alert_id, commodity_code, condition_value, condition_operator, or cooldown_minutes, leaving the threshold semantics and the 1-10080 minute cooldown range entirely to bare field names and patterns.

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 concrete verbs and resources: list alerts, list trigger history, create alerts, delete alerts, and it maps them onto the action enum. It does not differentiate itself from the closely related sibling energy_manage_watches, so an agent must infer the boundary between alerts and watches.

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 a real prerequisite split (energy:read for listing, energy:write for create/delete) that tells the agent which actions need elevated scope. It offers no explicit when-to-use versus alternatives and no statement about which action to pick for a given intent beyond the read/write split.

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.