check_api
Verifies code against OpenAPI schemas, identifying invalid endpoints, wrong methods, missing parameters, deprecations, and version conflicts.
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. | |
| 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"). |