Viewing Query Events in the Dashboard
The Agent-CoreX Dashboard provides a comprehensive view of all tool retrieval queries, enabling you to monitor which tools your agents are selecting and understand retrieval patterns.Getting Started
Prerequisites
- ✅ Active Agent-CoreX account
- ✅ Dashboard access at
dashboard.agent-corex.com - ✅ At least one authenticated query (see below)
Note: Anonymous Queries
Query events require user authentication. If you’re making requests without an API key:- ✅ Tools will still be retrieved and returned
- ❌ Query event will not be logged
- ✓ Check backend logs instead
Accessing Query Events
Step 1: Navigate to Queries Page
- Log in to the dashboard
- Click Queries in the sidebar
- Select Query History
Understanding the Query List
Columns
| Column | Meaning |
|---|---|
| Query | The natural language query (e.g., “deploy to production”) |
| Tools | Count of tools retrieved |
| Source | Origin: mcp (CLI), api (direct API), dashboard (UI) |
| Time | When the query was executed |
| Status | Success or failure indicator |
Example
Viewing Query Details
Click on a Query
- Click any query row to open the Query Details Panel
- See full information:
- Query text
- Retrieved tools (all candidates)
- Tool rankings (scores)
- Execution time
- Request source
Details Breakdown
Retrieved Tools Section
Shows all tools returned by semantic search, ranked by relevance:- ✓ Selected — Tool was actually used
- ○ Not used — Tool was available but not selected
- ⚠️ Failed — Tool was selected but execution failed
Scores Section
Detailed breakdown of ranking metrics:- 0.90-1.00 — Excellent match
- 0.70-0.89 — Good match
- 0.50-0.69 — Fair match
- Below 0.50 — Poor match
Filtering & Searching
By Date Range
- Click Date Range filter
- Select preset (Last 24h, Last 7d, Last 30d) or custom dates
- Results update automatically
By Source
Click Source filter to show only:- All — Every query
- MCP — CLI/MCP gateway queries
- API — Direct API calls
- Dashboard — Dashboard UI queries
By Tool
- Click Tools filter
- Select specific tools (e.g., “deploy-aws”, “send-slack”)
- Shows queries that retrieved those tools
By Query Text
Search for specific queries:Analyzing Trends
Query Volume Over Time
View the Query Analytics tab:- Peak usage times
- Daily query volume trends
- Spikes in agent activity
Top Tools by Selection
See which tools are most frequently used:Top Queries
See most frequent natural language queries:Debugging Tool Selection
Problem: “Wrong tools retrieved”
- Find the relevant query in history
- Open query details
- Check Retrieved Tools section
- Compare scores to understand ranking
Problem: “Tool not retrieved at all”
- Open the query details
- Check if tool appears in Retrieved Tools
-
If tool not present:
- Tool may not exist in your connected servers
- Server may be offline
- Tool may not match the query semantically
-
If tool is present but not selected:
- Check the score (too low?)
- Too many better tools were available
- Tool filtering may have excluded it
Performance Insights
Slow Queries
If you see a query took >1 second:- Click the query
- View Execution Time details
- Check Retrieved Tools count
- High count = more semantic search time (expected)
Successful vs Failed Execution
Some queries show:- Retrieved — Tools were found ✓
- Executed — Tools were called ✓
- Failed — Tool execution failed ⚠️
Export & Reporting
Export Query History
- Open Queries page
- Click ⬇️ Export
- Choose format:
- CSV (for Excel/spreadsheets)
- JSON (for analysis/APIs)
- PDF (for reports)
Generate Report
- Click 📊 Report
- Select metrics:
- Total queries
- Tool selection trends
- Source distribution
- Query performance
- Choose date range
- Download PDF
- Executive Summary (query volume, top tools)
- Trend Analysis (queries over time)
- Tool Performance (selection frequency, success rates)
- Recommendations (frequently used tools, failing queries)
Common Use Cases
1. Monitor Agent Activity
Goal: See what your deployed agent is doing Steps:- Filter by Source: MCP (agent queries)
- View recent query history
- Check tool selection patterns
2. Debug Tool Selection Issues
Goal: Understand why wrong tool was selected Steps:- Find the problematic query
- Open query details
- Review all retrieved tools and scores
- Check if better tool existed but wasn’t selected
- Report to team or adjust semantic search
3. Analyze Tool Popularity
Goal: Find which tools are most useful Steps:- Go to Query Analytics
- View Top Tools by Selection
- Correlate with business goals
- Consider optimizing/expanding popular tools
4. Performance Tuning
Goal: Optimize for faster queries Steps:- Monitor Execution Time trends
- Identify slow queries
- Check if high tool counts cause slowness
- Consider filtering or caching strategies
5. Cost Analysis
Goal: Track API usage costs Steps:- Export query history (CSV)
- Sum queries by date
- Multiply by per-query cost
- Monitor spend over time
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Enter | Open selected query details |
Esc | Close details panel |
↑↓ | Navigate query list |
Ctrl+F | Search queries |
Ctrl+E | Export current view |
Settings & Preferences
Auto-Refresh
Enable automatic refresh of query list:- Click ⚙️ Settings
- Toggle Auto-refresh
- Choose interval (5s, 10s, 30s)
Display Preferences
- Click ⚙️ Settings
- Show scores — Toggle detailed score display
- Show metadata — Toggle tool metadata
- Compact view — Reduce row height
- Dark mode — Toggle theme
Troubleshooting
”No query events appearing”
Checklist:- Using authenticated API key (not anonymous)
- Queries are recent (check date filter)
- Source filter isn’t too restrictive
- Dashboard is connected to correct environment
”Scores look wrong”
Scores reflect:- Semantic similarity to your query
- Capability match (does tool do what you need?)
- Historical success rate (has it worked before?)
”Tool isn’t appearing in retrieved tools”
Reasons:- Tool may not exist in connected servers
- Server is offline/disconnected
- Tool name doesn’t semantically match your query
- Tool filtered by your search criteria
Next Steps
Query Events Concept
Deep dive into how query events work.
Tool Retrieval
Understand ranking and scoring.
API Reference
Programmatic access to query events.
Getting Started
Make your first API call.
Key Takeaway: The dashboard’s Query History provides complete visibility into which tools your agents are retrieving and selecting. Use it to monitor, debug, and optimize your agent systems. 🔍📊