Laminar ships an MCP (Model Context Protocol) server so AI assistants can query trace data directly. These are tools your agent can call. You ask questions in the chat, the agent invokes the Laminar tools under the hood, and you get answers grounded in your trace data. This closes the dev loop: the agent that wrote the code can pull the exact traces it produced, investigate failures, and propose fixes without context switching.Documentation Index
Fetch the complete documentation index at: https://laminar.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Available Tools
query_laminar_sql
Run read-only ClickHouse SQL across Laminar data and get JSON back. Use this to find trace IDs, filter by time/session/status, or pull raw span fields (input,output,attributes).get_trace_context
Get an LLM-optimized summary of a single trace: span tree, timings, LLM inputs/outputs, and errors. Use this to quickly understand what happened in a specific run once you have a trace ID.
The SQL tool is read-only (
SELECT only) and automatically scoped to your project. If trace context truncates long inputs or outputs, use SQL to fetch full fields.Connect Your Client
First, grab a project API key from the Laminar dashboard. Then connect your MCP client.- Claude Code
- Cursor
- Codex
https://laminar.example.com/v1/mcp).
Example Questions You Can Ask Your LLM
- “What failed in the most recent run for my
dev-claudesession?” - “Find the latest error trace and summarize the root cause.”
- “Which tool call failed first in the last 20 minutes?”
- “Show me the spans where the model returned an empty response today.”
- “List the 5 slowest traces from the last hour and summarize the slowest one.”
- “Find traces where
status = 'error'and the top span name containscheckout.” - “Compare the token usage between the last two successful runs.”
