Tinker
Resources
Agent logs
Agent memories
Agent sessions
Agent terminal logs
Agents
Comments
Epics
Projects
Proposals
Tickets
Avo user
Resources
Agent logs
Agent memories
Agent sessions
Agent terminal logs
Agents
Comments
Epics
Projects
Proposals
Tickets
Avo user
Home
Epics
Add list_agent_logs MCP tool for orchestrator and researcher
Edit
Add list_agent_logs MCP tool for orchestrator and researcher
Cancel
Save
Title
*
Project
*
Choose an option
alpha
tinker
Create new project
Description
## Context `AgentLog` tracks agent actions with timing (action, status, duration_ms, details). Currently there's no MCP tool to read these logs - only to write them via `AgentLog.log_action`. The orchestrator needs to see agent activity history, and the researcher needs it for pattern analysis. ## What You're Building Create an `list_agent_logs` MCP tool that returns AgentLog records with filtering capabilities. Make this tool available to orchestrator and researcher agents. ## Acceptance Criteria - [ ] New MCP tool `list_agent_logs` exists - [ ] Supports filtering by agent_id, ticket_id, status, date range - [ ] Supports pagination (limit, offset) - [ ] Supports sorting (created_at, duration_ms) - [ ] Tool available to orchestrator and researcher roles - [ ] Returns structured log data including action, status, duration, details ## Technical Notes - `AgentLog` model already exists with scopes: `recent`, `completed`, `failed`, `for_agent`, `for_ticket`, `today` - Model fields: `action`, `status` (started/completed/failed), `duration_ms`, `details` JSON, `agent`, `ticket` - MCP tools defined in `app/controllers/api/v1/mcp_controller.rb` - Permissions in `config/tinker/mcp_permissions.yml`
Avo
· © 2026 AvoHQ ·
v3.27.0
Close modal
Are you sure?
Yes, I'm sure
No, cancel