Skip to main content
Glama

Set a price alert

set_price_alert

Create a one-shot Price Alert on toolforex (push + in-app notification when the mid price crosses the target; checked every minute). Step 3 of the /routine: one alert at the entry zone of each directional pair in today's plan. direction ABOVE fires when price >= target, BELOW when price <= target — pick the side the price must travel to reach the entry. Supported symbols: EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, NZDUSD, USDCHF, EURGBP, EURJPY, GBPJPY, GBPAUD, XAUUSD, XAGUSD, USOIL, BTCUSD, ETHUSD. Limit 5 active alerts (20 for VIP). Requires a personal SocialForex API token. Create one at /mt5 (section "Connect an AI assistant (MCP)") and add it to the MCP client as header Authorization: Bearer sfmcp_....

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>",
      "targetPrice": "<targetPrice>",
      "direction": "<direction>"
    },
    "name": "set_price_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYese.g. GBPAUD
directionYes
targetPriceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare it is a non-destructive, non-open-world write; the description goes far beyond that with the one-shot firing semantics, one-minute polling cadence, notification channels, a quota (5 active alerts, 20 for VIP), and the exact auth requirement including the header format and where to mint the token. These are precisely the operational facts an agent cannot infer from structured fields.

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?

Front-loads what the tool does and its firing behavior, then moves to workflow placement, direction semantics, constraints, and auth in a logical order. The symbol list is long but serves a real purpose; the auth-setup sentence is the only part bordering on tangential.

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?

Given no output schema, the description covers prerequisites, quotas, firing rules, and symbol scope thoroughly enough to call the tool correctly. It does not say what the call returns (e.g., an alert identifier the agent might need later to reference or cancel the alert), which is the one remaining gap.

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

Parameters4/5

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

Schema coverage is only 33%, so the description must compensate and largely does: it defines direction semantics ('ABOVE fires when price >= target, BELOW when price <= target — pick the side the price must travel') and enumerates the 16 supported symbols, bounding a parameter the schema leaves open. targetPrice still has no explicit description beyond 'the mid price crosses the target', which keeps it from a 5.

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 — 'Create a one-shot Price Alert' — plus the exact firing mechanism (push + in-app notification when the mid price crosses the target, checked every minute). This is clearly distinguishable from sibling tools like place_mt5_order or get_quotes.

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?

Anchors usage to a concrete workflow step ('Step 3 of the /routine: one alert at the entry zone of each directional pair in today's plan'), which tells the agent the circumstances that call for this tool. It does not name an alternative or an explicit when-not-to-use case, so it stops short of a 5.

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.

Resources