Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Group by property

group_by_property
Read-onlyIdempotent

Count log entries by a structured property's value to identify frequent errors and analyze distributions. Defaults to error/fatal entries; supports level, source, and fingerprint pseudo-properties.

Instructions

Count log entries by the value of a structured property (e.g. Application, StatusCode, user.id). Use level, source or fingerprint as pseudo-properties. Defaults to error/fatal entries only.

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": {
      "property": "<property>"
    },
    "name": "group_by_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNoNumber of groups to return (default 20)
levelNoRestrict to a single level
sourceNoOnly include entries whose source name contains this text
endDateNoEnd of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)
propertyYesProperty name or dotted path, or one of: level, source, fingerprint
startDateNoStart of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)
errorsOnlyNoOnly count error/fatal entries (default true, ignored when level is set)

Output Schema

NameRequiredDescriptionDefault
totalYes
groupsYes
missingYesEntries without a value for the property
propertyYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds behavioral context by disclosing the default error/fatal-only scope, though it does not explain ordering of results, truncation behavior, or what happens when a property name is unknown.

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?

Three short sentences that front-load the operation, then the accepted property values, then the default filter. Nothing is padded and there is no repetition beyond minor overlap with the schema.

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 an output schema, full annotations, and 100% parameter coverage, the description only needs to frame purpose and key defaults, which it does. It falls short of complete only in not routing the agent away from overlapping siblings like summarise_errors.

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 seven parameters are already documented in schema, including the level/source/fingerprint pseudo-property values and the errorsOnly default. The description restates those points rather than extending them, so the baseline 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?

States a concrete verb and resource: count log entries grouped by the value of a structured property, with useful examples (Application, StatusCode, user.id). The pseudo-property note clarifies scope further, but no sibling tool is named, so the agent must infer on its own how this differs from summarise_errors or get_error_timeline.

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?

The description implies when the tool fits by explaining that level, source or fingerprint may be passed as pseudo-properties, and it states the default error/fatal filter. It never says when to choose this over aggregation-adjacent siblings, and it offers no exclusions or preconditions.

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