Skip to main content
Glama

OilPriceAPI hosted energy data

Search Commodity Catalog

energy_search_catalog
Read-onlyIdempotent

Search the OilPriceAPI commodity catalog (crude grades, regional natural gas hubs such as Waha, refined products, power, coal, metals, freight and more) by name or code. Returns at most 10 matching codes with name, category, unit and update frequency. Available without signup to discover commodity codes; reading latest prices outside the demo benchmarks via energy_get_latest requires a connected OilPriceAPI account.

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": {
      "query": "<query>",
      "limit": "<limit>"
    },
    "name": "energy_search_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes
queryYes

Output Schema

NameRequiredDescriptionDefault
accessNo
datasetNo
messageNo
outcomeNo
handoff_urlYes
upgrade_urlNo
website_urlYes
availabilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "access": {
      +      "enum": [
      +        "demo",
      +        "authenticated"
      +      ],
      +      "type": "string"
      +    },
      +    "availability": {
      +      "enum": [
      +        "available",
      +        "unavailable"
      +      ],
      +      "type": "string"
      +    },
      +    "dataset": {
      +      "type": "string"
      +    },
      +    "handoff_url": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "outcome": {
      +      "type": "string"
      +    },
      +    "upgrade_url": {
      +      "type": "string"
      +    },
      +    "website_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "website_url",
      +    "handoff_url"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/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 value beyond that: a hard cap of 10 results, the four fields returned per match, and the auth asymmetry between this free lookup and account-gated price reads. It does not explain pagination or what happens when nothing matches.

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 the verb and search space then the return shape and the auth caveat. No filler, no restatement of the title.

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?

With an output schema present the description need not detail return values, yet it still names the four returned fields; auth requirements and the result cap are both disclosed. The remaining gap is minor: the limit parameter's behavior relative to the 10-result maximum is never made explicit.

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%, so the description has to carry the load. "By name or code" usefully explains what query accepts, and "at most 10 matching codes" implies the limit cap, but the min-length 2, 60-char max and allowed-character pattern are left entirely to the schema, and limit's role is not clarified.

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?

States a specific verb and resource ("Search the OilPriceAPI commodity catalog") and immediately scopes the domain with concrete examples (crude grades, Waha gas hub, refined products, power, coal, metals, freight). It also distinguishes itself from energy_get_latest by positioning search as the code-discovery step that precedes price reading.

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?

"Available without signup to discover commodity codes" tells the agent the exact situation this tool fits and contrasts with energy_get_latest, which requires a connected account. It stops short of explicit when-not-to-use guidance (e.g. "do not use for prices"), but the routing intent is clear.

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.