Telerik UI for Blazor — Validator
When to Run
CRITICAL: Run the validator after every code generation step that involves Telerik components.
- After generating or modifying any
.razorfile that contains Telerik components - After applying changes suggested by the component assistant
- Before considering any implementation task complete
Calling the Validator
Use the telerik_validator_assistant MCP tool. Provide the absolute path to the Razor file to validate.
Tool call:
telerik_validator_assistant({
filePath="<absolute path to the .razor file>"
})
Example:
telerik_validator_assistant({
filePath="C:/MyProject/Components/Pages/Dashboard.razor"
})
Interpreting Results
- No errors reported → the file passes validation. Proceed.
- Errors reported → fix ALL reported errors before proceeding.
- For each invalid property, use
telerik_component_assistantto find the correct parameter name or type. - Re-run the validator after fixing to confirm all issues are resolved.
- For each invalid property, use
What the Validator Checks
- Invalid or non-existent component parameters
- Incorrect parameter types or values
- Misconfigured component syntax
- Icon name validity
Validation Loop
1. Generate or modify Razor code with Telerik components
2. Call telerik_validator_assistant with the file path
3. If errors found:
a. Call telerik_component_assistant to find correct members
b. Fix all reported errors
c. Return to step 2
4. Proceed only when validator reports no errors