ValidationResult model contains the outcome of validating an AGENTS.md file, including any errors, warnings, and optional endpoint reachability checks.
Fields
Whether the AGENTS.md file passed validation.
true if the file is valid with no errors, false if there are validation errors.An array of error messages describing validation failures. Empty if the file is valid.Each item is a string describing a specific validation error, such as:
- Missing required fields
- Invalid data types
- Malformed JSON schemas
- Incorrect file structure
An array of warning messages for non-critical issues. The file can still be valid even with warnings.Warnings might include:
- Missing optional but recommended fields
- Formatting inconsistencies
- Deprecated patterns
- Best practice suggestions
Results from checking the reachability of endpoints declared in the AGENTS.md file. Only populated when using the
--check-endpoints flag.Examples
Valid AGENTS.md
Invalid with Errors
With Endpoint Checks
Usage
TheValidationResult is returned by:
CLI Validation
API Endpoint
Interpreting Results
- valid: true, no errors: The AGENTS.md file is well-formed and complete
- valid: false, with errors: Critical issues prevent the file from being used by agents
- warnings present: The file is usable but could be improved
- endpoint_results: Shows whether declared endpoints are actually accessible (useful for CI/CD validation)