Wait for next signal
subscribe_signalLong-poll for new signals on an indicator, symbol, and resolution, resolving when a signal newer than lastSeenSignalTs appears or timedOut if none arrive.
Instructions
Long-poll for a NEW signal on (indicator, symbol, resolution). Holds the call for up to timeoutMs (1000-50000 ms) and resolves the instant a signal with time > lastSeenSignalTs is detected. Returns {signal: null, timedOut: true} if nothing happens within the window. Pair with get_indicator_signal to bootstrap lastSeenSignalTs. Idiomatic agent loop: get → subscribe → react → update watermark → loop.
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": {
"indicator": "<indicator>",
"symbol": "<symbol>",
"resolution": "<resolution>"
},
"name": "subscribe_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | ||
| symbol | Yes | ||
| provider | No | ||
| indicator | Yes | Indicator key as returned by list_indicators, e.g. sniperV3 | |
| timeoutMs | No | ||
| resolution | Yes | ||
| lastSeenSignalTs | No |