---
title: "Get swarm run insights"
method: GET
path: "/projects/{projectId}/swarm-runs/{swarmRunId}/insights"
tags: ["Swarm insights"]
---

# Get swarm run insights

`GET /projects/{projectId}/swarm-runs/{swarmRunId}/insights`

Poll this after requesting insights. **404 means nobody asked** — it is deliberately not an empty `status: "none"` body, so a caller in a polling loop cannot mistake "never requested" for "asked and still working".

## Response `200`

The swarm run's insights.

- SwarmRunInsights — Model analysis over a whole swarm run — the batch of sibling goal runs launched together. Produced asynchronously — POLL this rather than re-requesting, because a second request SPENDS again.
  - `swarmRunId` string, required
  - `status` 'pending' | 'completed' | 'failed', required
  - `insights` object, nullable, required — The DIRECTED lane: an explanation of the findings the deterministic pass already surfaced. `null` until generation completes. An opaque object — read it, do not pattern-match its internals.
  - `discovery` object, nullable, required — The DISCOVERY lane: what the model noticed unprompted. `null` while only the directed lane has finished, which is a normal intermediate state rather than a failure. Opaque, like `insights`.
  - `errorCode` string, nullable, required
  - `errorMessage` string, nullable, required
  - `updatedAt` number, required — Epoch milliseconds.

## Other responses

- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.

## Changes

- **2026-09-22** `561e4fd0dfa2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mcpjam/apis/mcpjam-api/changes/projects/:projectId/swarm-runs/:swarmRunId/insights/get.md)

---

[API](https://skmtc.dev/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.dev/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mcpjam/apis/mcpjam-api/revisions/9b4860d5945e?raw)
