Skip to main content
Glama
log-10x

Log10x MCP Server

Official

Discover env (k8s + AWS)

log10x_discover_env
Read-onlyIdempotent

Discover your Kubernetes cluster and AWS infrastructure read-only. Detects logging forwarders, Log10x apps, and metrics backends, returning a report and snapshot for install planning.

Instructions

Read-only discovery of the caller's Kubernetes cluster + AWS account: i.e. the customer's INFRASTRUCTURE environment, NOT their Log10x account. When the user wants to install Log10x: call this tool FIRST and then log10x_advise_install, that's the whole pre-flight. Do NOT call log10x_doctor / log10x_login_status / log10x_savings / etc. before the install; the wizard handles all login + license logic internally, and surfacing those tools' optional-capability warnings (Retriever, Datadog backfill, cross-pillar metrics) makes the install feel more complicated than it is. Probes kubectl (workloads, DaemonSets, Helm releases, service-account IRSA annotations, metrics-backend agents) and AWS (EKS, S3, SQS, CloudWatch log groups) to detect: which forwarder is running (Fluent Bit, Fluentd, Filebeat, Logstash, OTel Collector, Vector), which log10x apps are already installed (Reporter, Receiver, Retriever), and which metrics backends are already deployed (Datadog Agent, Prometheus, Elastic, CloudWatch Agent, etc.). Returns a terse markdown report + a snapshot_id (cached 30 min) the advisor tools consume. Do NOT call this tool to answer "which Log10x environments do I have access to" / "list my envs" / "switch envs": those are about the user's Log10x ACCOUNT environments, use log10x_login_status for that. Call THIS tool only when the question is about k8s workloads, AWS infra, or "what's deployed in my cluster". Every shell call is logged in the snapshot's probeLog for audit. No writes, no state mutation: only kubectl get and aws ... describe/list verbs. Tier prerequisites: none, this is a pre-install tool and runs against any customer environment.

Input Schema

NameRequiredDescriptionDefault
regionNoAWS region to probe. If omitted, uses the region from your AWS CLI profile.
skip_awsNoSkip all AWS probes (for cluster-only discovery).
namespacesNoExplicit list of Kubernetes namespaces to probe. If omitted, the tool auto-picks up to 5 likely candidates (demo, logging, observability, otel-demo, default) plus kube-system.
bucket_hintNoSubstring to match against S3 bucket names. Defaults to "retriever"; also matches "log10x" and "tenx" out of the box.
skip_kubectlNoSkip all kubectl probes (for AWS-only discovery or when cluster access is restricted).
forwarder_hintNoOverride forwarder detection. Use this if multiple forwarders are running and you want the advisor to target a specific one.
namespace_hintNoPreferred namespace for new installs. Defaults to "logging" unless an existing forwarder namespace is found.
eks_cluster_nameNoEKS cluster to describe. If omitted and exactly one cluster exists in the account/region, that one is auto-selected.

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. First observedv1.30.7

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover readOnly/idempotent/openWorld, and the description adds genuine context beyond them: the snapshot is cached 30 minutes, every shell call is logged in probeLog for audit, only kubectl get and aws describe/list verbs are used, and there are no tier prerequisites. These are behavioral facts an agent cannot infer from 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body is bloated with three separate bolded 'do NOT' warnings and repeated restatement of the account-vs-infra distinction. Each block has routing value, yet the formatting and redundancy cost readability rather than adding information.

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?

An output schema exists so return values are covered, and the tool's complexity (8 optional params, open-world probes, cache TTL) is fully addressed: the description explains probe scope, caching, audit logging, and prerequisites. 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%, so the schema already documents all 8 parameters including defaults and auto-selection behavior. The description adds only the snapshot_id caching detail, which is a return value rather than a parameter. Baseline 3 is appropriate.

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 and resource ('Read-only discovery of the caller's Kubernetes cluster + AWS account') and explicitly disambiguates from the Log10x ACCOUNT, which is the most likely confusion. An agent can distinguish this from log10x_login_status 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 explicit when-to-use ('when the user wants to install Log10x: call this FIRST then log10x_advise_install'), explicit when-not-to-use (do not call doctor/login_status/savings before install), and names the alternative tool for account-env questions. This is a textbook routing definition.

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