Skip to main content
Glama

security_firebase_rules_check

Read-only

Firebase Security Rules Audit — Offline audit of Firebase security rules: Cloud Firestore and Cloud Storage rules (rules_version/service/match/allow) or Realtime Database rules JSON. Flags public read/write (allow ... if true or no condition), test-mode expiry rules (request.time < timestamp.date), any-signed-in-user writes (request.auth != null only), recursive {document=**} grants, missing data validation, Storage uploads without size/content-type limits, unverified email trust, RTDB .read/.write true and auth != null. Returns per-statement paths, findings with fixes, score, grade and verdict OK/REVIEW/INSECURE. Param rules= (aliases text=, config=). Price: $0.005 USDC (Base, via x402).

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": {
      "rules": "<rules>"
    },
    "name": "security_firebase_rules_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYese.g. rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if true; } } }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the supplied annotations by disclosing the exact finding categories it emits (public read/write, test-mode expiry, `{document=**}` recursion, Storage upload limits, RTDB `.read/.write true`), plus the return shape: per-statement paths, findings with fixes, score, grade, and an OK/REVIEW/INSECURE verdict. It even discloses the paid-call cost ($0.005 USDC via x402), which an agent must know before invoking.

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?

Front-loads purpose, then the detection list, then return values, then aliases and pricing — a sensible information hierarchy with no filler sentences. The mid-section is a dense enumeration of checks, but each item is a distinct capability rather than padding.

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?

For a single-parameter tool with no output schema, the description supplies everything needed: input format example, alias names, the full set of findings, the shape of the result, and the cost model. An agent can decide to call it and interpret the response without further information.

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

Parameters3/5

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

Schema description coverage is 100% and only one parameter exists, so the schema already carries the essential meaning and the baseline of 3 applies. The description does add that `rules=` has aliases `text=` and `config=`, which is genuinely useful, but it does not clarify size limits or whether a file path is acceptable instead of inline text.

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 action (offline audit) on a specific artifact (Firebase Security Rules), and enumerates the three dialects covered: Cloud Firestore, Cloud Storage, and Realtime Database JSON. This cleanly separates it from the many sibling `security_*_check` tools, each of which audits a different config format.

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 phrase 'Offline audit' implicitly tells the agent no credentials or live project access are needed, which is mild usage context. However, it never states when to prefer this over a sibling check, what input it refuses (e.g., non-Firebase configs), or any prerequisite such as supplying the raw rules text rather than a project ID.

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