Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add talkops-ai/talkops-mcp --skill authoring-traceql-and-metrics-queriesgit clone --depth 1 https://github.com/talkops-ai/talkops-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/talkops-ai/talkops-mcp/authoring-traceql-and-metrics-queries)<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/authoring-traceql-and-metrics-queries"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/authoring-traceql-and-metrics-queries/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/authoring-traceql-and-metrics-queries"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/authoring-traceql-and-metrics-queries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00202 | $0.01217 |
| Opus 5.5 | $0.00081 | $0.00487 |
| Sonnet 5.5 | $0.00040 | $0.00243 |
| Haiku 4.5 | $0.00020 | $0.00122 |
Grade A, and why
authoring-traceql-and-metrics-queries scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Authoring TraceQL and Metrics Queries
Preconditions
- Read
tempo://server/capabilities,tempo://deployment/overview, andtempo://schema/{backend_id}/attributes(or calltempo_get_attribute_names) via MCP resources/tools before authoring any TraceQL expression. - Verify attribute values with
tempo_get_attribute_valuesbefore hardcoding string literals in selectors.
Query Authoring Workflow Checklist
- Step 1 — Discover Scoped Attributes: Read
tempo://schema/default/attributes(ortempo://schema/<backend_id>/attributesviaread_resource) first for instant SemConv and K8s attribute presence, then calltempo_get_attribute_namesacrossscope="resource",scope="span",scope="event",scope="link", orscope="instrumentation"as needed. - Step 2 — Check OTel Semconv Dual-Schema: Consult otel-semconv-and-k8s-attributes.md to verify whether the deployment emits OTel v1.20 (
http.status_code,net.peer.name,db.system) or OTel v1.24+ (http.response.status_code,server.address,db.system.name) attributes. - Step 3 — Compose TraceQL Selector & Structural Pipeline: Consult traceql-syntax.md and query-pack.md to construct span-set filters, structural operators (
>,>>,~,!>,!>>),select(),by(),coalesce(), andwith(most_recent=true)hints. Whenever a target namespace is specified, include an explicit namespace resource predicate (resource.service.namespace = "<ns>"orresource.k8s.namespace.name = "<ns>") in the TraceQL selector in addition to passingtenanton multi-tenant backends. - Step 4 — Add TraceQL Metrics Aggregations (When Needed): Verify
local-blocksis active intempo://server/capabilitiesortempo_get_diagnostics, then follow traceql-metrics.md when computingrate(),count_over_time(),quantile_over_time(),histogram_over_time(),sum_over_time(),avg_over_time(),min_over_time(),max_over_time(),topk(), orcompare(). Iflocal-blocksis disabled (METRICS_GENERATOR_PROCESSOR_ABSENT), fall back cleanly to boundedtempo_traceql_searchsampling and show how to enablelocal-blocks. - Step 5 — Lint Query Before Execution:
[GATE]Runscripts/lint_traceql.py --query '<traceql>'to validate balanced braces, unquotedstatus/kindintrinsic enums, explicitresource./span.attribute scopes, and bounded regex usage before invokingtempo_traceql_search,tempo_traceql_metrics_range,tempo_traceql_metrics_instant, ortempo_query_a2ui. - Step 6 — Execute, Visualize & Paginate:
- For trace search: call
tempo_traceql_searchwithmost_recent=Truefor interactive triage; whentruncated == Trueorlen(traces) == limit, paginate deterministically by passing the returnednext_window("<start>..<end>"epoch range insince) rather than raisinglimit/spssunboundedly. - For time-series metrics: call
tempo_traceql_metrics_range. - For instant top-K or cohort comparisons: call
tempo_traceql_metrics_instantortempo_compare_span_cohorts. - For interactive waterfall / flamegraph views of a specific
trace_id: calltempo_query_a2uiinstead of dumping raw span JSON.
- For trace search: call
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 33 lines · 202 tokens per session scan A b86a6adcac14
authoring-traceql-and-metrics-queries is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 202 tokens to every session and 1,217 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.
authoring-traceql-and-metrics-queries compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| authoring-traceql-and-metrics-queriestalkops-ai/talkops-mcp | Skill | 4 | 12d ago | Apache-2.0 | A | 202 | Claude Code, Codex |
| chrome-devtools-cliChromeDevTools/chrome-devtools-mcp | Skill | 60k | today | Apache-2.0 | A | 31 | Claude Code |
| n8n-validation-expertczlonkowski/n8n-mcp | Skill | 23k | 3d ago | MIT | A | 91 | Claude Code, Codex |
| n8n-error-handlingczlonkowski/n8n-mcp | Skill | 23k | 3d ago | MIT | A | 128 | Claude Code, Codex |
| agentcore-investigationawslabs/mcp | Skill | 10.0k | 2d ago | Apache-2.0 | A | 52 | Claude Code, Codex |
| openlore-analyze-codebaseclay-good/OpenLore | Skill | 369 | today | MIT | A | 48 | Claude Code, Codex |
| flutter-mcp-toolkit-intentcall-migrationArenukvern/mcp_flutter | Skill | 401 | 3d ago | MIT | A | 58 | Claude Code |