nv_retrieve_alerts
Retrieve Sales Navigator lead and account alerts (root-only nv.retrieveAlerts). Returns a workflow acknowledgement; use get_workflow_result with operationName nvRetrieveAlerts. Final data is an array of alerts: id (notification URN), type (open upstream machine code), publishedAt (ISO UTC), subject {type: lead/account, urn, name: string|null, url, saved: boolean|null}, headline, text, subline, url, relatedEntityUrn (all five nullable strings). Subject URLs can be passed to nv_fetch_person or nv_fetch_company. Filters are ANDed. Saved-search and shared-list system notifications are excluded.
Linked API actions are queued into a cloud-browser workflow and may take several minutes. The server returns immediately after starting the workflow with {status: 'pending'|'running', pendingReason, workflowId, operationName, message}. To retrieve the final result, call get_workflow_result with the returned workflowId and operationName — it will long-poll until completion or the request budget elapses, then return either the final result or another in-progress snapshot. Do not retry the original tool while a workflow is still running; that creates duplicate queued work.
A pending workflow carries pendingReason: 'queued' means it is waiting its turn behind other work on the same account and will start within minutes. 'outsideWorkingHours' means the account has configured working hours and the workflow is parked until they reopen — possibly the next working day. In that case get_workflow_result returns immediately instead of polling, message states when the window opens, and you should report that to the user rather than looping.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nv_retrieve_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sales Navigator ordering; latest is newest first. | latest |
| limit | No | Maximum number of matching alerts to return. | |
| filter | No |