Back to Genai Toolbox

firestore-get-rules

docs/en/integrations/firestore/tools/firestore-get-rules.md

1.1.01.1 KB
Original Source

About

A firestore-get-rules tool retrieves the active Firestore security rules for the current project.

firestore-get-rules takes no input parameters and returns the security rules content along with metadata such as the ruleset name, and timestamps.

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: get_firestore_rules
type: firestore-get-rules
source: my-firestore-source
description: Use this tool to retrieve the active Firestore security rules.

Reference

fieldtyperequireddescription
typestringtrueMust be "firestore-get-rules".
sourcestringtrueName of the Firestore source to retrieve rules from.
descriptionstringtrueDescription of the tool that is passed to the LLM.