Skip to main content
Glama

list_active_subagents

View currently active subagents and their operational status to monitor task delegation across specialized developer roles.

Instructions

List currently active subagents and their status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that retrieves and formats a list of active subagent sessions, including session details like ID, task, agent count, status, and duration.
    async listActiveSubagents() { const sessions = Array.from(this.activeSubagents.entries()).map(([id, session]) => ({ session_id: id, task: session.task, agent_count: session.agents.length, execution_mode: session.execution_mode, status: session.status, start_time: session.startTime, end_time: session.endTime || null, duration: session.endTime ? `${Math.round((session.endTime - session.startTime) / 1000)}s` : `${Math.round((new Date() - session.startTime) / 1000)}s (ongoing)` })); return { content: [ { type: 'text', text: sessions.length > 0 ? `Active Subagent Sessions:\n\n${sessions.map(s => `Session: ${s.session_id}\n` + `Task: ${s.task}\n` + `Agents: ${s.agent_count} (${s.execution_mode})\n` + `Status: ${s.status}\n` + `Duration: ${s.duration}\n` ).join('\n')}` : 'No active subagent sessions.' } ] }; }
  • Tool schema definition including name, description, and input schema (empty properties).
    { name: 'list_active_subagents', description: 'List currently active subagents and their status', inputSchema: { type: 'object', properties: {} } },
  • src/index.js:153-154 (registration)
    Registration in the CallToolRequestSchema switch statement that routes calls to the handler method.
    case 'list_active_subagents': return await this.listActiveSubagents();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lordstyled55/goose-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server