Ask the AI assistant
- Open a collection, or any tab of the project you want to ask about.
- Choose Tools, AI assistant, press Ctrl+I (⌘I on a Mac), or type "assistant" in the command palette.
- The first time, Firetool explains what the assistant sends and to whom. Choose I agree to go on, or Not now.
- Paste your Anthropic API key. Create one in the Anthropic Console, under API keys. Firetool keeps it encrypted on your computer and sends it only to Anthropic. (Another provider? See Choose who runs the model.)
- Ask in your own words, for example "How many orders are still open?" or "Which fields do users have, and how often?". Pick one of the examples to start.
While it works, the panel lists each step: what it read (a count, a collection's fields, a query) and how many documents. The answer follows. Ask a follow-up in the same conversation, or choose New to start again. The assistant works on one project at a time: open it from another project's tab and it starts a new conversation for that project. Stop ends an answer after the current step.
In Settings → AI → AI assistant you can change the model (a larger one answers harder questions, a smaller one is faster and costs less on your bill), turn on Hide personal data, remove the key, or withdraw your agreement.
Each document the assistant reads is a Firestore read, billed like any other. It keeps reads small: counts for how many, and a limit on queries. The assistant itself is billed by your provider to your account (a model in Ollama runs on your computer).
Choose who runs the model
From version 4.2, Settings → AI → AI assistant → Provider offers five choices. Each says where your questions and what the assistant reads go, and the assistant asks you to agree again for each one before it sends anything.
- Anthropic (Claude): your Anthropic API key, and a model from the list.
- OpenAI or a compatible service: the service's address (its OpenAI-compatible API, such as
https://api.openai.com/v1), your API key for it, and the model's name as the service gives it. Find models lists the ones it offers. - Google Gemini (API key): your Gemini API key (from Google AI Studio) and a model; Find models lists them.
- Google Vertex AI (your Google sign-in): no key. Choose one of your Google accounts in Firetool and a project, and a location (
global, or a region such asus-central1); Firetool shows the address it sends to, and Vertex AI bills that project. Type the model's name, such asgoogle/followed by the model. The account needs the Vertex AI User role and the Vertex AI API turned on. - Ollama on this computer: no key, and nothing leaves your computer. Firetool talks to Ollama at
http://127.0.0.1:11434/v1(it accepts only an address on this computer). Find models lists the models you've pulled.
The model needs to support tools (function calling) to read your data; if it can't, the assistant says so. Each provider keeps its own key, encrypted on your computer and sent only to that provider.
From 4.5.4 the same provider also makes embeddings for vector search: a collection's Actions ▾ → Make embeddings… sends each document's text to it and saves the vector it gives back in a field. Anthropic has no embeddings, so choose another provider for that. You see a preview of three documents and agree before any text leaves your computer (with Ollama, none does). It needs Pro; the audit log records the service, model and counts, never the text. See Make embeddings.
Changes it suggests
The assistant can't change anything. When you ask for a change, it proposes one: what to create, replace, update or delete, and why.
- Choose Review the proposed change under its answer, or the AI: 1 to review button beside the edition badge.
- AI assistant changes shows the reason and each document as it is now beside the change.
- Approve and write writes all the changes together, or none. Reject writes nothing.
Approving goes through the same checks as any change in Firetool: your role, read-only and production projects (a production project asks for its ID), and the audit log. If a document changed after the assistant proposed the change, nothing is written, and you can ask it to propose again. A proposal you don't decide on within a day expires.
An assistant can also propose an export (4.2): which documents and the format, with its reason. Approve and export… counts the documents, asks where to save the file and exports in the background like any export; the assistant learns only how it ended and how many documents, never the file.
Writing an approved change, or the file of an approved export, needs Pro. Asking questions doesn't.
Scripts, schemas and dashboard cards
Ask the assistant to write something for you and it shows it as a draft. It never runs, saves or adds anything itself: you read it and choose.
- A script. "Write a script that lists the active funds, largest first." The script appears in a code block with Copy and Open in JS Query. Opening only puts it in a new JS Query tab for the open collection; nothing runs until you read it and choose Run. JS Query needs Pro and follows your role.
- An expected schema. "Draft an expected schema for orders." Preview in Schema tab opens the collection's Schema tab with the draft, unsaved: its fields, how it differs from the schema you saved, and Check documents against a sample. Use as expected schema keeps it on this computer; Discard drops it.
- Dashboard cards. "Add cards that count paid orders, total the revenue and list the newest five." Preview dashboard cards lists each card with its query and what a refresh reads. Only the cards you tick are added with Add to dashboard. Up to 8 cards at a time, as Number and List cards.
A draft is only as good as what the assistant read, so check the fields it uses. These drafts send nothing more than a question already does, so What is sent below is unchanged.
What is sent
To answer, Firetool sends to the provider you chose, from your computer (with Ollama, nothing leaves it): your question, the earlier questions and answers of the conversation, and what the assistant reads to answer it, for the open tab's project only (its services too, from 4.5.2, only with Services on in Settings → AI). With Hide personal data on, email addresses and phone numbers in what it reads are masked first. Nothing goes to us. What the provider does with it is covered by your agreement with them; see the privacy policy.
Connect your own assistant (MCP)
Assistants and editors that support the Model Context Protocol (MCP) can use Firetool as a server: the firetool mcp command, which comes with the app.
- In Firetool, open Settings → AI → AI assistants (MCP) and turn on Let AI assistants read through Firetool.
- Under Projects it may read, tick the projects the assistant may use. Nothing is allowed until you tick it.
- Choose Copy the entry and add it to your assistant's MCP settings. It looks like this, with the path of the firetool command on your computer, which Settings shows:
{
"mcpServers": {
"firetool": {
"command": "<the firetool command Settings shows>",
"args": ["mcp"]
}
}
}
To let the assistant suggest changes too, turn on Let assistants propose changes. Its proposals wait in AI assistant changes exactly like the built-in assistant's, and only someone in Firetool's window can approve them.
The assistant uses the accounts already in Firetool, so it needs no keys of its own. Turning the switch off stops it at its next call.
More controls, in the same Settings card (4.2):
- all databases ▾ beside a ticked project: limit the assistant to some of its databases.
- Tools it may use: untick a kind of read to leave it out (the assistant no longer sees it once it reconnects).
- Also on production: proposals in projects or databases marked as production are refused unless this is on.
- Calls a minute: at most this many calls a minute from each connected assistant (120 unless you change it; 0 for no limit).
- Usage: what assistants did over the last day, week, month or three months: calls, refusals and why, documents read, by day, tool and project, and the last calls.
What an assistant can do
- List the projects you allowed, the collections of a database, and the subcollections of a document.
- Get a document; query a collection with filters, sorting and a limit; count documents.
- Describe a collection's fields from a sample: their types and how often each appears.
- Read the composite indexes, the Firestore or Storage security rules, an Authentication user by email, phone or UID, and the files in a Storage folder.
- From 4.2: totals (count, sum, average) without reading the documents; how a query runs, with advice (the plan alone reads nothing); index advice; a check of a collection against the fields it expects; Authentication users a page at a time; a Storage file's details (never its download link); and whether the security rules allow a request.
- Propose changes to documents or an export, and check what became of a proposal.
- From 4.5.2, with Pro and only when you turn it on: read the project's services. List Cloud Functions (variable and secret names, never values) and a function's calls, errors and time per call; read log entries; list Hosting releases; see Pub/Sub backlogs; see Cloud Tasks queues and their tasks (without bodies); and read the Remote Config template. For the built-in assistant, turn on Services in Settings → AI; for an MCP assistant, tick each read under Services it may read. Logs are always masked (email addresses, phone numbers, tokens and keys), a day and 200 entries at a time at most, and Remote Config values whose names look like secrets are hidden. These only read: an assistant can't call a function, publish or change anything there. See Functions, logs and other services.
The tools by name
An MCP assistant sees these 28 tools (the built-in assistant uses the same ones). None of them writes anything: the three proposal tools only leave a proposal for you to approve or reject in Firetool's window.
- Always there:
list_projects(the projects you allowed). - On unless you untick them under Tools it may use:
list_collections,get_document,query,count,aggregate,collection_schema,check_schema,explain_query,list_indexes,index_advice,get_security_rules,simulate_rules,find_auth_user,list_auth_users,list_storageandstorage_file. - Only with Let assistants propose changes on:
propose_changes,propose_exportandcheck_proposal. - Off until you tick them under Services it may read (Pro):
list_functions,function_metrics,read_logs,hosting_releases,pubsub_backlog,queue_statusandremote_config.
The audit log
Every call is in the audit log on your computer: assistant.read for the built-in assistant, mcp.read for one you connect, and .denied for refused calls, with the project and what was read. Proposals are recorded as assistant.propose or mcp.propose, rejections as mcp.reject, and an approved change is marked as the assistant's. View its calls in Settings opens the audit log filtered on them.
Questions
Which AI provider does the built-in assistant use?
The one you choose in Settings → AI → AI assistant: Anthropic, an OpenAI-compatible service or Google Gemini with your own API key, Google Vertex AI with your Google sign-in, or Ollama on your own computer. An assistant you connect through MCP uses whatever provider it uses.
Can the assistant delete or change my data?
No. It can only propose changes. Nothing is written until someone approves the proposal in Firetool's window, and approving follows your roles, read-only and production rules.
Does my data go to Firetool's servers?
No. The built-in assistant sends from your computer straight to the provider you chose (with Ollama, nothing leaves your computer), and an assistant you connect gets the data on your computer. Nothing goes to us.
Can I keep personal data out of it?
Turn on Hide personal data: email addresses and phone numbers are masked before they leave Firetool. You can also allow only some projects for MCP, and the built-in assistant only ever works on the project you opened it from.
Related
- AI assistant and MCP: what it is and how it keeps your data safe.
- Roles and production safety: the checks every approved change goes through.
- The firetool command: the same Firetool from a terminal.
- Pipelines and vector search: make embeddings with your provider and find the nearest documents.