FireCMS Cloud
v3.5.3Manage FireCMS Cloud from an AI agent: Firestore data, collections, schemas and users.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
firecms_get_current_user Current user
Get the currently authenticated FireCMS user
list_firebase_projects List Firebase projects
List the Google Cloud / Firebase projects the signed-in user can access, and whether each one is ready to be connected to FireCMS Cloud. Each entry reports: - `fireCMSProject`: true if it is already connected to FireCMS Cloud - `cloudProjectConfigurationStatus.firebaseEnabled` / `firestoreEnabled` / `apisEnabled` / `authEnabled`: what connecting requires Connecting needs Firebase, Firestore and Firebase Authentication enabled.
get_project_setup_status Check project setup
Get the detailed FireCMS readiness status of a single Google Cloud project: whether Firebase, Firestore, Storage, Auth and the required APIs are enabled, and so what is still missing before it can be connected.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Google Cloud / Firebase project ID |
list_firestore_locations List Firestore locations
List the locations available for a new Firestore database, as location IDs such as 'eur3' or 'us-central'.
enable_project_apis Enable required APIs
Enable the Google Cloud APIs that FireCMS requires on a project (reported as `apisEnabled` in its setup status). Safe to run more than once.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Google Cloud / Firebase project ID |
enable_firestore Create Firestore database
Create the default Firestore database in a Google Cloud project, in the given location. The location is permanent and cannot be changed later.
| Parameter | Type | Description |
|---|---|---|
locationId * | string | Firestore location, e.g. 'eur3' or 'us-central'. Permanent. |
projectId * | string | The Google Cloud / Firebase project ID |
connect_project_to_firecms Connect a Firebase project
Connect an existing Firebase project to FireCMS Cloud. It creates a delegated service account in the project with the permissions FireCMS needs, registers the signed-in user as an admin, creates the FireCMS project on the free plan, and by default adds FireCMS's access rule to the project's Firestore and Storage security rules. Firebase, Firestore and Firebase Authentication must already be enabled on the project. Authentication cannot be enabled through any API: it is switched on once in the Firebase console. Fails if the project is already connected.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Firebase project ID to connect |
applySecurityRules | boolean | Add FireCMS's Firestore and Storage access rule as part of connecting (default true). The CMS cannot open any collection without it. |
creationType | string | 'existing' (default) for a project that already has data; 'new' for a freshly created one |
apply_firestore_security_rules Apply FireCMS security rules
Add FireCMS's access rule to a project's Firestore and Storage security rules. Requires admin. FireCMS Cloud reads the customer's Firestore from the browser using the signed-in user's own token, so it needs a rule granting access to users carrying the `fireCMSUser` claim: match /{document=**} { allow read, write: if request.auth.token.fireCMSUser; } Without it the CMS shows "Missing Firestore Security Rules" and no collection opens, although this server keeps working: it reads through the backend's service account, which bypasses security rules. The rule is injected into the existing ru…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Firebase project ID |
create_firecms_webapp Create FireCMS web app
Create the FireCMS web app inside the client's Firebase project, or reuse the one already there. Connecting a project normally does this; this repairs a project where that step failed. Requires admin.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Firebase project ID |
list_projects List projects
List all FireCMS Cloud projects accessible by the authenticated user
get_root_collections List root collections
List all Firestore root-level collections in a FireCMS project — the paths that can be turned into CMS collections. Read live from Firestore, so collections created moments ago are included.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Firebase project ID |
databaseId | string | Firestore database ID, if not '(default)' |
list_subcollections List subcollections
List the subcollections of a specific document, with their full paths: nested data that can be turned into CMS collections.
| Parameter | Type | Description |
|---|---|---|
parentDocumentPath * | string | Full path of the parent document, e.g. 'users/abc123' |
projectId * | string | The Firebase project ID |
databaseId | string | Firestore database ID, if not '(default)' |
list_users List users
List all users that have access to a FireCMS project, including their roles (admin, editor, viewer)
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Firebase project ID |
add_user Invite a user
Invite a new user to a FireCMS project. Sends an invitation email. Admin-only. If the email already belongs to a user of the project, their roles are replaced by these.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address of the user to invite |
projectId * | string | The Firebase project ID |
roles * | array | Roles to assign |
update_user_roles Change user roles
Update the roles of an existing user in a FireCMS project. Admin-only.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Firebase project ID |
roles * | array | New roles |
userId * | string | The user ID to update |
remove_user Remove a user
Remove a user from a FireCMS project, revoking their access. Admin-only.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Firebase project ID |
userId * | string | The user ID to remove |
list_databases List Firestore databases
List the Firestore databases of a project. Only needed for projects using more than the '(default)' database — the resulting database IDs can be passed to the other introspection and document tools.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Firebase project ID |
preview_inferred_schema Preview inferred schema
Read a sample of real documents from a Firestore path and infer a FireCMS collection schema from them, without saving anything. Works for any path, subcollections included. Inference is structural only: it derives data types, enum candidates and validation from the sampled values. The result is a complete collection schema that can be edited and saved as it is.
| Parameter | Type | Description |
|---|---|---|
path * | string | Firestore collection path, e.g. 'products' or 'users/{userId}/orders' |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID, if not '(default)' |
sampleSize | number | How many documents to sample (default 30, max 200). More samples give better enum and optionality detection. |
infer_collections_from_data Create collections from data
Infer collections from the existing Firestore data at the given paths, and save them to the project. Requires admin. For each path the backend samples documents, infers the property types, then uses an LLM to pick display names, a singular name, an icon, a navigation group and field widgets. Paths already mapped to a collection, and paths with no documents, are skipped.
| Parameter | Type | Description |
|---|---|---|
paths * | array | The collection paths to infer and save |
projectId * | string | Firebase project ID |
setup_all_collections Set up all collections
Discover every Firestore root collection in the project that is not yet mapped to a collection, infer a collection schema for each (display names and widgets picked by an LLM), and save them all. Requires admin. Covers every database of the project. Collections that already exist are left alone, so it is safe to run again later to pick up new Firestore collections. Can take a while on large projects.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID, if not '(default)' |
get_project_config Get project settings
Get the full configuration for a FireCMS project, including: - Project name, logo, and brand colors (primary/secondary) - Subscription plan and trial status - Feature toggles (text search, entity history, App Check) - Default locale settings - Customization revision info
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Firebase project ID |
update_project_name Rename project
Update the display name of a FireCMS project.
| Parameter | Type | Description |
|---|---|---|
name * | string | New project name |
projectId * | string | Firebase project ID |
update_project_colors Change brand colors
Update the primary and/or secondary brand colors for the CMS UI. Colors should be hex values (e.g., '#0070F4').
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Firebase project ID |
primaryColor | string | Primary color hex, #rgb or #rrggbb (e.g., '#0070F4') |
secondaryColor | string | Secondary color hex, #rgb or #rrggbb (e.g., '#FF5B79') |
update_default_locale Change default locale
Change the default locale for the CMS (affects date formatting, etc.).
| Parameter | Type | Description |
|---|---|---|
locale * | string | FireCMS locale for dates (e.g., 'en', 'es', 'de', 'fr', 'it', 'enUS', 'ptBR'); 'en-US' and 'en_US' are read as 'enUS' |
projectId * | string | Firebase project ID |
toggle_text_search Turn text search on or off
Enable or disable the local text search feature for a project.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | true to enable, false to disable |
projectId * | string | Firebase project ID |
toggle_entity_history Turn entity history on or off
Enable or disable entity history tracking (audit log of document changes) for a project.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | true to enable, false to disable |
projectId * | string | Firebase project ID |
list_collection_schemas List collections
List all persisted collection schemas for a FireCMS project. Returns the collection configurations (name, path, properties, etc.) that define how data is displayed and edited in the CMS.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Firebase project ID |
get_collection_schema Get a collection
Get the full schema definition for a specific collection, including all properties, validation rules, display configuration, and subcollection definitions.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | Collection ID (usually same as the Firestore path, e.g., 'products') |
projectId * | string | Firebase project ID |
save_collection_schema Save a collection
Create or fully replace a collection schema. This defines how a Firestore collection is displayed and edited in FireCMS. Requires at minimum: id, path, and name. Example schema: { "id": "products", "path": "products", "name": "Products", "singularName": "Product", "icon": "ShoppingCart", "description": "Product catalog", "group": "Shop", "properties": { "name": { "dataType": "string", "name": "Name", "validation": { "required": true } }, "price": { "dataType": "number", "name": "Price", "validation": { "required": true, "min": 0 } }, "status": { "dataType": "stri…
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | Collection ID (e.g., 'products') |
projectId * | string | Firebase project ID |
schema * | object | Complete collection schema definition |
update_collection_schema Update a collection
Partially update an existing collection schema. Only the top-level fields given are changed (merged with the existing schema): for example the name, group, display settings or properties.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | Collection ID to update |
data * | object | Fields to update (merged with existing schema) |
projectId * | string | Firebase project ID |
delete_collection_schema Delete a collection
Delete a collection schema from FireCMS. This removes the collection configuration from the CMS — it does NOT delete the underlying Firestore data. The collection will simply no longer appear in the FireCMS UI.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | Collection ID to delete |
projectId * | string | Firebase project ID |
save_property Save a property
Add or update a single property in a collection schema, leaving the other properties as they are. A new property is added at the end of the display order. Example property: { "dataType": "string", "name": "Description", "description": "Product description", "multiline": true, "validation": { "required": true, "max": 500 } }
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | Collection ID |
projectId * | string | Firebase project ID |
property * | object | Property definition |
propertyKey * | string | Property field key (e.g., 'description', 'price') |
namespace | string | Dot-separated path of an existing map property to put this property inside (e.g., 'address' for address.street, 'meta.address' for a map within a map) |
delete_property Delete a property
Remove a property from a collection schema. This removes the field definition from the CMS configuration — it does NOT delete the field from existing Firestore documents.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | Collection ID |
projectId * | string | Firebase project ID |
propertyKey * | string | Property key to remove |
namespace | string | Dot-separated path of the map property the property is inside (e.g., 'address' for address.street) |
generate_collection Generate a collection with AI
Generate a new FireCMS collection schema using AI. Provide a natural language description of the collection you want (e.g., "A blog with posts that have title, body, author, tags, and a featured image"). Returns a complete FireCMS collection configuration.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Natural language description of the collection to generate |
existingCollections | array | Optional existing collection schemas for context |
modify_collection Modify a collection with AI
Modify an existing FireCMS collection schema using AI. Describe the changes you want (e.g., "Add a priority enum with low/medium/high" or "Make title required with max 100 chars"). Returns the updated schema and a list of operations performed.
| Parameter | Type | Description |
|---|---|---|
existingCollection * | object | The current collection schema to modify |
prompt * | string | Description of the modifications |
existingCollections | array | Optional list of all collection schemas for context |
list_documents List documents
List documents from a Firestore collection, with optional filters, ordering and a limit.
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Collection path (e.g., 'products', 'users', 'blog/posts') |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
filters | array | Optional filters to apply |
limit | number | Max number of documents to return (default: 20) |
orderBy | string | Field to order by |
orderDirection | string | Sort direction |
get_document Get a document
Get a specific document by its collection path and ID. Returns all fields of the document.
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Collection path (e.g., 'products', 'users') |
documentId * | string | Document ID |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
create_document Create a document
Create a new document in a Firestore collection. Provide the field values as a JSON object.
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Collection path (e.g., 'products') |
data * | object | Document fields as a JSON object |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
documentId | string | Optional document ID. If not provided, Firestore generates one. If a document with this ID exists, it is replaced. |
update_document Update a document
Update fields of an existing document. Only the specified fields are modified (partial update / merge).
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Collection path (e.g., 'products') |
data * | object | Fields to update as a JSON object |
documentId * | string | Document ID to update |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
delete_document Delete a document
Delete a document from Firestore. This action is permanent.
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Collection path (e.g., 'products') |
documentId * | string | Document ID to delete |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
count_documents Count documents
Count the total number of documents in a Firestore collection.
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Collection path (e.g., 'products') |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
export_collection Export a collection
Export documents from a Firestore collection as JSON. Useful for data backups, analysis, or migration. For large collections, use the limit parameter.
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Collection path to export (e.g., 'products') |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
limit | number | Max documents to export (default: 100, max: 500) |
import_documents Import documents
Bulk import documents into a Firestore collection, for seeding data, migrations or restoring a backup. Each document can specify an ID; without one, Firestore generates it. By default a document with an existing ID is overwritten; with merge: true its fields are merged instead. At most 500 documents per call.
| Parameter | Type | Description |
|---|---|---|
collectionPath * | string | Target collection path (e.g., 'products') |
documents * | array | Array of documents to import (max 500) |
projectId * | string | Firebase project ID |
databaseId | string | Firestore database ID (default: '(default)') |
merge | boolean | If true, merge with existing documents instead of overwriting (default: false) |
firecms_login Sign in to FireCMS
Sign in to FireCMS Cloud. Opens a browser window for Google OAuth authentication. Required before using any other tools.
firecms_logout Sign out of FireCMS
Sign out of FireCMS Cloud. Revokes the current session.