firestore-increment-field
Atomically increment numeric field values in Firestore documents to maintain data consistency during concurrent updates.
Instructions
Atomically increment a numeric field value
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": {
"documentPath": "<documentPath>",
"field": "<field>",
"incrementBy": "<incrementBy>"
},
"name": "firestore-increment-field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentPath | Yes | Full path to the document | |
| field | Yes | Field name to increment | |
| incrementBy | Yes | Amount to increment by (can be negative) |