Skip to main content
Glama

supabase_apply_migration

Apply a named, tracked SQL migration to a Supabase project's database through the Management API, enabling versioned schema changes.

Instructions

Apply a named, tracked migration to a Supabase project's database via the Management API.

Input Schema

NameRequiredDescriptionDefault
sqlYesThe migration SQL.
nameYesShort snake_case migration name.
api_keyNoLegacy token alias.
project_refYesSupabase project ref.
access_tokenNoOptional Supabase access token. Omit to use the connected login.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It implies the migration is recorded ('tracked') but says nothing about destructive DDL effects, irreversibility, required permissions, or whether it is transactional. For a database-mutating tool this is a significant gap.

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

Conciseness4/5

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

A single front-loaded sentence with no filler. It is well-sized for the tool, though it could have used the space to add usage or behavioral guidance.

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

Completeness3/5

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

For a mutating tool with no annotations and no output schema, the agent still lacks information about tracking behavior, side effects, and permissions. The 'tracked migration' and 'Management API' references give partial context, but not enough to fully cover the gap.

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 every parameter including the sql/name/project_ref fields and the token aliases. The description adds no parameter-level detail beyond that, so baseline 3 applies.

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?

States a specific verb (apply) and resource (named, tracked migration) scoped to a Supabase project's database via the Management API. It differentiates from supabase_execute_sql only implicitly through 'named, tracked migration', but an agent can still tell what the tool does.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance or comparison to the sibling supabase_execute_sql, which is the obvious alternative for running SQL. The 'tracked migration' phrasing hints at the distinction but leaves the agent to infer it.

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

Deploy Server

Other Tools