Skip to main content
Glama

Generate TypeScript types

types_generate
Read-onlyIdempotent

The supabase-js Database TypeScript type for a branch's schema. Save it as database.types.ts and use createClient(url, key). Scope: database:read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "types_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNoBranch id, e.g. `pr-42`. Default `production`.
schemasNoSchemas to include, default ["public"]
project_idNoProject id, e.g. `todo-app`. Default: the last one used, or your only one.
organization_idNoOrganization id, e.g. `acme`. Default: the token's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds one genuinely new behavioral fact — the required `database:read` scope — but says nothing about failure modes (unknown branch/project), output size, or whether a branch is auto-resolved.

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?

Two short sentences with the deliverable front-loaded, followed by a single actionable instruction for consuming the result. Nothing is redundant or padded.

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?

With no output schema, the description correctly identifies the return value and how to use it, and the schema covers all four optional parameters with defaults. It is slightly thin on edge cases — no branch yet, multiple projects — but complete enough to invoke correctly.

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%, with defaults for branch, schemas, project_id, and organization_id all documented in the schema itself. The description adds no meaning beyond that, which is the expected baseline when the schema carries the load.

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

Purpose4/5

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

The description names a concrete output — the supabase-js `Database` TypeScript type generated from a branch's schema — so an agent knows exactly what it receives. The generating verb is implied rather than stated, and no sibling is named, but no sibling in the list plausibly does this same job.

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

Usage Guidelines3/5

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

The second sentence gives post-invocation guidance (save as database.types.ts, use createClient<Database>) but not when-to-call guidance relative to alternatives such as tables_describe or tables_list. Usage is implied by the tool's purpose rather than stated with conditions or exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources