Skip to main content
Glama
Firenook

Firenook

Official

auth_set_claims

DestructiveIdempotent

Set custom claims on Firebase Auth emulator users, replacing all claims or merging selected keys; null values remove individual keys for precise access control.

Instructions

Set an Auth emulator user's custom claims: replace them (as the Admin SDK's setCustomUserClaims does) or with mode merge change only the given keys (a null value removes that key).

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": {
      "claims": "<claims>"
    },
    "name": "auth_set_claims"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidNoAccount id
modeNoDefault replace
uidsNoSeveral account ids (instead of uid)
claimsYesCustom claims as JSON
tenantNoTenant id; omit for a project-level user

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true and readOnly=false, so the safety profile is known. The description adds valuable context beyond that: replace mode overwrites the entire claim set (as Admin SDK setCustomUserClaims does), merge only touches given keys, and null deletes a key — precisely what an agent needs to know about data loss.

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 core action first and the mode semantics in a compact parenthetical. It is dense but every clause carries information; no filler or repetition.

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 5-parameter mutation tool with no output schema, the description covers the critical semantics (mode, replacement vs merge, null deletion) and frames it as an Auth emulator operation. Remaining details such as uid/uids/tenant selection are adequately handled by the fully documented schema.

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 real meaning about the 'mode' parameter's replace vs merge semantics and the null-value deletion convention in 'claims' — behavior not conveyed by the schema's terse 'Default replace' note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Set an Auth emulator user's custom claims', with the replace/merge behaviors spelled out. It is clearly distinguishable from the sibling auth_remove_claims by scope, though it does not name any sibling explicitly.

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?

The description explains how the two modes differ and that a null value removes a key, which implicitly tells the agent when merge is appropriate. It gives no explicit when-to-use/when-not-to-use guidance relative to alternatives such as auth_remove_claims or auth_mint_token.

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