Skip to main content
Glama

Supabase Set Secret

supabase_set_secret
DestructiveIdempotent

Sets one edge-function secret on a Supabase project server-side, ideal for adding a single value like FAL_KEY; live writes require human approval and values are never echoed.

Instructions

Write one edge-function secret on a Supabase project, server-side only (live write, needs human approval).

Use when: adding a single secret such as FAL_KEY. backend_deploy sets the standard set for you. Returns: {ok, name} (value never echoed), or an approval_required refusal.

Input Schema

NameRequiredDescriptionDefault
refYesSupabase project ref (20-char id from supabase_list_projects, e.g. 'abcdefghijklmnopqrst').
nameYesEdge function secret name, e.g. 'FAL_KEY'.
valueYesSecret value; written server-side and never echoed back.
approval_idNoApproval id from a previous approval_required refusal; omit on the first call. The human approves out-of-band with `appfactory approve <id>`, then call again with the same arguments and this id.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.5
    • addedInput schema / properties / approval_id / description
      Added value: +"Approval id from a previous approval_required refusal; omit on the first call. The human approves out-of-band with `appfactory approve <id>`, then call again with the same arguments and this id."
    • addedInput schema / properties / name / description
      Added value: +"Edge function secret name, e.g. 'FAL_KEY'."
    • addedInput schema / properties / ref / description
      Added value: +"Supabase project ref (20-char id from supabase_list_projects, e.g. 'abcdefghijklmnopqrst')."
    • addedInput schema / properties / value / description
      Added value: +"Secret value; written server-side and never echoed back."
  2. First observedv0.1.1

TDQS

A4.7/5.0
Behavior4/5

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

Adds meaningful context beyond the annotations: 'server-side only', 'live write, needs human approval', and the approval round-trip that yields an approval_required refusal. The annotations already declare destructive/idempotent/openWorld, and the description does not contradict them, but it could say more about overwrite behavior for an existing secret name.

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 short, front-loaded lines covering what it does, when to use it, and what it returns. Every sentence earns its place with no filler.

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

Completeness5/5

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

Despite an output schema existing, the description still surfaces the two possible outcomes ({ok, name} vs approval_required refusal), and the approval workflow is fully described. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds workflow-level meaning by tying the approval_required refusal to the retry-with-approval_id pattern and by stressing that the value is never echoed, which helps the agent interpret the required params and the optional approval_id.

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 precise verb+resource+scope: 'Write one edge-function secret on a Supabase project'. It explicitly distinguishes itself from the bulk alternative ('backend_deploy sets the standard set for you'), so an agent can choose between them without opening a schema.

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

Usage Guidelines5/5

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

Provides an explicit 'Use when' clause with a concrete example (adding a single secret such as FAL_KEY) and names the alternative tool for the batch case. When-to-use and when-not-to-use are both covered.

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