Skip to main content
Glama

get_types

Generate TypeScript type declarations for OpenAPI schemas or endpoints, automatically including all dependencies to ensure type safety.

Instructions

Generate self-contained TypeScript type declarations for specified schemas or for all schemas used by a specific endpoint. Endpoint mode follows supported internal component $refs before collecting schema dependencies. Provide exactly one of: "schemas" (array of schema names), "method" + "path" (endpoint), or "operationId". Transitive dependencies are included automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemasNoArray of schema names from components/schemas (e.g. ["User", "Address"])
methodNoHTTP method for endpoint mode (e.g. get, post)
pathNoEndpoint path for endpoint mode (e.g. /users/{id})
operationIdNoOperation ID to generate types for (e.g. listUsers)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ycs77/apifable'

If you have feedback or need assistance with the MCP directory API, please join our Discord server