Skip to main content
Glama
Firenook

Firenook

Official

firestore_missing_indexes

Lists the composite indexes Firestore would reject your app's queries for, with the exact entries to add to firestore.indexes.json. Saving that file puts them in force at once.

Instructions

The indexes production would refuse the app's queries for: each one a query needed that its database's index file (firestore.indexes.json) does not declare, with the entry to add under indexes or fieldOverrides, the first query that needed it (fields and operators, no values), how many did and when; saving the file puts it in force at once.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "firestore_missing_indexes"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoFirestore database id; default (default)
includeDeclaredNoAlso list the indexes a saved file declares now; default only the missing ones

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.3

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full load and does reasonably well: it discloses that entries are derived from real production query traffic, that values are stripped from the reported queries, and that saving the index file takes effect immediately — a useful side-effect caution. It never states that this call itself is read-only, says nothing about authentication, permissions, latency, or how stale the production-derived data is, so the safety profile remains implicit.

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

Conciseness3/5

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

It is a single dense sentence with essentially no filler — the purpose is front-loaded — but the clause stack ('each one a query needed that its database's index file does not declare, with the entry to add under indexes or fieldOverrides...') is hard to parse and 'how many did and when' is genuinely ambiguous. Bullet-style structure or a shorter lead sentence would serve better without losing content.

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 two-parameter, zero-required, non-mutating diagnostic with no output schema, the description covers the important ground: what the results represent, what fields each entry has, and how the output feeds back into the index file. Missing only explicit read-only framing and any note on result size or how to act on entries the user may not want.

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

Parameters2/5

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

Schema description coverage is 100%, so the schema already explains both 'database' and 'includeDeclared'. The description adds nothing about them: it mentions the database's index file only in passing and never hints at the includeDeclared behavior of also listing already-declared indexes. Baseline 3 is not met because no meaning beyond the schema is contributed.

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 identifies a specific resource — composite indexes that production query traffic requires but the database's firestore.indexes.json does not declare — and describes the exact payload each entry carries (index to add, first requiring query's fields/operators, hit count and timestamp). It lacks an explicit verb (it never says 'list' or 'report'), and the noun-heavy phrasing takes effort to parse, but an agent can still distinguish it from firestore_query or firestore_list_collections.

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?

Use is only implied: an agent infers it should call this when production queries are being rejected for missing indexes. There is no explicit when/when-not statement, no named alternative (e.g. querying firestore.indexes.json directly), and no prerequisite notes; the closing remark about saving the file to put indexes in force is workflow color rather than selection guidance.

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