Skip to main content
Glama
log-10x

Log10x MCP Server

Official

Event lookup

log10x_event_lookup
Read-onlyIdempotent

Resolve a pasted single log line or pattern name to its pattern hash, then report service volume, cost, first-seen, and offload disposition to answer if it is new or safe to drop.

Instructions

Resolve a raw log line or pattern name to its pattern hash, which is the same for the same line under the same engine, symbol library and configuration, then return byte volume + share per service (with cost overlay when $/GB is set), before→after delta, first-seen timestamp within the observation window, and the current offload disposition (pass / sample / compact / drop) read from the Reporter routeState label; only when LOG10X_AI_SUMMARY=true, an AI category for the pattern (error/debug/info/metric/health) with a one-line explanation. Call this first whenever a user pastes a SINGLE log line and asks "what is this", "is this new", "is this safe to drop", or "is this being dropped / offloaded". The lookup is structural, not byte-exact: different timestamps/request IDs/user IDs on the same underlying pattern resolve to the same hash. If no match is returned, say so. Use log10x_resolve_batch instead when the user pastes MULTIPLE events, a SIEM dump, or a batch to triage.

Input Schema

NameRequiredDescriptionDefault
patternNoPattern name or search term to look up (e.g., "Payment_Gateway_Timeout"). Omit when passing `pattern_hash` / `tenxHash` instead.
serviceNoService to scope the lookup
tenxHashNoLegacy alias of `pattern_hash`. Both are accepted. Pass either the canonical `pattern_hash` form or this legacy form: they are treated identically.
siemScopeNoSIEM scope for the live sample line on a tenxHash reverse lookup: a CloudWatch log group (`/aws/ecs/my-svc`), ES index, or Splunk index. When omitted, the detected SIEM connector uses its own default scope. Only consulted when `tenxHash` was passed (the cross-pillar correlation case).
timeRangeNoTime range. Sub-day values for incident-window lookups. '24h' and '1d' are equivalent.7d
environmentNoEnvironment nickname
analyzerCostNoSIEM ingestion cost in $/GB (deprecated alias of `effective_ingest_per_gb`)
pattern_hashNoCanonical 11-char hash seen on a SIEM / CloudWatch Logs event (e.g. "03ndjreM-sU"). Alias of `tenxHash`; both are accepted. Resolved against the 10x metrics to recover the pattern, then the normal cost/services breakdown is shown.
effective_ingest_per_gbNoCustomer-supplied SIEM ingest cost in $/GB. When set, dollar fields populate with rate_source=customer_supplied; when absent and no default rate is detected, dollar fields collapse to null and rate_source=unset.

Output 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. Changed2 schema fields changedv1.30.8
    • changedInput schema / properties / effective_ingest_per_gb / description
      Previous value: -"Customer-supplied SIEM ingest cost in $/GB. When set, dollar fields populate with rate_source=customer_supplied; when absent and no list rate is detected, dollar fields collapse to null and rate_source=unset."New value: +"Customer-supplied SIEM ingest cost in $/GB. When set, dollar fields populate with rate_source=customer_supplied; when absent and no default rate is detected, dollar fields collapse to null and rate_source=unset."
    • changedInput schema / properties / tenxHash / description
      Previous value: -"Legacy alias of `pattern_hash`. Both are accepted. Pass either the canonical `pattern_hash` form or this legacy form — they are treated identically."New value: +"Legacy alias of `pattern_hash`. Both are accepted. Pass either the canonical `pattern_hash` form or this legacy form: they are treated identically."
  2. First observedv1.30.7

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover readOnly/idempotent/openWorld, yet the description adds substantial non-obvious behavior: hashes are stable per engine/symbol library/config, the lookup is structural rather than byte-exact, offload disposition comes from the Reporter routeState label, AI category is gated on LOG10X_AI_SUMMARY=true, cost overlay only appears when $/GB is set, and it advises saying so when no match returns.

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 resolve-and-return purpose before the routing directive and the anti-pattern exclusion, so the critical part is read first. The opening sentence is a long, dense run-on enumerating many return fields, which slightly hurts scannability but earns its space.

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?

With an output schema present and rich annotations plus 100% schema coverage, the description need not explain return values, yet it still frames them usefully. For a 9-parameter, 0-required tool with multiple aliases and conditional behavior, nothing an agent needs to invoke it correctly is missing.

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% and the schema itself thoroughly documents every parameter (including aliases and the siemScope cross-pillar case), so the baseline of 3 applies. The description reinforces the meaning of pattern_hash/tenxHash stability and the $/GB cost overlay but largely restates what the schema already carries.

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?

States a specific verb+resource pair: resolve a raw log line or pattern name to its pattern hash, then return byte volume, share per service, delta, first-seen timestamp, and offload disposition. It explicitly distinguishes itself from the sibling log10x_resolve_batch by input cardinality, so an agent can route 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 Guidelines5/5

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

Gives a bolded 'Call this first' trigger naming the exact user intents ('what is this', 'is this new', 'is this safe to drop') and the input shape (a SINGLE log line). It also names the alternative sibling log10x_resolve_batch and the condition (MULTIPLE events / SIEM dump / batch triage) that selects it.

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