Skip to main content
Glama
log-10x

Log10x MCP Server

Official
by log-10x

Rank by shape similarity

log10x_rank_by_shape_similarity
Read-onlyIdempotent

Rank candidate metrics by shape similarity via Pearson correlation and signed lag against an anchor log pattern or metric to spot leading or lagging cross-pillar signals.

Instructions

Second step of cross-pillar investigation: Pearson correlation + signed lag on a pre-filtered candidate set (typically the moved[] output of log10x_metrics_that_moved). Returns per-candidate: pearson_magnitude, pearson_signed (direction preserved), lag_seconds (signed: negative = candidate leads anchor, positive = candidate lags), lag_at_bound (flag: peak landed at search-window boundary), lag_tightness (how sharply the Pearson surface peaks), anchor_phase_gap, anchor_phase_aligned (flag: candidate value differs ≥15% between anchor's high-phase and low-phase buckets), n_buckets. No tier, no causal label — the agent reads the flags and decides. Compose with log10x_metric_overlay for the final per-candidate aligned-timeseries view.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepNo30s
anchorYesAnchor identity. For `anchor_type=log10x_pattern`: the pattern Symbol Message NAME or its 11-char `pattern_hash` (= `tenx_hash`) — the tool detects shape and queries the correct PromQL label (`message_pattern` vs `tenx_hash`). For `anchor_type=customer_metric`: a customer PromQL expression.
windowNo1h
timeRangeNo
candidatesYesCustomer-side PromQL expressions to rank (max 100). An AI caller reasoning over results can't meaningfully digest more than a few dozen; the cap reflects that, not a backend constraint.
anchor_typeYes
environmentNo
lag_search_max_absNoMaximum absolute lag in seconds to scan. Default 1800s — uncalibrated. Output is tagged `unvalidated_default` when used as-is. Narrow it when the use case has a known tighter upper bound on cascade latency (e.g. 300 for sub-5-min cascades). See `docs/cross-pillar-primitives.md` for the calibration playbook.
customer_metrics_urlNoPer-call override for the customer metrics backend URL. Wins over LOG10X_CUSTOMER_METRICS_URL env var. Use when MCP was launched with an empty/stale URL.
customer_metrics_authNo
customer_metrics_typeNo
anchor_phase_aligned_floorNoRelative phase-gap floor for the `anchor_phase_aligned` flag. Default 0.15 — uncalibrated, same provenance caveat as lag_search_max_abs.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
toolYes
viewNosummary
imagesNo
actionsNo
summaryYes
warningsNo
truncatedNo
next_cursorNo
render_hintNo
generated_atYes
schema_epochYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.30.7

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description goes further by disclosing that no tier or causal label is produced ('the agent reads the flags and decides') and by explaining what each returned flag means, which is genuine behavioral context beyond the annotations.

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?

The text is dense and front-loaded with the core algorithm and workflow position, followed by a compact enumeration of output fields. Every sentence carries information, though the long inline field list is heavy for a single sentence and could be more scannable.

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?

For a complex 12-parameter analysis tool, the description supplies the workflow framing, the semantic meaning of its outputs, and calibration caveats, and an output schema exists so return values need not be repeated. The remaining gap is input parameter coverage, which the description largely leaves to the schema.

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

Parameters2/5

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

With 12 parameters and only 42% schema description coverage, the description should compensate for undocumented parameters, but it does not. Parameters such as step, window, timeRange, environment, customer_metrics_auth and customer_metrics_type receive no explanation in either place, and the description's content is almost entirely about output fields rather than inputs.

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 names a specific operation (Pearson correlation + signed lag ranking) on a specific resource (a pre-filtered candidate set), and even states its position in the workflow ('Second step of cross-pillar investigation'). An agent can distinguish it from siblings like log10x_metric_overlay or log10x_metrics_that_moved without opening either schema.

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 clearly places the tool in a workflow, naming the typical input source ('the moved[] output of log10x_metrics_that_moved') and the composition partner ('Compose with log10x_metric_overlay for the final per-candidate aligned-timeseries view'). It does not state explicit exclusions or when-not-to-use, so it falls just short of a 5.

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