Skip to main content
Glama
Firenook

Firenook

Official

storage_upload

Destructive

Create or replace a Firebase Storage object from text or base64 with a content type and custom metadata; optionally refuse overwriting existing files.

Instructions

Upload (create or replace) a Storage object from text or base64 bytes with a content type and custom metadata, as the Admin SDK would (rules skipped; finalize triggers run).

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

Input Schema

NameRequiredDescriptionDefault
pathYesObject path, e.g. products/shoe.png
textNoContent as text (sent as UTF-8)
base64NoContent as base64 bytes (instead of text)
bucketNoStorage bucket; default the suite's default bucket
contentTypeNoContent type; default text/plain for text, application/octet-stream for base64
ifNotExistsNoRefuse to replace an existing object
cacheControlNoCache-Control
customMetadataNoString metadata

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds genuinely non-obvious behavior: security rules are skipped (Admin SDK semantics) and finalize triggers fire on upload, which an agent could not get from annotations alone. Missing only permission/auth requirements and size or rate constraints.

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 front-loaded sentence with zero wasted words; the core action comes first and the parenthetical side-effect caveats are compactly appended. Nothing needs trimming.

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 an eight-parameter destructive write with no output schema, the definition covers action, content forms, and side effects (rules bypass, triggers). It stops short of saying what the call returns (metadata? etag?) or how it pairs with storage_get_metadata, which would make it fully self-sufficient.

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 description coverage is 100%, so all eight parameters are already documented in the schema, making 3 the baseline. The description echoes text/base64/contentType/customMetadata but adds no semantics for bucket or ifNotExists, so it does not exceed what the schema provides.

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?

The description gives a specific verb and resource ("Upload (create or replace) a Storage object") plus content sources (text or base64) and extras (content type, custom metadata). It is unmistakable what the tool does, though it never explicitly positions itself against siblings like storage_copy or storage_get_metadata.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative for the create-vs-replace decision beyond the parenthetical. The agent must infer from the schema's ifNotExists flag that replacement is the default; the description should have stated that trade-off explicitly.

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