Skip to main content
Glama

Supabase Get Keys

supabase_get_keys
Idempotent

Retrieves a Supabase project's URL and anon key for app or backend wiring, while saving the service_role key to a local 0600 file and never returning it.

Instructions

Get a Supabase project's URL and anon key; the service_role key is saved to ~/.appfactory/supabase/.json (0600) and never returned.

Use when: wiring the app (app_inject_config) or backend. Returns: {ok, project_url, anon_key, service_role_key_file}.

Input Schema

NameRequiredDescriptionDefault
refYesSupabase project ref (20-char id from supabase_list_projects, e.g. 'abcdefghijklmnopqrst').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.5
    • addedInput schema / properties / ref / description
      Added value: +"Supabase project ref (20-char id from supabase_list_projects, e.g. 'abcdefghijklmnopqrst')."
  2. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already disclose readOnlyHint=false, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description adds valuable side-effect context beyond annotations: the service_role key is written to ~/.appfactory/supabase/<ref>.json with 0600 permissions and is never returned. It does not cover auth prerequisites or overwrite behavior, so a 4 rather than 5.

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?

Three compact lines: core action first, then 'Use when', then 'Returns'. Every sentence earns its place and nothing is buried or redundant.

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 a full output schema and annotations covering safety and openness, the description supplies the essential missing context (the file side effect and permissions). It could mention auth or file-overwrite behavior, but is otherwise complete for correct invocation.

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%, and the single 'ref' parameter is fully documented in the schema. The description adds no additional parameter meaning, so the baseline 3 is appropriate.

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?

States a specific verb and resource: gets a Supabase project's URL and anon key, and clarifies that the service_role key is saved to a file rather than returned. This distinguishes it clearly from siblings like supabase_set_secret, supabase_create_project, and supabase_run_sql.

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?

Provides explicit when-to-use guidance: 'wiring the app (app_inject_config) or backend.' It does not name alternatives or when-not-to-use cases, but the context is clear enough for correct selection.

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