name: debug-agent-threads description: Inspection of thread history, memory, and organization-wide agent activity.
Debug Agent Threads
Skill for monitoring, debugging, and analyzing Lightdash AI agent conversations and configurations.
Purpose
Provides visibility into how agents interact with users. It allows for tracing context, identifying hallucinations, and auditing organization-wide AI settings and activity.
Tools
Wraps the following MCP tools from the lightdash-tools server:
- Conversations:
ldt__list_agent_threadsldt__get_agent_threadldt__generate_agent_messageldt__continue_agent_thread
- Admin & Monitoring:
ldt__list_admin_agentsldt__list_admin_agent_threadsldt__get_ai_organization_settingsldt__update_ai_organization_settings
Safety Mode Compliance
- Read Tools: All
list_andget_tools. - Write-Safe Tools:
generate_agent_message,continue_agent_thread. - Write-Destructive Tools:
update_ai_organization_settings.
Behavior
- Memory Inspection:
- Use
ldt__get_agent_threadto retrieve the full message history of a specific conversation. - Analyze the history to see if the agent is correctly utilizing its memory or if it is exceeding context window limits.
- Use
- Conversation Debugging:
- Use
ldt__generate_agent_messageto test an agent's response to a specific prompt without persisting it to a thread if needed, orldt__continue_agent_threadto simulate user interaction.
- Use
- Organization Audit:
- Use
ldt__list_admin_agent_threadsto monitor activity across the entire organization. - Check
ldt__get_ai_organization_settingsto verify that global safety and privacy settings are correctly configured.
- Use
Rules
- NEVER update organization-wide AI settings without explicit authorization.
- Use thread inspection to gather evidence before modifying an agent's persona or instructions.