Skip to main content
Glama
KietDev-JS

openobserve-readonly-mcp

by KietDev-JS

o2_search

Read-onlyIdempotent

Execute read-only SQL SELECT/WITH queries on OpenObserve for logs, metrics, and traces. Retrieve recent data with default time filters and row limits, or specify custom start/end times.

Instructions

Run one read-only SQL SELECT/WITH query against OpenObserve. Quote the stream name: SELECT * FROM "stream" ORDER BY _timestamp DESC. Defaults to the last 15 minutes and returns at most 200 rows. No semicolons or SQL comments outside string literals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoISO-8601 end time (default now).
sqlYesOne SELECT or WITH statement.
sizeNoRows to return (default 50).
typeNoStream type (default logs).
startNoISO-8601 start time (overrides minutes).
minutesNoLook back this many minutes from end (default 15).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior. The description goes beyond that by disclosing SQL syntactic restrictions, required stream-name quoting, the default 15-minute lookback, and the 200-row cap. It does not describe error behavior or result shape, but the safety profile is well covered.

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 sentences, each earning its place: purpose, syntax example, and key operational constraints. The most important information is front-loaded and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a SQL query tool with complete schema coverage and safety annotations, the description covers everything needed to invoke it correctly: query type, stream quoting, time defaults, row limit, and syntax restrictions. No output schema exists, but the dynamic result shape cannot be meaningfully pre-declared.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful value with a real SQL example quoting the stream name and by clarifying default time window and row limits that map to the start/minutes/size parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Run one read-only SQL SELECT/WITH query against OpenObserve.' The concrete example and constraints make it unmistakably distinct from sibling tools like o2_list_streams and o2_stream_schema, which focus on metadata rather than query execution.

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?

Usage is implied by the read-only SQL query purpose and the stated defaults, but the description never explicitly says when to use this tool versus alternatives or when not to use it. No sibling tools are mentioned, so an agent must infer the selection context.

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

Deploy Server

Other Tools