verify_code_math
Check code against documentation and reference implementations to catch logic errors, off-by-one bugs, and API contract mismatches. Returns a Pass/Fail verdict with discrepancy analysis.
Instructions
Verify code correctness against knowledge base documentation and reference implementations.
Checks your code against documented behavior, reference implementations, and API contracts — catching errors before they become bugs.
Use this tool when you need:
Verification that code correctly implements a concept, algorithm, or API contract
Detection of logic errors, off-by-one mistakes, or wrong assumptions
Comparison against reference implementations or documented behavior
Returns: verdict (Pass/Fail), analysis of discrepancies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_snippet | Yes | The code to verify | |
| concept_name | Yes | The concept, algorithm, or API being implemented (e.g., 'GPU memory allocation for vLLM', 'YAML config validation for ROLL') |