Skip to main content
Glama
Scalyr MCP Server

Scalyr MCP Server

by celos101

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SCALYR_API_BASE_URLNoAPI base URL. Set for DataSet EU or other regions.https://www.scalyr.com/api
SCALYR_API_READ_KEYYesScalyr/DataSet API read token.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
scalyr_query_logsA

Search Scalyr/DataSet logs with automatic pagination. Returns matching log events with timestamps, messages, and parsed attributes.

Recommended workflow: use scalyr_facets or scalyr_count first to understand the data volume, then use this tool with a targeted filter and small maxCount.

Filter syntax examples:

  • $serverHost == "myserver" level == "ERROR"

  • $serverHost == "bank-cron" (level == "ERROR" || level == "CRITICAL")

  • $logfile == "/var/log/app.log" status >= 500

Tips:

  • Use a narrow time range and specific filters to avoid scanning too much data.

  • The API scans forward from startTime — if most logs are INFO, errors near the end of the range may not be reached with low priority. Use priority "high" or a narrower time window.

  • Start with maxCount 20-50 to preview results before requesting more.

scalyr_countA

Count log events matching a filter. Fast way to check data volume before querying full logs.

Note: uses Scalyr's numericQuery which does text matching, so counts may be slightly higher than exact field matching. For precise counts, use scalyr_power_query.

scalyr_facetsA

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.

scalyr_power_queryA

Run a Scalyr PowerQuery expression for advanced aggregation, grouping, and filtering. Use this for analytics-style queries.

Examples:

  • $serverHost == "bank-cron" level == "ERROR" | group count() by status

  • $logfile == "/var/log/app.log" | group count(), avg(duration) by endpoint | sort -count

  • level == "ERROR" | columns timestamp, message, $serverHost

scalyr_get_fileA

Retrieve a configuration file stored in Scalyr/DataSet. Common paths: '/scalyr/alerts' (alert configs), '/scalyr/searches' (saved searches).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 5 tools

Disambiguation4/5

The set has four query-oriented tools that partially overlap (scalyr_count and scalyr_facets can both be expressed via scalyr_power_query), but the descriptions give explicit routing guidance (facets/count first to size data, query_logs for detail, power_query for analytics). scalyr_get_file is clearly distinct. Boundaries are clear enough that an agent can choose correctly.

Naming Consistency4/5

All tools share a consistent scalyr_ prefix and mostly readable verb/noun names (scalyr_query_logs, scalyr_get_file). Minor deviations: scalyr_count and scalyr_facets are bare nouns while others are verb-based, and scalyr_power_query is noun-noun, but the pattern remains predictable.

Tool Count5/5

Five tools is well within the ideal 3-15 range and each maps to a distinct mode of log investigation (raw search, counting, distribution, analytics, config retrieval). No tool feels like filler for a log-analysis server.

Completeness4/5

Core log lifecycle is covered: discovery (facets), sizing (count), retrieval (query_logs), analytics (power_query), plus config access (get_file). Minor gap: there is no tool to enumerate available fields, logfiles, saved searches, or the file tree, so agents must already know field names or paths (mitigated by examples and listed common paths).

Maintenance

ActivityInactive
ResponsivenessNo recent community issues