Skip to main content
Glama
Scalyr MCP Server

Scalyr MCP Server

by celos101

scalyr_facets

Read-only

Shows the value distribution for a chosen field across matching logs, helping you understand log contents before querying details.

Instructions

Get the value distribution for a field across matching logs. Great first step to understand what's in your logs before querying details.

Example: use field "level" to see how many ERROR vs INFO vs WARNING events exist, or "$serverHost" to see which servers are logging.

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": {
      "filter": "<filter>",
      "field": "<field>",
      "startTime": "<startTime>"
    },
    "name": "scalyr_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldYesField name, e.g. 'level', 'status', '$serverHost', '$logfile'
filterYesScalyr filter expression
endTimeNoEnd of time range. Defaults to now
maxCountNoMaximum distinct values to return (default 50)
startTimeYesStart of time range. Relative (e.g. '60m', '24h', '7d') or absolute timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds useful semantics — that results are counts per distinct value — but says nothing about truncation at maxCount, result ordering, or whether counts are exact or sampled, which matters for an open-world log query.

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?

Front-loaded with the core definition, then a short motivating use case and two examples. All three sentences carry weight, though the example sentence could be tightened without losing anything.

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?

No output schema exists, and the description compensates reasonably by explaining that the return is a distribution of counts per value. For a five-parameter read-only query tool this is nearly sufficient; the main omission is what happens when the distinct-value set exceeds maxCount.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description goes slightly beyond by illustrating realistic field values like "level" and "$serverHost" that mirror the schema hints. Filter expression syntax and time-range formats are left entirely to the schema, so no additional meaning is contributed for those parameters.

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 specific verb and resource: getting the value distribution for a field across matching logs. It clearly positions the tool as an exploratory first step distinct from detail retrieval, though it never names any of the siblings (scalyr_count, scalyr_query_logs, scalyr_power_query) that an agent might confuse it with.

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?

Explicitly frames this as a 'great first step to understand what's in your logs before querying details,' which gives a clear when-to-use signal plus two concrete field examples. It stops short of naming an alternative tool or stating when this is the wrong choice over scalyr_count or scalyr_query_logs.

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