get_spss_syntax
Retrieve SPSS syntax for a Nettskjema form's submission data as JSON, with a configurable character cap and truncation flag to control context size.
Instructions
Get SPSS syntax for a form's submission data.
The spec documents this route's response as an SPSS syntax file. The syntax is returned as JSON with a size signal and truncation flag. The result is capped at max_chars (default 1,000,000) to bound context size: check the truncated field to see if the full syntax was cut.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | The form's numeric ID. | |
| max_chars | No | Maximum characters to return. Defaults to this MCP server's configured limit (1,000,000). When the cap is reached, the text is cut at the last complete newline before the limit and truncated is set to true. The caller may raise this limit arbitrarily by passing a larger value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |