Skip to main content
Glama
abushadab

Self-Hosted Supabase MCP Server

by abushadab

generate_typescript_types

Generate TypeScript types from a Supabase database schema and save the file to a specified path. Requires DATABASE_URL configuration and Supabase CLI installation to streamline type generation for development projects.

Instructions

Generates TypeScript types from the database schema using the Supabase CLI (supabase gen types) and downloads the file to the specified absolute path. The tool returns the current platform (win32, darwin, linux) to help with path formatting. Requires DATABASE_URL configuration and Supabase CLI installed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
included_schemasNoDatabase schemas to include in type generation.
output_filenameNoFilename to save the generated types to in the workspace root.database.types.ts
output_pathYesAbsolute path where to download the generated TypeScript file. Examples: Windows: "C:\\path\\to\\project\\database.types.ts", macOS/Linux: "/path/to/project/database.types.ts". This parameter is required.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: it downloads a file to a specified path, returns platform information for path formatting, and has prerequisites (DATABASE_URL, Supabase CLI). It does not mention error handling, performance, or rate limits, but covers essential operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose stated first, followed by key behaviors and prerequisites. Every sentence adds necessary information without redundancy, making it efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (involving file generation and external CLI usage), no annotations, and no output schema, the description is reasonably complete. It covers purpose, behavior, and prerequisites, but could benefit from details on error cases or output format beyond platform info.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by mentioning the use of 'supabase gen types' and platform-specific path examples, but does not provide additional semantic context for parameters like included_schemas or output_filename.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Generates TypeScript types from the database schema') and resource ('using the Supabase CLI'), distinguishing it from sibling tools like list_tables or execute_sql. It precisely defines what the tool does without being tautological.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool (for generating TypeScript types from a Supabase database schema) and mentions prerequisites (DATABASE_URL configuration, Supabase CLI installed). However, it does not explicitly state when not to use it or name specific alternatives among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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/abushadab/selfhosted-supabase-mcp-basic-auth'

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