Skip to main content
Glama
Firenook

Firenook

Official

firestore_delete

DestructiveIdempotent

Delete a Firestore document or collection in the Firebase emulator, with an optional recursive flag to remove nested subcollections and documents beneath the target path.

Instructions

Delete a document (recursive:true also its subcollections) or a collection (its documents; recursive:true everything beneath) through the emulator delete route.

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": "firestore_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDocument or collection path
databaseNoFirestore database id; default (default)
recursiveNoAlso delete nested collections

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.9/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 adds the crucial nuance that subcollections survive unless recursive:true is set on a document delete. That is real behavioral context beyond the annotations, though it omits permission/auth requirements and what the call returns.

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

Conciseness5/5

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

A single dense sentence with the verb and resource front-loaded and the two modes cleanly paired in parentheses. Every clause carries information; nothing is redundant.

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?

With three parameters, full schema coverage, a rich annotation set, and no output schema, the description covers the main risk (recursive scope) adequately. Minor gaps remain around confirmation of the non-recursive collection case and any error behavior, but an agent can call it correctly.

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 baseline is 3; the description earns above that by explaining that recursive means something different for documents (subcollections) than for collections (everything beneath), which the one-line schema note "Also delete nested collections" does not convey. The path and database parameters are left to the schema, which is acceptable.

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

Purpose4/5

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

States a specific verb ("Delete") plus both resource types (document or collection) and immediately distinguishes the two modes. The delete verb alone separates it from siblings like firestore_get, firestore_set, and firestore_query, though no sibling is named explicitly.

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?

Usage is implied by the verb-and-resource statement, and "through the emulator delete route" signals this operates on the local emulator rather than production. There is no explicit when-to-use versus a sibling, and no warning about irreversible removal despite destructiveHint being true.

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