check_api
Verify generated code against indexed OpenAPI schemas to catch invalid endpoints, wrong HTTP methods, missing parameters, deprecations, and version conflicts before runtime.
Instructions
Verify agent/generated code against indexed OpenAPI schemas and documentation. Detects invalid endpoints, wrong HTTP methods, missing required parameters, deprecations, removed APIs, version syntax conflicts, and response assumptions. Distinguishes verified, warning, mismatch, and insufficient_evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The generated code snippet, route handler, or API client call to verify. | |
| format | No | Response format: "markdown" (default, human/agent-readable documentation) or "json" (structured raw machine data). | |
| library | No | Target library or SDK name (e.g. "stripe", "next"). | |
| project | No | Workspace root directory to auto-resolve project dependencies and versions. | |
| snippet | No | Alternative alias for code snippet. | |
| version | No | Target documentation/API version (e.g. "v14", "v15", "1.0"). If omitted, project version is auto-detected. | |
| filePath | No | Optional path of the file being verified for context. | |
| language | No | Programming language of the code (e.g. "typescript", "javascript", "python", "curl"). |