Skip to main content
Glama
Firenook

Firenook

Official

emulators_clear

DestructiveIdempotent

Delete all data from selected Firebase emulator services, including Firestore, Auth, Storage, Pub/Sub, and Tasks. Require confirmProject when clearing more than one service.

Instructions

DESTRUCTIVE: delete all data of the chosen services (every Firestore document, every Auth user and tenant, every Storage object, every Pub/Sub topic, subscription, schema and message, every Cloud Tasks task and its history). Clearing more than one service needs confirmProject set to the project id.

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": {
      "sections": "<sections>"
    },
    "name": "emulators_clear"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectionsYesServices to clear
runTriggersNoFirestore only: run the delete triggers of the cleared documents; default false
confirmProjectNoThe project id, required when clearing more than one service (the console's safeguard)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=true, so the safety profile is partly pre-supplied. The description still adds real value by naming the exact entities that are wiped (including task history and Pub/Sub messages) and the multi-service safeguard. It does not say whether the operation is reversible or how failures are handled.

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?

The destructive warning is front-loaded and the enumeration, while long, is dense and earns its length by removing ambiguity about blast radius. It could be split into clearer sentences, but there is no filler.

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

Completeness4/5

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

For a destructive multi-service tool with no output schema, the description covers scope and the confirmation safeguard adequately. Remaining gaps (reversibility, error behavior when confirmProject is absent or wrong, the effect of runTriggers) are minor relative to what is stated.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all three parameters. The description's confirmProject explanation largely restates the schema's own text and never mentions runTriggers, so it adds little meaning beyond structured data.

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 (delete) and resource scope, then enumerates exactly what is covered across the five services (Firestore documents, Auth users and tenants, Storage objects, Pub/Sub topics/subscriptions/schemas/messages, Cloud Tasks tasks and history). This is unambiguous and distinguishable from the sibling emulators_export.

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

Usage Guidelines3/5

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

The label DESTRUCTIVE implies caution and the confirmProject sentence gives an operational prerequisite, but there is no explicit when-to-use guidance, no statement of when-not to use it, and no reference to alternatives such as emulators_export. Usage is only implied.

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