Skip to main content
Some queries — especially large pagination or CSV export jobs — run as background operations. The Xpoz MCP server provides two tools for managing these: checkOperationStatus and cancelOperation.

How Operations Work

When a tool triggers a long-running task, it returns an operation ID instead of immediate results. Your agent then polls for completion using checkOperationStatus.
Most AI agents handle this polling automatically. You typically don’t need to manage operations manually — just call a tool and your agent retrieves the results when ready.

Operation States

checkOperationStatus

Polls the status of an async operation and retrieves results when complete. What it returns by state:
Returns the operation results:
  • For query operations: Paginated results with data
  • For CSV export operations: An S3 download URL

cancelOperation

Gracefully stops a running operation. Only works on operations with running status. The operation stops at its next processing checkpoint.
If you receive an error that an operation was not found, it may have expired. Re-issue the original query to start a new operation.
  • Response Modes — CSV mode triggers async operations for large exports
  • Pagination — Paging mode may trigger operations for large result sets