scoped-log-attribute-discovery

scoped-log-attribute-discovery is a skill for Claude Code, Codex from last9/last9-mcp-server. It costs 24 tokens per session (502 once invoked), scanned A, original, Apache-2.0.

A workflow for finding the correct log fields for one service before building an aggregate log query. It checks the service profile and discovers fields when the profile is incomplete.

In plain words
What is it for?
Use it to investigate a service's HTTP status codes, error rates, request counts, or log-field breakdowns.
Why use it?
It prevents queries from relying on guessed field names, which can return wrong or empty results. It also handles fields that are stored inside a log message and need parsing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate a service's HTTP status codes, error rates, request counts, or log-field breakdowns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/last9/last9-mcp-server/scoped-log-attribute-discovery
Install

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.

Any agent
npx skills add last9/last9-mcp-server --skill scoped-log-attribute-discovery
Clone the repo
git clone --depth 1 https://github.com/last9/last9-mcp-server

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for scoped-log-attribute-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/last9/last9-mcp-server/scoped-log-attribute-discovery/github.svg)](https://agentmods.dev/skills/last9/last9-mcp-server/scoped-log-attribute-discovery)
Your own site
<a href="https://agentmods.dev/skills/last9/last9-mcp-server/scoped-log-attribute-discovery"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/scoped-log-attribute-discovery/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.

agentmods 80×15 button for scoped-log-attribute-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/last9/last9-mcp-server/scoped-log-attribute-discovery"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/scoped-log-attribute-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00502
Opus 5.5 $0.00010 $0.00201
Sonnet 5.5 $0.00005 $0.00100
Haiku 4.5 $0.00002 $0.00050

Measured yesterday against content hash 55b6d9559a14, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scoped-log-attribute-discovery 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 yesterday.

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.

plugins/amp/last9/references/skills/scoped-log-attribute-discovery/SKILL.md · 41 lines

What it actually says

Workflow: scoped log attribute discovery before filtering.

Use this workflow for log questions about a specific service, especially HTTP status, error rate, counts, breakdowns, or fields that may live in the log body.

Steps: 0. Call get_service_profile(service_name=). Use the result for all routing below — do not re-derive telemetry shape via PromQL or attribute probing.

  1. If signal_shape is fully populated (log_format != "unknown", level_field set), skip attribute discovery and go directly to step 2 (get_logs). Otherwise fall back to get_log_attributes_for_pipeline with a pipeline scoped to the requested ServiceName and time window.
  2. After scoped discovery (or profile), go directly to get_logs. Do not inspect raw examples first; use the discovered field list, source, and parse hint to construct the aggregate query.
  3. Build the final get_logs query only from fields that scoped discovery returned for that service. Do not guess common status keys such as http.status_code, status_code, StatusCode, or http.response.status_code.
  4. If scoped discovery shows source: "body" or provides a parse hint, copy that parse stage before filtering or grouping on the derived field.
  5. For HTTP 5xx access-log questions, do not use SeverityText or severity as a proxy. Access logs can be INFO even for 5xx responses.
  6. Use get_logs for final counts, breakdowns, totals, and aggregates. Do not call get_service_logs for aggregate answers; it fetches raw samples and is not the answer path for this workflow.
  7. Forbidden tool for this workflow: get_service_logs. Never call it in this workflow, even if a get_logs attempt fails or returns an unexpected shape. Fix or simplify the get_logs pipeline and retry get_logs instead.

The final query must be scoped to the target service and return the requested count or grouped count, not a broad raw sample.

Files

What ships with it

1 file 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.

Changes

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.

  1. yesterday First seen · 41 lines · 24 tokens per session scan A 55b6d9559a14

Subscribe to this mod's changes

scoped-log-attribute-discovery is a skill published in the GitHub repository last9/last9-mcp-server (62 stars, last pushed today), licensed Apache-2.0. It adds 24 tokens to every session and 502 once invoked, about $0.0001 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-12-05.

Related

scoped-log-attribute-discovery compared with skills from other repositories

scoped-log-attribute-discovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scoped-log-attribute-discoverylast9/last9-mcp-serverSkill62todayApache-2.0A24Claude Code, Codex
observability-phoenixdavila7/claude-code-templatesSkill35ktodayMITA47Claude Code, Codex
langsmith-observabilitysynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A45Claude Code, Codex
detecting-process-injection-techniquesadriannoes/awesome-agentic-aiSkill1118d agoMITA78Claude Code, Codex
systematic-debuggingmonoscope-tech/monoscopeSkill2.2ktodayAGPL-3.0A21Claude Code, Codex
investigating-ransomware-attack-artifactsadriannoes/awesome-agentic-aiSkill1118d agoMITB36Claude Code, Codex
signoz-investigating-alertsSigNoz/agent-skillsSkill229d agoMITA138Claude Code