Flush Premium Stream Events
sap_premium_stream_flushFlush all buffered premium stream events for a session with cursor-based pagination. Unlike sap_premium_stream_poll (which returns a small batch for periodic polling), flush returns all events up to the cursor limit in a single call. Use this when an agent reconnects after a disconnection and needs to catch up on missed events. The nextCursor can be used as sinceEventId in subsequent calls to fetch only newer events.
SAP MCP execution guidance: Intent: SAP MCP tool workflow. Pricing: free; call directly without x402. Routing: free hosted call; call directly and keep it small/exact when possible. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of events to return. Default: 50, max: 500. | |
| eventType | No | Optional event type filter. | |
| sessionId | Yes | Active or recently active premium session id whose buffered events should be flushed. | |
| sinceEventId | No | Optional event id cursor. Only events delivered after this event id are returned. Use nextCursor from the previous flush call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | All buffered premium events matching the flush query, ordered oldest-first. | |
| nextCursor | Yes | Event id of the last event in this batch. Pass as sinceEventId in the next flush call to paginate. Null if no events were returned. | |
| sessionStatus | Yes | Current session status (active, closed, not_found). | |
| totalReturned | No | Total number of events returned in this batch. |