Skip to main content
Glama
firestore-guard-mcp

firestore-guard-mcp

by Adjureee

audit_firestore_project

Audit Firestore security rules and index definitions in a project directory to detect privilege escalations, validation bypasses, PII exposure, and redundant indexes.

Instructions

Auto-discover and audit firestore.rules and firestore.indexes.json in a Firebase project directory.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_firestore_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesPathNoOptional explicit path to firestore.rules
projectDirNoProject root directory (defaults to current working directory)
indexesPathNoOptional explicit path to firestore.indexes.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Audit' and 'auto-discover' imply a read-only analysis that locates files automatically, but the description says nothing about permissions, what happens when either file is missing, whether the audit is best-effort or fails fast, or what the results look like.

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?

A single sentence with no filler, leading with the verbs and naming the target artifacts immediately. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should say more about what an audit produces and how failures are surfaced, since none of that lives in structured fields. It covers the discovery inputs adequately but leaves the entire result side of the tool undocumented.

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%, so all three optional parameters (rulesPath, indexesPath, projectDir) are already documented in the schema, which sets the baseline at 3. The description adds only a light framing that the paths live inside a Firebase project directory and that discovery is automatic, without explaining how explicit paths interact with projectDir.

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 compound action (auto-discover and audit) and names the exact artifacts it operates on (firestore.rules, firestore.indexes.json) within a Firebase project directory. That scope implicitly separates it from the single-artifact siblings audit_firestore_rules and audit_firestore_indexes, but it never names them or states the relationship 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?

There is no explicit when-to-use or when-not-to-use statement and no reference to the sibling tools. An agent can infer 'use this to check both files at once in a project root' from the wording, but the choice between this and the two narrower audit tools is left to inference.

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