Skip to main content
Glama

get_subagent_results

Retrieve completed task outputs from autonomous developer teams after delegating work through parallel or sequential execution of specialized roles.

Instructions

Get results from completed subagents

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesSession ID to get results for

Implementation Reference

  • The handler function that retrieves subagent session results including task details, status, output, and any errors for the given session_id.
    async getSubagentResults(args) { const { session_id } = args; if (!this.activeSubagents.has(session_id)) { throw new McpError( ErrorCode.InvalidRequest, `Session ${session_id} not found` ); } const session = this.activeSubagents.get(session_id); return { content: [ { type: 'text', text: `Subagent Session Results\n\nSession ID: ${session_id}\nTask: ${session.task}\nStatus: ${session.status}\nExecution Mode: ${session.execution_mode}\nAgents: ${session.agents.length}\n\n` + `Start Time: ${session.startTime}\n` + `End Time: ${session.endTime || 'Still running'}\n\n` + `Output:\n${session.output || 'No output yet'}\n\n` + `${session.error ? `Errors:\n${session.error}` : ''}` } ] }; }
  • Input schema for the tool, requiring a 'session_id' string parameter.
    name: 'get_subagent_results', description: 'Get results from completed subagents', inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'Session ID to get results for' } }, required: ['session_id'] } }
  • src/index.js:155-156 (registration)
    Registration in the tool dispatch switch statement that routes calls to the handler method.
    case 'get_subagent_results': return await this.getSubagentResults(args);

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