Skip to main content
Glama

OilPriceAPI hosted energy data

Energy Market Analytics

energy_analytics
Read-onlyIdempotent

Compute authenticated market analytics for one or two catalog codes: statistics, trend/technical indicators, correlation, or spread analysis over 7–365 days. 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": {
      "operation": "<operation>",
      "code": "<code>",
      "days": "<days>"
    },
    "name": "energy_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
daysYes
typeNo
code2No
operationYes

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

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real context beyond that: computation is authenticated and entitlement is enforced by OilPriceAPI, which tells the agent to expect authorization failures. It stops short of explaining what happens when code2 is omitted for correlation/spread, which is the main behavioral ambiguity.

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?

Two sentences, front-loaded with the action and the operation list, with no filler. The phrasing "statistics, trend/technical indicators, correlation, or spread analysis" is slightly compressed in a way that blurs which `operation` value maps to which `type` value, but nothing is wasted.

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 no prose. However, for a five-parameter tool with two enums and 0% schema coverage, the description leaves the `type` parameter and the code/code2 cardinality rule entirely unexplained, which an agent needs in order to call it 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 0% across five parameters, so the description carries the full burden and only partly meets it. It names the four operation values and the day range, but the eight-value `type` enum (sma, ema, rsi, levels, rolling, current, historical) is never explained, and it does not say that `code2` is the second series for correlation/spread versus a single `code` for statistics/trend.

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?

States a specific verb and resource ("Compute ... market analytics") and enumerates the four operations (statistics, trend, correlation, spread) plus the 7–365 day window, so the agent knows exactly what class of computation this is. It implicitly separates itself from siblings like energy_market_brief or energy_get_price by being a derived-analytics tool, but never names an alternative.

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?

Usage is only implied: the agent can infer it should pick this when it needs statistics, indicators, correlation or spread rather than raw prices. There is no explicit when-to-use / when-not-to-use statement and no routing to siblings such as energy_compare or energy_history, which is a meaningful gap given how many overlapping energy tools exist.

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.