Skip to main content
Glama
Firenook

Firenook

Official

emulators_export

DestructiveIdempotent

Exports running Firebase emulator Firestore, Auth, and Storage data to a specified directory for later import, replacing prior exports and requiring force for non-empty foreign directories.

Instructions

Export the running Firestore, Auth and Storage data to a dedicated directory (not the project or current directory, nor an ancestor of either), as firenook emulators:export does, for a later --import. It replaces an earlier export there and refuses any other non-empty directory unless force is true; the running data is untouched (emulators_clear wipes it).

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": {
      "path": "<path>"
    },
    "name": "emulators_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDestination directory
forceNoOverwrite a non-empty foreign directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=true, and the description earns extra credit by explaining exactly what is destroyed (an earlier export in that directory), what is refused (any other non-empty directory without force), and what is NOT affected (running emulator data). No contradiction with annotations; only the return/response shape is unstated, which matters little for an export to disk.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense, front-loaded sentence that puts the action and the directory constraint first, followed by overwrite semantics and the sibling contrast. The nested parentheticals make it slightly harder to parse than necessary, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with full schema coverage and no output schema, the description covers destination constraints, overwrite/force behavior, data-safety guarantees, and the alternative tool. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds a real constraint the schema lacks: the destination must not be the project directory, the current directory, or an ancestor of either. The force flag's effect (overwriting a foreign non-empty directory) is also reinforced in prose, though 'replaces an earlier export' versus 'refuses other non-empty directories' is the only nuance left implicit for the reader to map onto force.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource set (export running Firestore, Auth and Storage data to a directory) plus the purpose (for a later --import) and the behavioral analogue (firenook emulators:export). The explicit contrast with emulators_clear ('the running data is untouched (emulators_clear wipes it)') lets an agent separate the two siblings without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for use ('for a later --import') and names the contrasting alternative emulators_clear for wiping data. It also states the refusal condition and the force escape hatch, though it does not spell out an explicit 'do not use this if...' scenario beyond the directory constraints.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.