About Autotel MCP Instrumentation
Autotel MCP Instrumentation is an MCP server published by jagreehal in the Analytics category: openTelemetry instrumentation for Model Context Protocol (MCP) with distributed tracing support. Conduid read 54 tools from its source: agent_usage, aggregate_logs, aggregate_spans, backend_capabilities, backend_health, check_slos and 48 more. It is published to npm as autotel-mcp-instrumentation, a package with no command-line entry point.
The jagreehal/autotel monorepo this package is published from has 8 stars and 2 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include opentelemetry, otel, distributed-tracing, observability, instrumentation and w3c-trace-context.
Install
npm install autotel-mcp-instrumentationgit clone https://github.com/jagreehal/autotelTools (54)
agent_usageToken and cost usage of coding-agent sessions (Claude Code, Codex, opencode) seen by autotel-devtools. Filter by session, prompt (Claude prompt.id / Codex turn.id), repository name or path, or agent; latest="prompt" answers "what did my last request cost". Report `cost`/`tokens` completeness with the numbers: "partial" is a lower bound, "unknown" is not zero. `uncorrelatedSessions` counts sessions a repository filter excluded because they never reported a repository.| Parameter | Type | Description |
|---|---|---|
| agent | string | |
| latest | string | |
| prompt | string | |
| repository | string | |
| session | string |
aggregate_logsCount logs grouped by service, severity or any log attribute, with the most frequent message patterns per group (ids, numbers, quoted values and emails masked so "user 42 not found" and "user 97 not found" count as one). Use to see what a service is saying without reading thousands of lines; follow a pattern with search_logs text to get examples.| Parameter | Type | Description |
|---|---|---|
| from | string | |
| groupBy | array | |
| limit | number | |
| lookbackMinutes | number | |
| patternsPerGroup | number | |
| serviceName | string | |
| severityText | string | |
| text | string | |
| to | string |
aggregate_spansCount, error rate and latency (avg, p50, p95, p99, max) over spans, grouped by any fields: service, operation, version, or any span attribute (http.route, db.system.name, gen_ai.request.model...). bucketMinutes adds a time series per group. Use instead of reading raw traces to answer "which endpoint is slowest", "which version errors most", "p95 by route". Exact when the backend aggregates server-side (source: "backend"), otherwise computed from a sample across the window (source: "sample").backend_capabilitiesDescribe which telemetry signals the active backend can serve.backend_healthCheck backend health and readiness. Returns liveness plus the signal coverage map (traces / metrics / logs) so you can see at a glance what the backend can answer for, not just whether it is up.check_slosReport SLO violations. Provide p99 latency and error rate targets.| Parameter | Type | Description |
|---|---|---|
| lookbackMinutes | number | |
| maxErrorRate | number | |
| p99LatencyMs | number | |
| serviceName * | string |
collector_component_readmeGet README/reference text for a collector component.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| version | string |
collector_component_schemaGet JSON Schema for a collector component configuration.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| version | string |
collector_get_versionsList available OpenTelemetry Collector schema versions supported by the upstream catalog.collector_list_componentsList collector components (receivers/processors/exporters/connectors/extensions) for a given version.| Parameter | Type | Description |
|---|---|---|
| version | string |
collector_refresh_catalogRefresh local in-memory collector metadata cache from upstream GitHub catalog.collector_validate_component_configValidate collector component config against the versioned upstream JSON schema.| Parameter | Type | Description |
|---|---|---|
| config * | any | |
| name * | string | |
| version | string |
correlateGiven a trace ID, return the trace + metrics from involved services + correlated logs. One call for the full picture.| Parameter | Type | Description |
|---|---|---|
| traceId * | string |
discover_log_fieldsDiscover log field names, inferred types, and example values from sampled logs.| Parameter | Type | Description |
|---|---|---|
| sampleSize | number |
discover_servicesDiscover services with cross-signal metadata (operations, severities, metric names, and inferred language).| Parameter | Type | Description |
|---|---|---|
| limitServices | number | |
| logSample | number | |
| metricSample | number | |
| traceSample | number |
discover_trace_fieldsDiscover trace/span field names, inferred types, and example values from sampled traces.| Parameter | Type | Description |
|---|---|---|
| sampleSize | number |
estimate_telemetry_costEstimate what a month of telemetry costs today against what the same traffic costs once each request emits one canonical log line instead of a line per step. WHEN TO USE: someone asks whether instrumenting will raise their observability bill, what sampling would save, or how much a given traffic level costs to ingest. HOW IT WORKS: byte sizes are measured from real serialized records, not assumed — the saving comes from dropping repeated envelope (level, time, pid, hostname, request bindings, once per line) rather than payload, which is why one canonical line is larger than one log line and still smaller than the set it replaces. Spans are counted on the after side, so the answer can and does come back as "this costs more" when tracing is added on top. No provider rates are bundled: pass perGb (and perMillionEvents when your provider meters indexed events too) from your own bill or the vendor's current price page. A rate this tool invented would be wrong quietly. Sampling via keepPercent applies to both shapes, since any logger can drop events.| Parameter | Type | Description |
|---|---|---|
| keepPercent | number | Traffic kept after sampling, applied to both shapes |
| logLinesPerRequest | number | Log lines written per request today |
| perGb * | number | USD per gigabyte ingested, from your provider |
| perMillionEvents | number | USD per million events indexed; 0 when only bytes are metered |
| requestsPerMonth * | number | Requests the application serves per month |
| spansPerRequest | number | Spans exported per request after instrumenting |
explain_collector_configExplain the OTLP receiver collector config shape and defaults.explain_instrumentation_scoreExplain the instrumentation scoring rubric and fix ideas.explain_slowdownIdentify when and why a service degraded. Combines anomaly detection with cross-signal correlation.| Parameter | Type | Description |
|---|---|---|
| lookbackMinutes | number | |
| serviceName * | string |
find_anomaliesScan for statistical outliers: latency spikes, error rate jumps. Use after list_services to check a specific service.| Parameter | Type | Description |
|---|---|---|
| lookbackMinutes | number | |
| operation | string | |
| serviceName | string |
find_errorsAggregate error spans grouped by service and operation. Use to get an overview of what is failing.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| lookbackMinutes | number | |
| serviceName | string |
find_repeated_queriesGroup a trace's database spans by statement and report the ones that ran more than once. Use for N+1 detection: find_root_cause names the single slowest span, which on an N+1 is one cheap query among hundreds, so the repeat count is the finding rather than the duration.| Parameter | Type | Description |
|---|---|---|
| traceId * | string |
find_root_causeWalk a trace span tree to identify the bottleneck span. Use after get_trace or search_traces when investigating a slow/errored trace.| Parameter | Type | Description |
|---|---|---|
| traceId * | string |
get_entity_historyRead one entity instance's state transitions, oldest first, from the state.transition log records written by transition({ history: true, id }). History is off by default, so a backend with no records usually means it was not enabled for this entity; the result says so in `message`. Defaults to the last 24 hours.| Parameter | Type | Description |
|---|---|---|
| entity * | string | |
| field | string | |
| id * | string |
get_issueEverything needed to fix one issue from list_issues: the grouped summary, latest stack trace, the latest occurrence trace (compacted) and its logs, plus the service logs just before and after it. Hand this to a coding agent.| Parameter | Type | Description |
|---|---|---|
| contextSeconds | number | |
| fingerprint * | string |
get_llm_expensive_tracesFind traces with the highest total LLM token usage.| Parameter | Type | Description |
|---|---|---|
| endTime | string | |
| genAiRequestModel | string | |
| genAiResponseModel | string | |
| limit | number | |
| minTokens | number | |
| serviceName | string | |
| startTime | string |
get_llm_model_statsGet latency, token, and error statistics for one LLM model.| Parameter | Type | Description |
|---|---|---|
| endTime | string | |
| modelName * | string | |
| serviceName | string | |
| startTime | string |
get_llm_slow_tracesFind the slowest traces that include LLM spans.| Parameter | Type | Description |
|---|---|---|
| endTime | string | |
| genAiRequestModel | string | |
| genAiResponseModel | string | |
| limit | number | |
| minDurationMs | number | |
| serviceName | string | |
| startTime | string |
get_llm_usageAggregate LLM token usage by model and service.| Parameter | Type | Description |
|---|---|---|
| endTime | string | |
| genAiRequestModel | string | |
| genAiResponseModel | string | |
| genAiSystem | string | |
| limit | number | |
| serviceName | string | |
| startTime | string |
get_metric_seriesRead the data points of one metric over a time window, one series per attribute set (e.g. request rate, latency or error count per route). Use list_metrics to find the name. A histogram point reports its count.| Parameter | Type | Description |
|---|---|---|
| from | string | |
| limit | number | |
| lookbackMinutes | number | |
| metricName * | string | |
| serviceName | string | |
| to | string |
get_state_transitionsCount persisted state transitions (the autotel.state.transitions metric written by transition()) per entity, field, from, to, via and service. `from` and `to` here are state names, not times; use lookbackMinutes for the window. `instrumented` lists each entity and field with any series in the window. Absence means not instrumented or not seen, never that a transition cannot happen. Counts are best-effort evidence, not an authoritative number. The result is the autotel-transitions/v0.1.0 document itself, with no ok/data envelope.| Parameter | Type | Description |
|---|---|---|
| entity | string | |
| field | string | |
| from | string | |
| serviceName | string | |
| to | string |
get_traceGet a trace by trace ID.| Parameter | Type | Description |
|---|---|---|
| traceId * | string |
list_capabilitiesList the server capabilities, transports, tools, resources, and backend signals.list_issuesFailures grouped into issues by fingerprint (service + exception type + top app stack frames, or the normalised message when there is no stack) — the same key autotel-devtools uses. Covers thrown and handled exceptions, HTTP 5xx, error logs, and autotel log-flood / runaway-alarm reports. Each issue has status (active/resolved/ignored; stored by devtools, otherwise active), count, first/last seen, trend buckets, regression (came back after quietMinutes of silence), versions, affected users/accounts/sessions and sample trace IDs. Use to triage what is broken; follow with get_issue.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| minCount | number | |
| status | string |
list_llm_modelsDiscover LLM models in use and their usage frequency.| Parameter | Type | Description |
|---|---|---|
| endTime | string | |
| genAiSystem | string | |
| limit | number | |
| serviceName | string | |
| startTime | string |
list_llm_toolsDiscover tool/function spans and group them by tool name.| Parameter | Type | Description |
|---|---|---|
| endTime | string | |
| genAiSystem | string | |
| limit | number | |
| serviceName | string | |
| startTime | string |
list_metricsList the metrics a service emits (counters, gauges, histograms): name, unit, kind and description, without data points. Filter by metric name substring or service. Read values with get_metric_series.| Parameter | Type | Description |
|---|---|---|
| from | string | |
| limit | number | |
| lookbackMinutes | number | |
| metricName | string | |
| serviceName | string | |
| to | string |
list_operationsList operations for a service.| Parameter | Type | Description |
|---|---|---|
| serviceName * | string |
list_servicesList known services.mcp_sessionsHow agents use an MCP server, rebuilt from its tool-call spans (autotel-mcp-instrumentation). Each session lists its calls in order with the agent-stated intent (mcp.tool.call.intent), the user, client and model, and an outcome read off how it ended: completed, recovered (errors, then success), failed (ended on an error), paused (waiting on user input) or missing_tool (the agent reported a capability the server lacks). patterns groups sessions that took the same path through the tools, with completion rate and example intents; endedOn shows where failed sessions stopped; missingTools lists what agents looked for. Sessions come from gen_ai.conversation.id (sessionHandles) or mcp.session.id; intents need captureIntent. Outcomes are inferred, so a session still running when the window ends reads as its latest call.| Parameter | Type | Description |
|---|---|---|
| from | string | |
| limit | number | |
| lookbackMinutes | number | |
| outcome | string | |
| serviceName | string | |
| session | string | |
| to | string | |
| userId | string |
score_span_instrumentationScore a span for instrumentation quality and semantic convention coverage. Pass the traceId and spanId another tool returned, or a span object.search_logsSearch log records by service, severity (e.g. ERROR), free text in the message, trace or span id, or attribute values, newest first. Use a traceId to read the logs written during one request.| Parameter | Type | Description |
|---|---|---|
| attributes | object | |
| from | string | |
| limit | number | |
| lookbackMinutes | number | |
| serviceName | string | |
| severityText | string | |
| spanId | string | |
| text | string | |
| to | string | |
| traceId | string |
search_spansSearch spans by service, operation, status, tags, time window, duration, and error flag.search_tracesSearch traces by service, operation, status, tags, time window, and error flag. Returns root spans and a spanCount per trace; pass includeSpans:true for the full span tree, or call get_trace on the one trace you want. A trace containing an N+1 carries hundreds of spans, so asking for them across a whole result set can exceed the response limit.semconv_get_namespaceGet semantic-convention groups for one namespace (for example: http, rpc, database).| Parameter | Type | Description |
|---|---|---|
| namespace * | string |
semconv_list_namespacesList OpenTelemetry semantic-convention namespaces available from upstream.semconv_refresh_cacheClear semantic-conventions cache so subsequent calls fetch fresh upstream content.semconv_validateCheck the telemetry autotel-devtools has received against OpenTelemetry semantic conventions (via weaver live-check): deprecated attributes with their replacement, attributes no convention defines, unstable ones. run=true starts a fresh check (seconds); otherwise returns the latest result. A result with stale=true predates telemetry received since; re-run before relying on it. status "unavailable" means weaver is not installed on the devtools host.| Parameter | Type | Description |
|---|---|---|
| run | boolean |
service_mapBuild a service dependency map with node and edge health metrics.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| lookbackMinutes | number |
suggest_collector_configSuggest a minimal OTLP receiver collector config.summarize_traceSummarize a trace into a compact incident-friendly view.| Parameter | Type | Description |
|---|---|---|
| traceId * | string |
validate_collector_configValidate an OTLP receiver collector config fragment.| Parameter | Type | Description |
|---|---|---|
| config * | any |
what_changedDeployments as the spans record them: every service whose service.version changed inside the window, when, and its error rate and p95 latency before and after. Use first when something broke recently: a regression that lines up with a version change is usually the answer. Needs no deploy events, so it works on every backend; services that report no version are listed as unversioned. flagChanges does the same for feature flags: every flag whose feature_flag.version changed (a rollout widened, a kill switch flipped), per service that evaluated it, with error rate and p95 before and after. With feature flags behaviour changes without a deploy, so check flagChanges whenever changes is empty.| Parameter | Type | Description |
|---|---|---|
| from | string | |
| lookbackMinutes | number | |
| serviceName | string | |
| to | string |
Security checks
From the jagreehal/autotel monorepo, not this package alone.
- ✓README presentThe repository's README runs to about 1.5K words.
5 checks have not been run yet.
README
The repository's README runs to about 1.5K words. The original in the repository is authoritative.
Read full README