firestore-create-document-by-path
Create documents in Firestore collections using full path specifications, supporting subcollections and optional document IDs.
Instructions
Create a document in a collection using full path (supports subcollections)
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": {
"collectionPath": "<collectionPath>",
"data": "<data>"
},
"name": "firestore-create-document-by-path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionPath | Yes | Full path to the collection (e.g., 'users/userId1/orders') | |
| data | Yes | Document data to create | |
| documentId | No | Optional document ID. If not provided, one will be generated |