export_api_data
Exports large API result sets to CSV in batches when a response is too large, including keyed or singleton endpoints as single rows.
Instructions
Export large API result sets to a CSV file. Fetches data in batches of 100 records using $top/$skip pagination and saves to ~/Downloads/ (or ~/.ifs-mcp/exports/ if that doesn't exist). Use this when call_protected_api returns a 'Response too large' warning. Keyed/singleton endpoints (e.g. CompanySet(Company='10')) are also supported - exported as a single row, without pagination.
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": {
"endpoint": "<endpoint>",
"method": "<method>"
},
"name": "export_api_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body (for POST/PUT/PATCH) | |
| method | Yes | HTTP method | |
| headers | No | Optional request headers. Only If-Match, If-None-Match, and X-IFS-Content-Disposition are allowed - any other header is rejected. | |
| endpoint | Yes | API endpoint to call (same as used with call_protected_api) | |
| filename | No | Output filename without extension (e.g., 'quick-reports'). Defaults to 'export'. | |
| sessionId | No | Session ID (optional - uses saved session if not provided) | |
| environment | No | Optional: name of the IFS environment to export from, overriding the active selection. |