Check Nix Syntax
syntax_checkParse one or more Nix files without evaluating or building them, catching syntax errors before evaluation. Use it to validate file syntax safely via nix-instantiate --parse.
Instructions
Parse one or more Nix files without evaluating or building them. Uses nix-instantiate --parse for compatibility.
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": {
"files": "<files>"
},
"name": "syntax_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory under an MCP workspace root. | |
| files | Yes | ||
| timeoutSeconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| status | Yes | ||
| outputs | Yes | ||
| summary | Yes | ||
| diagnostics | Yes |