Skip to main content
Glama
Firenook

Firenook

Official

auth_mint_token

Mint a one-hour Firebase ID token and refresh token for an existing Auth emulator user so agents can call Functions or REST APIs as that user, with optional per-token claims.

Instructions

Mint a Firebase ID token (valid one hour) and refresh token for an existing Auth emulator user, so an agent can call a function or the REST API as that user; claims replace the custom claims for this token only.

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": {
      "uid": "<uid>"
    },
    "name": "auth_mint_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesAccount id
claimsNoCustom claims for this token only (nothing is stored); omit for the user's own
tenantNoTenant id; omit for a project-level user
providerNoSign-in provider the token names, e.g. password or phone; default the user's first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, non-idempotent mutation; the description is consistent and adds the material facts an agent needs: tokens expire after one hour, and supplied claims are ephemeral and not persisted. It does not say whether minting invalidates prior tokens or how the refresh token should be used, which are the remaining behavioral gaps.

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 the verb, resource, validity window, and purpose stated first, followed by the claims-scoping caveat. It is dense but every clause carries information; only the semicolon-joined trailing clause makes it slightly harder to scan.

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 no output schema, the description correctly covers the return artifacts (ID token, refresh token, one-hour validity) and the mutation semantics. For a 4-parameter tool with nested claims this is nearly complete, though it could note interaction with token revocation or refresh-token usage.

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 meaning beyond the schema: claims replace the user's custom claims for this token only and nothing is stored, clarifying the interaction with auth_set_claims. It still says nothing about the tenant or provider parameters beyond what the schema already documents.

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 (Mint) and resource (Firebase ID token + refresh token) with scope: an existing Auth emulator user. It also explains the point of the tool (call a function or REST API as that user) and implicitly separates it from auth_set_claims by noting claims apply to this token only.

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?

Gives a clear when-to-use condition — impersonating an existing emulator user to call functions or the REST API — plus the precondition that the user must already exist. It does not explicitly name the alternative to use for persistent claims (auth_set_claims) or for invalidating tokens (auth_revoke_tokens), so routing is inferred rather than spelled out.

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