Skip to main content
Glama
OilpriceAPI

OilPriceAPI

Official
by OilpriceAPI

opa_create_price_alert

Create persistent commodity price alerts that notify you via email or webhook when the price crosses your set threshold.

Instructions

Create a PERSISTENT price alert tied to the user's OilPriceAPI account. The alert engine continuously watches live prices and notifies the user (by email, plus webhook if a URL is given) when the commodity price crosses the threshold. Use when the user asks to be alerted/notified when a price goes above or below a level (e.g. 'tell me when Brent drops below $70'). REQUIRES an API key (OILPRICEAPI_KEY) — this writes to the user's account. Alerts persist until deleted; manage them with opa_list_price_alerts and opa_delete_price_alert.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commodityYesCommodity name or code to watch (e.g., 'brent', 'natural gas', 'WTI_USD').
operatorYesThreshold comparison: greater_than, less_than, equals, greater_than_or_equal, or less_than_or_equal. The alert fires when (current price) <operator> (threshold).
thresholdYesThe price threshold to compare against, in the commodity's native currency (e.g., 70 for $70/barrel).
nameNoOptional human-readable label for the alert. If omitted, a descriptive name is generated.
notifyNoOptional HTTPS webhook URL to POST to when the alert triggers (in addition to email). Must start with https://.
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses persistence, notification methods (email and optional webhook), and requirement for API key. Could mention rate limits or consequences of missing API key.

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, then usage, requirements, and management. No wasted words.

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?

Covers purpose, usage, persistence, side effects, and management. No output schema, so return values not expected. Could clarify distinction with opa_create_price_subscription.

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. Description adds little beyond schema; the operator description in schema already explains the alert condition. Does not elaborate on format of threshold or notify.

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?

Clearly states it creates a persistent price alert tied to the user's account, with specific verb 'create' and resource 'price alert'. Distinguishes from sibling tools opa_list_price_alerts and opa_delete_price_alert by mentioning persistence and management.

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?

Explicit usage example given ('tell me when Brent drops below $70'), and states it requires an API key and writes to account. Does not mention when not to use or differentiate from similar tools like opa_create_price_subscription.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OilpriceAPI/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server