Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Log context

get_log_context
Read-onlyIdempotent

Shows log entries immediately before and after a given timestamp across all levels, so you can see what led up to an error and what happened next.

Instructions

Show the log entries immediately before and after a point in time, across all levels. Use it to see what led up to an error and what happened next.

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": {
      "timestamp": "<timestamp>"
    },
    "name": "get_log_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoEntries to show after the timestamp (default 10)
beforeNoEntries to show before the timestamp (default 10)
sourceNoOnly include entries whose source name contains this text
minLevelNoHide entries below this level (default trace, i.e. show everything)
timestampYesPoint in time to centre on (e.g. an error's timestamp) (ISO 8601, e.g. 2026-02-10T08:00:00Z)

Output Schema

NameRequiredDescriptionDefault
afterYes
beforeYes
timestampYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 scope around the timestamp and mentions all levels, but it does not disclose ordering, default entry counts, or how filtering parameters affect the view; the phrase 'across all levels' is also slightly at odds with the minLevel parameter.

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?

The description is two focused sentences, front-loading the behavior and then the use case. Every sentence earns its place with no redundant wording.

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?

Given the rich input schema, existing output schema, and read-only annotations, the description covers the essential behavior and usage context. It is not fully complete because it omits alternative-tool routing, but an agent has enough to call the tool correctly.

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 five parameters are already documented in the schema. The description adds no parameter-specific meaning such as how before/after counts are applied or how source and minLevel filtering interact, so baseline 3 is appropriate.

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?

The description states a specific verb and resource: showing log entries immediately before and after a point in time. This clearly distinguishes the tool's core temporal-context purpose, though it does not explicitly contrast it with sibling tools like search_logs 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear usage context: use it to see what led up to an error and what happened next. It stops short of naming alternatives or exclusions, so it falls short of the top score for when-not-to-use guidance.

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