Skip to main content
Glama

auth_users_import

Upserts a batch of users, with their provider identities, into the auth schema of the Product database, keeping each id, email, password hash, confirmation time, timestamps and metadata, so nobody has to reset a password. Hashes must be bcrypt ($2a$, $2b$, $2y$) or argon2 ($argon2i$, $argon2id$); scrypt and anything else is refused, naming the row. Idempotent on id: running a batch twice changes nothing the second time. Up to 200 users per call. Hashes are never logged and never returned; the response carries counts only. Compare them with auth_get to verify a migration.

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>",
      "users": "<users>"
    },
    "name": "auth_users_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
usersYesField names follow the auth.users columns, so an export from a Supabase or GoTrue database maps straight across.
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.
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.
idempotency_keyNoReplaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior2/5

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

The description carries a lot of behavior the annotations do not: allowed hash algorithms, refusal that names the offending row, a 200-user batch cap, hashes never logged or returned, and counts-only responses. But it directly conflicts with idempotentHint=false by asserting "Idempotent on id: running a batch twice changes nothing the second time" — an agent relying on the hint for retry safety would get contradictory signals.

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?

The first sentence front-loads the operation, destination, and motivation; subsequent sentences each carry a distinct constraint (hash allowlist, idempotency, batch limit, no hash leakage, verification partner). No sentence is filler, and density is appropriate for a bulk mutation tool.

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?

With no output schema, the description correctly states what comes back (counts only) and reassures that sensitive material is not returned or logged. Combined with the batch cap, hash rules, and a verification sibling, an agent has everything needed to invoke this correctly.

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, but the description adds genuine meaning beyond the schema: the accepted hash families for encrypted_password (bcrypt $2a$/$2b$/$2y$, argon2i/argon2id, scrypt refused) and the 200-item ceiling on users. It does not touch confirm, dry_run, environment, or idempotency_key, but those are fully documented in the schema.

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?

"Upserts a batch of users, with their provider identities, into the auth schema of the Product database" names a specific verb (upsert), a specific resource (users + identities), and a destination. It also enumerates exactly which fields survive, which distinguishes it unambiguously from auth_update and auth_get.

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?

The migration use case is stated ("so nobody has to reset a password") and the follow-up verification path is spelled out ("Compare them with auth_get to verify a migration"). What's missing is an explicit exclusion — nothing says when to prefer auth_update for a single user or that this tool only targets the auth schema of one Product.

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