Skip to main content
Glama
Firenook

Firenook

Official

rules_get

Read-onlyIdempotent

Read the security rules in force for Firestore databases and Storage buckets, including rule source, enforcement status, and detected problems.

Instructions

Read the Security Rules in force: the Firestore rules of a database and the Storage rules of a bucket (source, whether they are enforced, the file and its problems). To test whether a request would be allowed, use rules_evaluate; for requests already denied, rules_list_denials.

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": "rules_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketNoStorage bucket; default the default bucket
serviceNoOnly firestore or storage; default both
databaseNoFirestore database id; default (default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already establish readOnly, idempotent, non-destructive, and closed-world behavior, so the bar is lower. The description adds real value by disclosing the returned fields (source, enforcement status, file, problems) despite there being no output schema. It stops short of noting edge cases such as what happens when no rules are configured.

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?

Two sentences, both load-bearing: the first front-loads the purpose and the returned content, the second front-loads the disambiguation. The parenthetical enumeration is dense but earns its place because no output schema exists to carry that information.

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 read-only tool with fully documented optional parameters and no output schema, the definition covers purpose, scope, returned content, and alternatives. The only small gap is behavior when a database or bucket has no rules in force, which an agent might reasonably wonder about.

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 parameter documentation is already handled, giving a baseline of 3. The description adds meaning by mapping the two scopes to parameters: Firestore rules are scoped to a database and Storage rules to a bucket, which reinforces the service/database/bucket semantics rather than merely restating them.

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?

The description names a specific verb+resource ('Read the Security Rules in force') and enumerates exactly what is returned: Firestore rules of a database and Storage rules of a bucket, plus source, enforcement status, file, and problems. It is clearly distinguishable from the two sibling rules tools without opening either schema.

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

Usage Guidelines5/5

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

It gives explicit routing: use rules_evaluate to test whether a request would be allowed, and rules_list_denials for requests already denied. That covers both the when-to-use case and the named alternatives, leaving nothing to inference.

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