Alerts on price, on a study's lines, on a drawing or on what a study declares: made, edited, paused, armed and removed — the same alerts the person sees in the Alerts panel.
Reached from a connected client as client.alert in Python, client.alert in JavaScript, client.alert() in Rust — each tool below shows its call in every language.
alert_arm#
Arm an alert again
Arms an alert again from nothing — a paused one resumed, a fired or expired one re-armed — as its row's Resume and Re-arm do. Answers the alert.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
alert | string | yes | — | The alert's uri. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "alert_arm",
"arguments": {
"alert": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.alert
def arm(self, alert: str) -> Dict[str, Any]JavaScript
client.alert
arm(args)C#
client.Alert
public Task<JsonNode?> Arm(string alert, CancellationToken ct = default)Go
client.Alert
func (a *AlertAPI) Arm(ctx context.Context, args AlertArmArgs) (any, error)Java
client.alert
public Object arm(ArmArgs args)C++
client.alert
Json arm(const ArmArgs &args)Julia
client.alert
arm = (alert)R
client$alert
`arm` = function(alert)Rust
client.alert()
pub fn arm(&self, args: AlertArmArgs) -> Result<Value, Error>alert_create#
Make an alert
Makes an alert on a workbench's market, as the alert editor's Create does — on a laboratory bench it runs on that bench's clock — and refuses one the editor would not make, in its terms. Answers the alert as filed, with its uri.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | The workbench's uri: a laboratory bench's alert runs on its clock; a real bench's on its feed. |
spec | any | yes | — | The alert as it is filed: conditions (each a source, an operator, a value or a pair, an interval), trigger, expires_ms, message, channels, driver. |
symbol | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "alert_create",
"arguments": {
"bench": "…",
"spec": "…",
"symbol": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.alert
def create(self, bench: str, symbol: str, spec: Any) -> Dict[str, Any]JavaScript
client.alert
create(args)C#
client.Alert
public Task<JsonNode?> Create(string bench, string symbol, object spec, CancellationToken ct = default)Go
client.Alert
func (a *AlertAPI) Create(ctx context.Context, args AlertCreateArgs) (any, error)Java
client.alert
public Object create(CreateArgs args)C++
client.alert
Json create(const CreateArgs &args)Julia
client.alert
create = (bench, symbol, spec)R
client$alert
`create` = function(bench, symbol, spec)Rust
client.alert()
pub fn create(&self, args: AlertCreateArgs) -> Result<Value, Error>alert_edit#
Edit an alert
Gives an alert a new specification, as the editor's Save does; an edit arms it again from nothing. Answers the alert.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
alert | string | yes | — | The alert's uri. |
spec | any | yes | — | The whole specification it is to have, as alert_create takes it. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "alert_edit",
"arguments": {
"alert": "…",
"spec": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.alert
def edit(self, alert: str, spec: Any) -> Dict[str, Any]JavaScript
client.alert
edit(args)C#
client.Alert
public Task<JsonNode?> Edit(string alert, object spec, CancellationToken ct = default)Go
client.Alert
func (a *AlertAPI) Edit(ctx context.Context, args AlertEditArgs) (any, error)Java
client.alert
public Object edit(EditArgs args)C++
client.alert
Json edit(const EditArgs &args)Julia
client.alert
edit = (alert, spec)R
client$alert
`edit` = function(alert, spec)Rust
client.alert()
pub fn edit(&self, args: AlertEditArgs) -> Result<Value, Error>alert_pause#
Pause an alert
Pauses an alert, as its row's Pause does. Answers the alert.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
alert | string | yes | — | The alert's uri. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "alert_pause",
"arguments": {
"alert": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.alert
def pause(self, alert: str) -> Dict[str, Any]JavaScript
client.alert
pause(args)C#
client.Alert
public Task<JsonNode?> Pause(string alert, CancellationToken ct = default)Go
client.Alert
func (a *AlertAPI) Pause(ctx context.Context, args AlertPauseArgs) (any, error)Java
client.alert
public Object pause(PauseArgs args)C++
client.alert
Json pause(const PauseArgs &args)Julia
client.alert
pause = (alert)R
client$alert
`pause` = function(alert)Rust
client.alert()
pub fn pause(&self, args: AlertPauseArgs) -> Result<Value, Error>alert_remove#
Remove an alert
Removes an alert, as its row's x does. Answers the alerts left.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
alert | string | yes | — | The alert's uri. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "alert_remove",
"arguments": {
"alert": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.alert
def remove(self, alert: str) -> Dict[str, Any]JavaScript
client.alert
remove(args)C#
client.Alert
public Task<JsonNode?> Remove(string alert, CancellationToken ct = default)Go
client.Alert
func (a *AlertAPI) Remove(ctx context.Context, args AlertRemoveArgs) (any, error)Java
client.alert
public Object remove(RemoveArgs args)C++
client.alert
Json remove(const RemoveArgs &args)Julia
client.alert
remove = (alert)R
client$alert
`remove` = function(alert)Rust
client.alert()
pub fn remove(&self, args: AlertRemoveArgs) -> Result<Value, Error>