Skip to main content
Glama
musaceylan

looplens-mcp

by musaceylan

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOOPLENS_DB_PATHNoSQLite database path~/.looplens/looplens.db
LOOPLENS_DATA_DIRNoBase data directory~/.looplens
LOOPLENS_LOG_LEVELNoLog levelINFO
LOOPLENS_RETENTION_DAYSNoDays before old sessions are pruned90
LOOPLENS_LOOP_WINDOW_SIZENoSliding window size for detection20
LOOPLENS_REDACTION_ENABLEDNoAuto-redact secrets from payloadstrue
LOOPLENS_LOOP_FREQUENCY_THRESHOLDNoMin repeats to flag a loop3

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_sessionB

Create a new LoopLens debug session to track tool events.

get_sessionA

Get details for a debug session including loop count and convergence score.

list_sessionsA

List debug sessions with optional status filter and pagination.

close_sessionB

Close a debug session as completed or abandoned.

ingest_eventB

Ingest a single tool event into a session.

ingest_batchB

Ingest multiple tool events at once.

get_session_eventsB

Retrieve events for a session with pagination.

detect_loopsB

Run loop detection algorithms on a session and return detected loop patterns.

get_loopsC

Get all detected loop patterns for a session.

mark_false_positiveB

Mark a loop detection as a false positive.

get_convergenceB

Get convergence score for a session (computes if not cached).

analyze_convergence_trendC

Analyze convergence trend over time for a session.

export_eval_casesB

Export session data as structured eval cases for model evaluation.

get_diagnosticsA

Get LoopLens server diagnostics: session counts, event totals, DB path.

annotate_eventA

Add a key-value annotation to a specific event.

search_eventsC

Search events in a session by tool name.

Prompts

Interactive templates invoked by user choice

NameDescription
debug_loop_sessionGuide Claude through diagnosing and breaking a loop in a debug session
analyze_convergenceAnalyze convergence trajectory and recommend improvements
generate_eval_caseGenerate a structured eval case from session data

Resources

Contextual data attached and managed by the client

NameDescription
Active SessionsList of all currently active debug sessions
Recent LoopsThe 10 most recently detected loop patterns
Server DiagnosticsLoopLens server stats and health metrics
Event SchemaJSON schema for ToolEvent ingestion format

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/musaceylan/looplens-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server