Skip to main content
Glama
firestore-guard-mcp

firestore-guard-mcp

by Adjureee

audit_firestore_rules

Audits Firestore security rules to detect privilege escalations, validation bypasses, and PII exposure, helping you identify and fix risky rule configurations.

Instructions

Audit Firestore security rules for vulnerabilities and anti-patterns.

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_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathNoPath to firestore.rules file
rulesContentNoRaw contents of firestore.rules

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet it never says whether the tool reads from disk, whether it is purely read-only, or what the audit output looks like. It also doesn't clarify the relationship between the two input parameters, which appear to be alternative sources of the same rules.

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 no redundancy. It is efficient, though it is also the minimum amount of text possible and leaves no room for the important input-mode clarification.

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

Completeness2/5

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

For a tool with zero annotations, no output schema, and two optional parameters that plausibly serve as alternative inputs, the description should explain the input selection and the nature of the audit result. Neither is addressed, leaving meaningful gaps.

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 coverage is 100%, so both parameters are documented in the schema, and the baseline of 3 applies. However, the description adds no meaning beyond the schema, notably whether filePath and rulesContent are mutually exclusive or when each is preferred.

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 ('Audit') and resource ('Firestore security rules') plus the goal ('vulnerabilities and anti-patterns'), which distinguishes it from siblings like audit_firestore_indexes and audit_firestore_project. The scope is clear without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to choose this over audit_firestore_indexes or audit_firestore_project, nor on when to use the filePath parameter versus passing rulesContent inline. The agent must infer both the routing and the input mode.

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