Skip to main content
Glama

auth_update

Changes how the auth service behaves: the site URL and the allow-list of redirect URLs, whether email needs confirming, whether new sign-ups are closed, whether anonymous sign-ins are allowed, which OAuth providers are on (Google and GitHub, with their client id and secret, stored as secrets and never returned), the minimum password length, how long access tokens last and how refresh tokens rotate. Only the fields you send change. The service restarts on the new settings with the old one serving until the new one is healthy. Signed-in users are not signed out. A field this operation does not have is refused by name, not ignored.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "productId": "<productId>"
    },
    "name": "auth_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoRequired for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would.
dry_runNoReturn the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before.
externalNoOAuth providers. Send client_secret only when it changes; it is stored as a secret and cannot be read back. The redirect URI to register with the provider is {AUTH_URL}/auth/v1/callback.
site_urlNoWhere auth redirects land by default, and the base for links in emails.
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
environmentNoEnvironment within a Product. Every Product has production; preview and development are optional. pr-<number> is the preview of an open pull request, made and removed by the GitHub integration on Pro.
disable_signupNotrue refuses new sign-ups. Existing users, and users you invite, still get in.
idempotency_keyNoReplaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money.
public_hostnameNoWhich hostname AUTH_URL names: the default one, or a custom domain attached to the auth service. Changing it changes the redirect URI OAuth providers must have registered.
email_autoconfirmNotrue signs people in without confirming their email. Leave it off unless the app confirms addresses itself.
anonymous_sign_insNotrue lets anyone create an anonymous user with an empty POST /auth/v1/signup (supabase.auth.signInAnonymously()), which they can later upgrade to a real account with updateUser. Anyone on the internet can do this, so put CAPTCHA and rate limiting in your app; auth limits it to 30 an hour per address. Default false.
jwt_expiry_secondsNoHow long an access token lasts. Default 3600.
password_min_lengthNoSix is GoTrue’s floor and 72 is bcrypt’s ceiling.
refresh_token_rotationNoEach refresh issues a new refresh token and retires the old one. On by default, and worth keeping on.
additional_redirect_urlsNoEvery URL an app may ask auth to redirect to, beyond site_url. Patterns are allowed, e.g. https://*.example.com/**. Replaces the list.
refresh_token_reuse_interval_secondsNoHow long a just-used refresh token may be presented again, so two tabs refreshing together do not sign the user out. Default 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the rolling restart behavior with the old instance serving until the new one is healthy, that signed-in users are not signed out, that OAuth client secrets are stored as secrets and never returned, and that unknown fields are rejected by name rather than silently ignored. These are exactly the operational facts an agent needs before mutating live auth config.

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?

The field list in the first sentence is dense but front-loads scope, and the follow-on sentences (partial update, restart safety, no sign-out, unknown-field rejection) each carry a distinct operational fact. Slight cost for the long enumerative opening, but there is essentially no filler.

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?

For a 16-parameter nested mutation with no output schema, the description supplies the important behavioral context: partial-update semantics, secret handling, restart/serving guarantees, and validation strictness. The main gap is that it never characterizes what a successful call returns or how to confirm the applied state.

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, and the description adds genuine cross-cutting semantics on top: patch-style partial updates, the write-only treatment of OAuth secrets, and the restart contract that follows a change. Most individual field meaning still lives in the schema, keeping this just below a top score.

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?

Opens with a specific verb and resource ('Changes how the auth service behaves') and then enumerates the exact configurable surface: site URL, redirect allow-list, email confirmation, signup closure, anonymous sign-ins, OAuth providers, password length, and token lifetime/rotation. An agent can distinguish this from auth_get or auth_enable without opening the schema.

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?

Usage is implied rather than stated: it is clearly the write/configure path for the auth service, and the partial-update contract ('Only the fields you send change') signals it is safe to send a subset. However, it never names alternatives such as auth_get for reading current settings or auth_enable for toggling the service, and gives no explicit when-not-to-use guidance.

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