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.
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": {
"code_snippet": "<code_snippet>",
"concept_name": "<concept_name>"
},
"name": "verify_code_math"
}
}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') |