STRΛTΛ19
Tools

strata19.endpoint_inventory

Expert tool

What it does

Whole-repo HTTP endpoint inventory, plus the API and data contracts derived from code, built from the role data the framework-semantics and pack planes already compute (route registrations, middleware role bindings, accepted request schemas, direct persistence calls), never a new analysis pass. list answers "how many endpoints, how many unauthenticated, how many take input with no validation, what tables does anything here touch". query answers a specific question: "what writes to the users table", "which endpoints touch billing", "which endpoints have no auth binding". Paths carry their router mount prefix (/api/users, not /users). export_openapi renders the inventory as OpenAPI 3.1, openapi_import reads an openapi/swagger file, openapi_drift compares it with the routes in code. data_model lists entities, columns and relations from Drizzle/Prisma/SQL with a Mermaid ER diagram; data_model_export writes them as SQL, a Prisma schema or Mermaid. contract_check (with providerProjectId) compares ANOTHER registered project's endpoints with the HTTP call sites in this one (calls matching no endpoint, method mismatches, endpoints nothing here calls); it needs a person-confirmed cross-project reference.

When to use it

Use when: "how many API endpoints does this have" · "which endpoints are unauthenticated" · "what writes to the X table" · "which endpoints touch billing/payments/PII" · "audit my API surface" · onboarding to an unfamiliar repo's HTTP surface

Also use when: "export my API as OpenAPI" · "does openapi.yaml match the code" · "show the data model / ER diagram" · planning a schema/table change and needing the affected endpoints, or reviewing a new endpoint against the repo's auth/validation conventions

When not to use it

you want ONE route's full middleware chain with caller enrichment — use strata19.project_intelligence (actions: route_context, middleware_chain); or a severity-graded finding — use the detector/finding tools (this tool never asserts something is WRONG, only what IS).

Availability

TierExpert
LifecycleLive
Taught bystrata19-coordinate-multi-repo-work