Skip to main content
Glama
Firenook

Firenook

Official

firestore_set

Destructive

Create or overwrite a Firestore document from plain JSON, or set merge:true to update only specified top-level fields.

Instructions

Write a Firestore document from plain JSON: replaces it, or with merge:true updates only the given top-level fields.

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>",
      "data": "<data>"
    },
    "name": "firestore_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesFields as plain JSON
pathYesDocument path
mergeNoMerge into the existing document
databaseNoFirestore database id; default (default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description is consistent with that by saying the document is replaced. It adds real value with 'top-level fields', which reveals the shallow/non-recursive merge behavior - a detail not in the annotations or schema parameter text. It omits whether nested maps are wholesale replaced, whether writes fail on a missing document, and whether repeated calls are pointless (idempotentHint=false).

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?

One sentence, front-loaded with the action and resource, with the mode distinction in the second clause. Nothing is redundant and nothing could be cut without losing meaning.

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

Completeness3/5

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

Adequate for a four-parameter, nested-object write with no output schema and destructive semantics: the destructive replace behavior is disclosed. It is incomplete on failure modes (missing document, merge into nonexistent doc), on nested data handling beyond 'top-level', and on what the call returns.

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; the description earns above that by clarifying that merge:true applies only to top-level fields, which sharpens the terse schema text 'Merge into the existing document'. The path and database parameters are left entirely to the schema, which is fine given full coverage.

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 and resource: 'Write a Firestore document from plain JSON', then immediately distinguishes the two write modes (replace vs merge). An agent can tell this is a write/create-replace tool and not a read like firestore_get or 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 Guidelines4/5

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

Provides genuine selection guidance between the two modes: default is a full replace, merge:true updates only the given top-level fields. It does not say when to prefer this over firestore_delete or firestore_query, but the mode choice is the real decision point and it is covered clearly.

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