Skip to main content
Glama
Firenook

Firenook

Official

logs_search

Read-onlyIdempotent

Search Firebase emulator and function console logs by service, level, function, call, text, or time; return matching lines oldest first to diagnose issues.

Instructions

Search the suite's log (every emulator and every function's console output) by service, level, function, call, text and time; returns the newest matching lines, oldest first.

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

Input Schema

NameRequiredDescriptionDefault
qNoExtra filter terms in the console's grammar, e.g. kind:rules.denied payload.orderId:o1 -level:debug
toNoLines at or before, in the same forms
fromNoLines at or after: RFC 3339, YYYY-MM-DD, today, reload (since the last Functions reload) or relative like -15m
textNoCase-insensitive text the message or payload contains
levelNoOnly these levels (any of), e.g. ["warn","error"]
limitNoAt most this many lines; default 50
beforeNoThe older cursor of a previous search, for the lines before it
serviceNoOnly these services (any of)
functionNoOnly this function's lines: its name or <region>-<name> id
executionNoOnly one function call's lines: the call id from functions_list_calls

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered upstream. The description adds one genuinely useful behavioral fact beyond that: results are returned newest-first-selected but ordered oldest first, which matters for reading a log window. It says nothing about volume, truncation, or cursor iteration behavior.

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?

A single dense sentence with the scope front-loaded in parentheses and the return ordering trailing. Every clause carries information; nothing is padded. It loses a point only because cramming filters and return semantics into one sentence slightly blurs both.

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 10 optional parameters and no output schema, the description does the right high-level work: it defines the log's scope, the filterable dimensions, and the ordering of returned lines. Missing are hints about pagination via before/limit and the shape of a returned line, which an agent must reconstruct from the schema alone.

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 every parameter including the grammar-based q, the relative from forms and the before cursor is already documented in the schema. The description restates the filter dimensions ("service, level, function, call, text and time") without adding syntax or format meaning, so the baseline of 3 applies.

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?

Specific verb ("Search") plus a precisely scoped resource: "the suite's log (every emulator and every function's console output)", with the filter dimensions and return ordering stated. It does not differentiate itself from the sibling logs_facets, so it falls short of a 5.

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 search framing and the enumerated filter dimensions, so an agent can infer when to reach for it, but there is no explicit when-to-use, no exclusions, and no pointer to alternatives such as logs_facets for aggregation or functions_list_calls for fetching a call id.

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