Zone file formatter
zone_formatParse, lint, and tidy a BIND DNS zone file offline, flagging missing trailing dots, apex CNAMEs, duplicate SPF, bad IPs, and TTL issues. text accepts BIND syntax (max 1 MB) with ";" comments and multiline parenthesized records; optional domain supplies $ORIGIN only if text has no $ORIGIN directive. Use to validate raw zone text before import, not live NS migration diffs (zone_precheck). Offline; skips AZURE ALIAS with info, reports bad lines as fail findings alongside output, and returns isError=true on empty input. Requires middle.network auth; uses 1 daily quota unit.
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": {
"text": "<text>"
},
"name": "zone_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | A BIND-style zone file. | |
| domain | No | The zone’s origin, when the file has no $ORIGIN line. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO-8601 UTC timestamp when the result was generated. | |
| ms | No | Elapsed execution time in milliseconds. | |
| data | Yes | Tool-specific structured payload (records, timings, parsed fields, or scores). | |
| tool | Yes | Catalog tool identifier. | |
| share | No | Optional shareable report link metadata. | |
| status | Yes | Overall diagnostic verdict (worst finding wins; no findings = pass). | |
| target | Yes | Normalised domain, IP, or input target. | |
| limited | No | Optional list of upstream data sources that were rate-limited or unavailable. | |
| summary | Yes | Plain-English and technical one-line summaries. | |
| findings | Yes | Ordered diagnostic findings with severity and actionable fixes. |