get_form_answers
Export all answers from a Nettskjema form as newline-delimited JSON, with optional question filters and row limits to keep large datasets manageable.
Instructions
Stream all answers for a form, as newline-delimited JSON.
This exports every answer on the form, one JSON object per line (NDJSON), so a large form's answers are never held whole in memory. Filter by element_ids to export only specific questions. The result is capped at max_rows (default 1000) to bound context size: check the returned truncated field to see if more data exists. When truncated is true, the reason field distinguishes a hit row cap ("rowCap") from a connection that closed mid-line ("incompleteFinalLine").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | The form's numeric ID. | |
| max_rows | No | Maximum number of rows to return. Defaults to this MCP server's configured limit (1000). When the cap is reached, truncated is set to true and reason is "rowCap". The caller may raise this limit arbitrarily by passing a larger value. | |
| element_ids | No | List of element IDs to filter by. When provided, only answers for these elements are returned. Sent as repeated query parameters (element-ids=1&element-ids=2&...). | |
| optimize_for_large_data | No | Request optimization for large datasets. | |
| submission_ids_greater_than | No | Only include answers from submissions with IDs above this value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |