llms.txt documents all of it in a single brief written for LLMs. Give an agent those two things plus a server key, and you can ask questions like:
- “Explain why traces in the past 24 hours have been having more errors.”
- “Which attribute values are most correlated with failed traces this week?”
- “Summarize what happened in trace 317 and where it went wrong.”
- “Are bridge transfers failing more often on one chain than the others?”
- “Compare error rates before and after yesterday’s 14:00 UTC deploy.”
Why this works well
The REST API was designed with agent use in mind, and a few properties make investigations reliable rather than hallucinated:- Discoverable field universe. The metadata endpoints list every tag and attribute key your project has actually used, so an agent composes filters from real fields instead of guessing names.
- Exact counts in one request.
GET /v1/traceswithper_page=10returnspagination.total— an exact count. An agent can compare error volume across time windows with a handful of cheap requests before drilling into anything. - Complete evidence per trace.
GET /v1/traces/{trace_id}/eventsreturns the full, ordered event timeline, so conclusions about why a trace failed are grounded in the actual events, not the summary alone. - Read-only by construction. Server keys can only read. An agent exploring your project can’t mutate or delete anything.
The three ingredients
1
A server key
Create one in the dashboard under your project’s API keys — see
Authentication. Use a dedicated key per agent so you
can revoke it independently.
2
The llms.txt brief
https://api.mirador.org/llms.txt
documents the auth scheme, every endpoint, the filter grammar, pagination,
and response shapes — enough for an agent to query Mirador with no other
context. Paste it into the agent’s context or let the agent fetch it (the
endpoint requires no key).3
A question
Ask in plain English. Good questions name a time window and an outcome —
“why are errors up in the last 24 hours” gives the agent a concrete
comparison to run.
What an investigation looks like
For a question like “why are errors up in the past 24 hours?”, a well-briefed agent typically:- Establishes the baseline — counts error traces in the last 24 hours vs. the prior 24 hours using
filter=severity="error"withsince/untilwindows. - Discovers the field universe — lists tags and attribute keys so the next step slices along dimensions that actually exist.
- Finds the concentration — re-counts errors sliced by tag, attribute value, or trace name to find where the increase is concentrated (one chain? one country? one flow?).
- Drills into evidence — pulls the full event timelines of a few representative failing traces and reads the actual error events.
- Reports with pointers — summarizes the likely cause and links the specific
trace_ids to investigate in the dashboard.
Next Steps
Connect an agent
Wire up Claude Code, a custom agent, or an incident bot
Worked investigation
“Why are errors up in the past 24 hours?” — step by step
REST API overview
The endpoints agents query
Authentication
Create and manage server keys