tool-intercept-logger

Log tool executions with OTEL-compatible spans in SQLite.

2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/DojoGenesis/gateway --skill tool-intercept-logger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tool-intercept-logger
Source: https://github.com/DojoGenesis/gateway/tree/main/plugins/system-health/skills/tool-intercept-logger
Command: npx skills add https://github.com/DojoGenesis/gateway --skill tool-intercept-logger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tool calls are invisible by default, making debugging, cost auditing, and performance analysis difficult. This skill records every tool execution and produces OTEL‑compatible logs and a session summary, giving observability and actionable insights.

Core Features & Use Cases

  • Structured Logging: Captures pre‑ and post‑execution details for each tool in an OTEL‑compatible format.
  • Session Summary: Calculates call counts, success rates, token usage, costs, and highlights top‑cost tools.
  • Scope Control: Allows logging all tools, by namespace, or specific named tools.
  • Use Cases: Debug unexpected tool selections, audit token costs, validate new MCP integrations, or generate handoff summaries for ongoing sessions.

Quick Start

Request the tool-intercept-logger skill to log all tool calls for this session and return a summary.

Frequently Asked Questions about tool-intercept-logger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log tool calls with OTEL metrics for debugging?

To log tool calls with OTEL metrics, you need a tool-intercept-logger that captures pre- and post-execution data for each tool, storing OTEL-compatible spans in SQLite to generate observable records for debugging and performance analysis.

What's the best way to audit token costs for tool calls in a session?

Auditing token costs for tool calls requires generating a session summary that calculates call counts, success rates, token usage, and costs, highlighting top-cost tools to provide actionable insights for cost auditing.

Can I monitor specific MCP integrations instead of logging all tool executions?

Yes, you can monitor specific MCP integrations using scope control, which allows logging all tools, filtering by namespace, or targeting specific named tools to validate new MCP integrations and verify tool selection.

How does session summary observability work for tool monitoring?

Session summary observability works by recording every tool execution in OTEL-compatible format, then calculating call metrics like success rates and token usage to produce a summarized report for handoff or ongoing analysis.

Do I need any dependencies to capture OTEL-compatible spans in SQLite?

No dependencies are required to capture OTEL-compatible spans in SQLite; the tool-intercept-logger operates independently to store pre- and post-execution data and produce actionable telemetry records.

Why does tool monitoring matter for cost auditing and debugging?

Tool monitoring matters for cost auditing and debugging because tool calls are invisible by default, making it difficult to analyze performance, verify token costs, and debug unexpected tool selections without structured logging and session summaries.