extract_schemas
Extracts API schemas from source code by auto-detecting format from file contents, supporting MCP, OpenAPI, GraphQL, tRPC, REST, gRPC, Python, Go, and SQL DDL.
Instructions
Extract API schemas from source code. Supports: MCP tools (Zod), OpenAPI/Swagger specs, GraphQL SDL, tRPC routers, REST endpoints (Express/Fastify), gRPC/Protobuf services, Python (FastAPI/Flask decorators), Go (Gin/Chi handlers), and SQL DDL (CREATE TABLE, CREATE TYPE). Auto-detects format from file contents.
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": {
"rootDir": "<rootDir>"
},
"name": "extract_schemas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootDir | Yes | Root directory of server/API source code | |
| include | No | Glob patterns to include (e.g., **/*.ts, **/*.py, **/*.go, **/*.proto, **/*.sql) | |
| exclude | No | Glob patterns to exclude |