Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

AgentLens

NPM · @AGENTKITAI/AGENTLENS-MCP · SCANNED AUG 3

Tamper-evident, SHA-256 hash-chained audit trail and observability for AI agents.

+24 this week 67 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security87
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (97 of 101), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (97 of 101), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability62
  • AI-judged instruction clarity (good).Pass
  • Context-footprint check failed: tool/resource definitions use about 4294 tokens (~195/item across 22 items; 22 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management27
  • Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · @agentkitai/agentlens-mcp

# add to Claude Code
claude mcp add agentkitai-agentlens -- npx -y @agentkitai/agentlens-mcp
# add to Codex CLI
codex mcp add agentkitai-agentlens -- npx -y @agentkitai/agentlens-mcp
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "agentkitai-agentlens": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@agentkitai/agentlens-mcp"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add agentkitai-agentlens --command npx --arg -y --arg @agentkitai/agentlens-mcp
# ~/.hermes/config.yaml
mcp_servers:
  agentkitai-agentlens:
    command: "npx"
    args: ["-y", "@agentkitai/agentlens-mcp"]
// mcp.json
{
  "mcpServers": {
    "agentkitai-agentlens": {
      "command": "npx",
      "args": [
        "-y",
        "@agentkitai/agentlens-mcp"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 3 Aug 26 −2

    No change was recorded against any check on this day. Supply Chain Security went from 97 to 87. Other categories moved too: Stability & Change Management rose 4.

  • 2 Aug 26 +36
    • Provenance: unverified → fail security
    • Install scripts: unverified → pass security
    • Known CVEs: unverified → partial security
    • License: unverified → pass functional
    • Maintenance: unverified → pass functional
    • MCP protocol: unverified → pass functional
    • Stability: unverified → 0.23 functional
    • Schema quality: unverified → good functional
    • Dependency health: unverified → partial functional
    • Licence: MIT functional
  • 1 Aug 26 +15
    • Malware scan: unverified → pass security
  • 31 Jul 26 −7
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 30 Jul 26 −18
    • Malware scan: pass → unverified security
  • 27 Jul 26 43

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 3 Aug 2026 · Analysed npm/@agentkitai/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 97 packages

97 packages in the resolved dependency tree · 94 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 22 exposed · ~4,294 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
agentlens_agents ~136

List, inspect, and manage AgentLens agents. **When to use:** To see which agents are registered, check agent details and error rates, or unpause a paused agent. **Actions:** - `list`: List all agents with error rates - `detail`: Get agent detail by ID - `unpause`: Clear paused state for an agent **Example:** agentlens_agents({ action: "list" })

NameTypeReqDescription
actionstringyesAction to perform
agentIdstringAgent ID (required for detail/unpause)
clearModelOverridebooleanClear model override on unpause

No output schema declared.

No examples provided.

agentlens_alerts ~277

Manage alert rules and view alert history. **When to use:** To create alerting rules for error rates, costs, or latency thresholds; manage existing rules; or review past alert triggers. **Actions:** - `list`: List all alert rules - `create`: Create a new alert rule - `update`: Update an existing alert rule - `delete`: Delete an alert rule - `history`: View recent alert triggers **Example:** agentlens_alerts({ action: "create", name: "High error rate", condition: "error_rate_above", threshold: 0.1, windowMinutes: 60 })

NameTypeReqDescription
actionstringyesAction to perform
conditionstringCondition: error_rate_above, cost_above, latency_above (required for create)
enabledbooleanEnable/disable rule
limitnumberMax history results
namestringAlert rule name (required for create)
notifyChannelsarrayNotification channels
ruleIdstringRule ID (required for update/delete)
scopestringScope: global or agentId
thresholdnumberThreshold value (required for create)
windowMinutesnumberEvaluation window in minutes (required for create)

No output schema declared.

No examples provided.

agentlens_analytics ~201

Query operational analytics: metrics, costs, agent performance, and tool usage. **When to use:** To understand system performance trends, cost breakdowns, agent activity, or tool usage patterns over time. **Actions:** - `metrics`: Get bucketed metrics with optional range/date filters - `costs`: Get cost breakdown - `agents`: Get per-agent metrics - `tools`: Get tool usage statistics **Example:** agentlens_analytics({ action: "metrics", range: "24h" })

NameTypeReqDescription
actionstringyesAction to perform
agentIdstringFilter by agent ID
fromstringStart date ISO
granularitystringBucket granularity
rangestringShorthand: 1h, 6h, 24h, 3d, 7d, 30d
tostringEnd date ISO

No output schema declared.

No examples provided.

agentlens_benchmark ~431

Manage A/B benchmarks: create, list, check status, get results, and control lifecycle. **When to use:** To set up controlled experiments comparing different agent configurations (models, prompts, parameters), track which variant performs better, and get statistical results. **Workflow:** 1. `create` — Define a benchmark with 2+ variants and metrics 2. Tag sessions with variant tags during data collection 3. `start` — Transition benchmark to running 4. `status` — Check progress (session counts per variant) 5. `results` — Get statistical comparison with p-values 6. `complete` — Finalize the benchmark **Actions:** - `create`: Set up a new benchmark (name, variants[], metrics[]) - `list`: List benchmarks, optionally filter by status - `status`: Get benchmark detail with per-variant session counts - `results`: Get formatted comparison table with statistical analysis - `start`: Transition benchmark to running state - `complete`: Transition benchmark to completed state **Example:** agentlens_benchmark({ action: "create", name: "GPT-4o vs Claude", variants: [{name: "gpt4o", tag: "v-gpt4o"}, {name: "claude", tag: "v-claude"}], metrics: ["cost", "latency", "success_rate"] })

NameTypeReqDescription
actionstringyesAction to perform
agentIdstringAgent ID to scope the benchmark to
benchmarkIdstringBenchmark ID (required for status/results/start/complete)
descriptionstringBenchmark description
metricsarrayMetrics to track (e.g., ["cost", "latency", "success_rate"])
minSessionsintegerMinimum sessions per variant before results are meaningful
namestringBenchmark name (required for create)
statusstringFilter by status (for list action)
variantsarrayVariants to compare (required for create, min 2)

No output schema declared.

No examples provided.

agentlens_context ~231

Retrieve cross-session context for a topic — related session summaries and lessons ranked by relevance. **When to use:** At the start of a session to load relevant history, when building a system prompt with past experience, when starting work on a topic the agent has handled before, or to audit what happened with a specific topic. **What it returns:** Related sessions (with summaries, key events, and relevance scores) and related lessons, all ranked by relevance to the topic. Includes an overall summary. **Example:** agentlens_context({ topic: "database migrations", limit: 5 }) → returns past sessions about DB migrations with key events, plus any lessons learned about migrations.

NameTypeReqDescription
agentIdstringFilter by agent ID
fromstringStart date filter (ISO 8601)
limitnumberMaximum number of sessions to include (default: 5)
tostringEnd date filter (ISO 8601)
topicstringyesTopic to retrieve context for (natural language)
userIdstringFilter by user ID

No output schema declared.

No examples provided.

agentlens_cost_budgets ~294

Manage cost budgets and anomaly detection. **When to use:** To create/manage spending limits, check budget utilization, or configure cost anomaly detection. **Actions:** - `list`: List all cost budgets - `create`: Create a new budget - `update`: Update an existing budget - `delete`: Delete a budget - `status`: Check spend vs limit for a budget - `anomaly_config`: Get anomaly detection configuration - `anomaly_update`: Update anomaly detection settings **Example:** agentlens_cost_budgets({ action: "create", scope: "global", period: "daily", limitUsd: 10, onBreach: "alert" })

NameTypeReqDescription
actionstringyesAction to perform
agentIdstringAgent ID (for agent-scoped budgets)
budgetIdstringBudget ID (required for update/delete/status)
downgradeTargetModelstringTarget model for downgrade action
enabledbooleanEnable/disable budget
limitUsdnumberSpending limit in USD
lookbackDaysnumberLookback period in days for anomaly detection
onBreachstringAction on budget breach
periodstringBudget period
scopestringBudget scope
zScoreThresholdnumberZ-score threshold for anomaly detection

No output schema declared.

No examples provided.

agentlens_delegate ~207

Delegate a task to another agent in the AgentLens network. **When to use:** When you've discovered an agent capable of handling a specific task (via agentlens_discover) and want to delegate work to it. **Example:** agentlens_delegate({ action: "delegate", targetAgentId: "anon-abc123", taskType: "translation", input: { text: "Hello", targetLang: "es" } })

NameTypeReqDescription
actionstringyesOperation to perform: delegate
fallbackEnabledbooleanEnable fallback to alternative agents on failure (default: false)
inputyesInput data for the delegated task
maxRetriesnumberMaximum retry attempts with alternative agents (default: 3, max: 10)
targetAgentIdstringyesAnonymous agent ID (from discovery results)
taskTypestringyesTask type to delegate
timeoutMsnumberTimeout in milliseconds (default: 30000)

No output schema declared.

No examples provided.

agentlens_discover ~199

Discover available agent capabilities in the network. **When to use:** Before delegating a task, to find agents that can handle a specific task type. Returns ranked results with trust scores, estimated cost, and latency. **Example:** agentlens_discover({ action: "discover", taskType: "code-review", minTrustScore: 70, limit: 5 })

NameTypeReqDescription
actionstringyesOperation to perform: discover
limitnumberMax results to return (default: 10, max: 20)
maxCostnumberMaximum estimated cost in USD
maxLatencynumberMaximum estimated latency in milliseconds
minTrustScorenumberMinimum trust score percentile (0-100)
taskTypestringyesTask type to search for (e.g., translation, summarization, code-review, data-extraction, classification, generation, analysis, transformation, custom)

No output schema declared.

No examples provided.

agentlens_guardrails ~134

Check guardrail status for the current agent. Returns active guardrail rules, their current state, and recent trigger history. **When to use:** To check what guardrails are protecting this agent, whether any have been triggered recently, and what conditions/actions are configured. **What it returns:** A list of configured guardrail rules with their status (enabled/disabled, trigger count, last trigger time) and recent trigger history. **Example:** agentlens_guardrails({}) → returns all guardrail rules and their status.

NameTypeReqDescription
agentIdstringAgent ID to check guardrails for (defaults to current agent)

No output schema declared.

No examples provided.

agentlens_health ~159

Check the health score of the current agent. Returns overall score (0-100), trend, and dimension breakdown. **When to use:** To assess the current health and performance of the agent, to check if error rates or latency are degrading, or to get a quick overview of agent reliability metrics. **What it returns:** An overall health score (0-100), a trend indicator (improving/stable/degrading), and a breakdown by five dimensions: error rate, cost efficiency, tool success, latency, and completion rate. **Example:** agentlens_health({ window: 7 }) → returns health score with dimension breakdown for the last 7 days.

NameTypeReqDescription
windownumberRolling window in days (default: 7)

No output schema declared.

No examples provided.

agentlens_log_event ~101

Log an event to an active AgentLens session.

NameTypeReqDescription
eventTypestringyesEvent type (e.g., tool_call, tool_response, custom)
metadataobjectArbitrary metadata (tags, labels, correlation IDs)
payloadobjectyesEvent payload — structure depends on eventType
sessionIdstringyesSession ID from agentlens_session_start
severitystringSeverity level (default: info)

No output schema declared.

No examples provided.

agentlens_log_llm_call ~261

Log a complete LLM call (request + response) to an active AgentLens session. Emits paired llm_call and llm_response events.

NameTypeReqDescription
completionyesThe completion content returned by the model
costUsdnumberyesCost of this call in USD
finishReasonstringyesStop reason (e.g., "stop", "length", "tool_use", "content_filter", "error")
latencyMsnumberyesLatency in milliseconds
messagesarrayyesThe prompt messages sent to the model
modelstringyesModel identifier (e.g., "claude-opus-4-6", "gpt-4o")
parametersobjectModel parameters (temperature, maxTokens, etc.)
providerstringyesLLM provider name (e.g., "anthropic", "openai", "google")
sessionIdstringyesSession ID from agentlens_session_start
systemPromptstringSystem prompt (if separate from messages)
toolCallsarrayTool calls requested by the model
toolsarrayTool/function definitions provided to the model
usageobjectyesToken usage counts

No output schema declared.

No examples provided.

agentlens_optimize ~183

Get cost optimization recommendations. Analyzes LLM call patterns and suggests cheaper model alternatives. **When to use:** To identify cost-saving opportunities by switching expensive models to cheaper alternatives for tasks that don't require the most capable model. Analyzes call complexity (simple/moderate/complex) and success rates. **What it returns:** A list of model switch recommendations with estimated monthly savings, confidence levels, and success rate comparisons. Sorted by potential savings. **Example:** agentlens_optimize({ period: 7 }) → returns recommendations like "Switch gpt-4o → gpt-4o-mini for SIMPLE tasks, saving $89/month".

NameTypeReqDescription
limitnumberMax recommendations to return (default: 5, max: 50)
periodnumberAnalysis period in days (default: 7, max: 90)

No output schema declared.

No examples provided.

agentlens_prompts ~273

Manage prompt templates and versions. **Actions:** - `list`: List prompt templates (optional category, search filters) - `get`: Get a template with all versions by ID - `create`: Create a new prompt template with initial content - `update`: Create a new version of an existing template - `analytics`: Get per-version metrics for a template - `fingerprints`: List auto-discovered prompt fingerprints **Example:** agentlens_prompts({ action: "list", category: "system" })

NameTypeReqDescription
actionstringyesAction to perform
agentIdstringAgent ID filter (for fingerprints)
categorystringCategory filter or value
changelogstringChange description (for update)
contentstringPrompt content (for create, update)
descriptionstringTemplate description (for create)
fromstringStart date ISO (for analytics)
namestringTemplate name (for create)
searchstringName search filter (for list)
templateIdstringTemplate ID (for get, update, analytics)
tostringEnd date ISO (for analytics)
variablesstringJSON array of variable definitions (for create)

No output schema declared.

No examples provided.

agentlens_query_events ~62

Query events from an AgentLens session.

NameTypeReqDescription
eventTypestringFilter by event type
limitnumberMaximum number of events to return (default: 50)
sessionIdstringyesSession ID to query events from

No output schema declared.

No examples provided.

agentlens_reflect ~308

Analyze behavioral patterns from agent sessions — error patterns, tool sequences, cost analysis, and performance trends. **When to use:** To identify recurring errors and their root causes (error_patterns), to understand cost drivers and optimize model usage (cost_analysis), to discover common tool usage chains and their success rates (tool_sequences), or to track performance over time (performance_trends). **What it returns:** A list of structured insights with type, summary, data, and confidence score, plus metadata about how many sessions/events were analyzed. Each analysis type returns different data shapes. **Example:** agentlens_reflect({ analysis: "error_patterns", agentId: "my-agent", from: "2026-01-01" }) → returns recurring error patterns with counts, first/last seen, and affected sessions.

NameTypeReqDescription
agentIdstringFilter analysis to a specific agent
analysisstringyesType of analysis to run: error_patterns (recurring errors), tool_sequences (common tool usage patterns), cost_analysis (cost breakdown and trends), performance_trends (success rate and duration trend…
fromstringStart of time range (ISO 8601)
limitnumberMaximum number of results to return (default: 20)
paramsobjectAdditional parameters (e.g., { model: "gpt-4o" } for cost_analysis)
tostringEnd of time range (ISO 8601)

No output schema declared.

No examples provided.

agentlens_replay ~272

Replay a past session as a structured, human-readable timeline. **When to use:** To review what happened in a previous session — understand failures, decision patterns, timing, or cost accumulation. Great for debugging or post-mortem analysis. **What it returns:** A session header (agent, status, duration, cost, event counts) followed by numbered, timestamped steps with event type icons and context annotations. **Parameters:** - sessionId (required): The session to replay - fromStep/toStep: Replay a specific step range - eventTypes: Comma-separated filter (e.g., "llm_call,tool_call") - summaryOnly: Set true to get just the summary header (fast for large sessions) **Example:** agentlens_replay({ sessionId: "ses_abc123", summaryOnly: true }) → returns session summary without steps.

NameTypeReqDescription
eventTypesstringComma-separated event types to filter (e.g., "llm_call,tool_call")
fromStepintegerStart step number (0-based)
sessionIdstringyesSession ID to replay
summaryOnlybooleanReturn only the summary header (no steps). Default: false
toStepintegerEnd step number (inclusive)

No output schema declared.

No examples provided.

agentlens_session_end ~54

End an active AgentLens monitoring session.

NameTypeReqDescription
reasonstringyesReason for ending the session
sessionIdstringyesSession ID to end
summarystringOptional summary of the session

No output schema declared.

No examples provided.

agentlens_session_start ~66

Start a new AgentLens monitoring session. Returns a sessionId to use for subsequent events.

NameTypeReqDescription
agentIdstringyesUnique identifier for the agent
agentNamestringHuman-readable agent name
tagsarrayTags for categorizing this session

No output schema declared.

No examples provided.

agentlens_sessions ~248

Browse and inspect AgentLens sessions. **When to use:** To find past sessions, inspect session details, or view a timeline of events within a session. Useful for debugging, auditing, or reviewing agent activity. **Actions:** - `list`: List sessions with optional filters (agentId, status, date range, tags) - `detail`: Get full session detail with aggregates - `timeline`: Get timestamped event list for a session **Example:** agentlens_sessions({ action: "list", agentId: "my-agent", status: "completed", limit: 10 })

NameTypeReqDescription
actionstringyesAction to perform
agentIdstringFilter by agent ID (list)
fromstringStart date ISO (list)
limitnumberMax results, default 20 (list)
offsetnumberPagination offset (list)
sessionIdstringSession ID (required for detail/timeline)
statusstringFilter by status: active, completed, error (list)
tagsarrayFilter by tags (list)
tostringEnd date ISO (list)

No output schema declared.

No examples provided.

agentlens_stats ~94

Get storage statistics and system overview metrics. **When to use:** To check database/storage utilization or get a high-level system overview. **Actions:** - `storage`: Get storage stats (database size, event counts, etc.) - `overview`: Get overview metrics (active sessions, agents, recent activity) **Example:** agentlens_stats({ action: "storage" })

NameTypeReqDescription
actionstringyesAction to perform

No output schema declared.

No examples provided.

agentlens_trust ~103

Get trust scores for agents. **When to use:** To check the trust/reliability score of an agent before delegating tasks or to monitor agent reputation. **Actions:** - `score`: Get trust score for a specific agent **Example:** agentlens_trust({ action: "score", agentId: "my-agent" })

NameTypeReqDescription
actionstringyesAction to perform
agentIdstringAgent ID (required for score)

No output schema declared.

No examples provided.