Skip to main content
Glama

Create a Price Alert

alerts_create_price

Creates a Price Alert in the signed-in member's account: it fires when a market's price crosses, crosses above, crosses below, is above or is below a level the member chose, as often as frequency says. It notifies the member in-app (Vela on the web and on their phone) when the account has that channel; the result says plainly which channel it notifies, or that it notifies no one. With chart_id from chart_open it also draws the level on that chart. Use alerts_create_custom for an indicator's condition instead. How many alerts the member may have on comes from their LuxAlgo plan: at a limit the call answers with the limit and where to upgrade, and nothing is created. It changes the member's account, so the chat app may ask the user to confirm first. Requires signing in with a LuxAlgo account (OAuth).

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": {
      "symbol": "<symbol>",
      "condition": "<condition>",
      "level": "<level>",
      "context": "<context>"
    },
    "name": "alerts_create_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe alert's name; default says the market and the level.
levelYesThe price level, e.g. 100000 or "0.00012345".
symbolYesThe market, a market as source:TICKER, e.g. "binance:BTCUSDT", "hyperliquid:BTC", "coinbase:BTC-USD", "edgx:AAPL" (US stocks and ETFs; "NASDAQ:AAPL" works too), "fx:EURUSD", "commodities:XAUUSD", "cme:ES1!". A bare stablecoin pair ("BTCUSDT") is read as Binance and a bare "ES1!" as CME.
contextYesExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
chart_idNoA chart_id from chart_open: the level is also drawn on that chart.
conditionYescross: price crosses the level either way; cross_up: crosses above it; cross_down: crosses below it; above / below: price is above / below it.
frequencyNoHow often it fires: once (then it stops), once_per_bar (at most once per bar of `timeframe`), once_per_bar_close (when a bar of `timeframe` closes with the condition met), every_time (each time, spaced by min_interval_seconds).once
timeframeNoThe bar for once_per_bar and once_per_bar_close.1h
min_interval_secondsNoevery_time only: the least time between two fires, in seconds (default 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the tool mutates the signed-in member's account, may require chat confirmation, can fail at plan limits with no alert created, and reports which notification channel is used or that none is used. It also explains the effect of chart_id and the auth requirement.

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?

The purpose is front-loaded and every sentence carries useful information, but the definition is a dense single paragraph with several long clauses. It is appropriately sized for a complex mutation tool yet could be easier to scan.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex mutation tool with nine parameters, no output schema, and plan/auth dependencies, the description covers the critical context: trigger behavior, notification outcome, chart integration, alternative tool, plan-limit failure, confirmation, and authentication.

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 coverage is 100%, and the schema already documents condition, frequency, chart_id, level, symbol, and timeframe semantics in detail. The description reinforces the behavioral meaning of condition and frequency, but adds little parameter-level detail beyond what the schema already provides.

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 states a specific verb and resource: it creates a Price Alert for a market when price crosses, crosses above, crosses below, is above, or is below a chosen level. It also distinguishes the tool from its closest sibling by directing indicator-condition alerts to alerts_create_custom.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use guidance: use alerts_create_custom for an indicator's condition instead. It also explains the alternative outcome at a plan limit, the possibility of chat confirmation, and the LuxAlgo OAuth requirement.

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.