firestore-transaction
Execute atomic Firestore transactions with read and write operations to ensure data consistency across multiple documents.
Instructions
Execute a transaction with read and write operations
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": {
"reads": "<reads>",
"operations": "<operations>"
},
"name": "firestore-transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reads | Yes | Document paths to read in the transaction | |
| operations | Yes | Write operations to execute based on read data | |
| conditionScript | No | JavaScript condition to evaluate before committing (optional) |