Skip to main content
Glama
Firenook

Firenook

Official

logs_facets

Read-onlyIdempotent

Count matching log lines by level, service, function, codebase, extension instance, and kind to identify where errors and warnings originate before reading them.

Instructions

Count the log lines matching a filter by level, service, function, codebase, extension instance and kind, to see where errors and warnings come from before reading them.

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_facets"
  }
}

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"]
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.7/5.0
Behavior3/5

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

Annotations already state readOnly=true, idempotent=true, destructive=false, closed-world, so safety profile is covered. The description adds that the result is a count/aggregation rather than log content, which is genuinely useful. It says nothing about default scope when time filters are omitted, result caps, or cost on large ranges — real behavioral questions for an unfiltered optional-params aggregation.

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 verb and resource, with the payoff clause appended. No filler or restatement of the tool name.

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?

For an 8-parameter, all-optional aggregation with no output schema, the description does hint at the shape of the returned facet groupings. However, it never states the default time window or scope when `from`/`to` are omitted, nor how facet dimensions relate to the enumerated filter parameters — gaps an agent must guess at before calling.

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 is already documented in the schema, making 3 the baseline. The description's facet list (codebase, extension instance, kind) adds framing but maps only partly onto actual parameters — codebase and extension instance have no corresponding input, and kind is only reachable through the `q` grammar, which the description doesn't clarify.

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?

Names a specific verb and resource ("Count the log lines") plus the grouping dimensions it aggregates over, which is a clearly different operation from reading raw entries. It stops short of naming the sibling it contrasts with (logs_search), leaving the agent to infer the pairing, and it lists facets (codebase, extension instance) that aren't exposed as top-level parameters.

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?

"to see where errors and warnings come from before reading them" gives a concrete when-to-use: aggregate first, then fetch lines. The complementary tool is only implied by "before reading them" rather than named, and there are no explicit exclusions or guidance on when a plain search would be preferable.

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