Skip to main content
Glama
g-hyeong

Logging Advisor MCP

by g-hyeong

analyze_logging

Analyze logging code quality to detect sensitive data exposure, missing error handling, performance issues, and production DEBUG misuse across multiple languages.

Instructions

Logging code quality analysis and issue diagnosis

When used: Automatically executed after setup_analysis_session or when direct logging analysis is needed

Analysis items:

  • Detect console.log/print overuse patterns

  • Sensitive information exposure risks (password, token, email, etc.)

  • Missing error handling and context loss

  • Performance blocking logging (synchronous I/O)

  • Lack of observability (correlation ID, tracing)

  • DEBUG logging inappropriate for production

Output: Provides professional logging analysis guidelines to LLMs for accurate quality assessment

Supported languages: JavaScript, TypeScript, Python, Java, Go, C++, C#, Ruby Environment: differentiated analysis for development, production

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusNoAnalysis focus - all: comprehensive analysis, patterns: logging patterns, security: sensitive data exposure, errors: error handling, performance: performance impactall
languageYesProgramming language - provides language-specific analysis guidelines
environmentNoTarget environment - production: strict standards, development: development convenience consideredproduction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that output is 'professional logging analysis guidelines to LLMs' rather than raw results, and describes supported languages/environments. However, it doesn't state whether it mutates anything, how long it takes, or anything about rate limits. Adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then clearly sectioned (When used, Analysis items, Output, Supported languages, Environment). The bullet list is dense but each item earns its place. Slightly verbose for a tool with such a well-documented schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a 3-param analysis tool with 100% schema coverage and no output schema, the description supplies the missing behavioral context: what gets analyzed, what the output is, supported languages, and environment differentiation. It stops short of explaining the return structure, but for an LLM-guideline-producing tool that's minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and all three parameters have enums with descriptions. The description's 'Analysis items' and 'Environment: differentiated analysis for development, production' loosely map to the focus and environment params, but it adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: it analyzes logging code quality and diagnoses issues. The bulleted 'Analysis items' list makes the scope concrete and distinguishes it from siblings like validate_production_readiness (readiness checks) and suggest_improvements (fix suggestions). An agent can tell it produces analysis/guidelines, not edits or validation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states 'When used': automatically after setup_analysis_session, or when direct logging analysis is needed. This names the sibling and the trigger condition. It doesn't explain when NOT to use it or how it differs from suggest_improvements, but the routing context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.