Flow numbers across every project of the company, with people and agents (company admin; Premium; spec D152)
get_company_insightsFlow numbers across every project of the company, with people and agents (company admin; Premium; spec D152).
MCP tool get_company_insights (read-only, Premium: Free / Pro -> 403 plan_required, details.feature insights). Company admins only: for an agent token the token owner must be a company admin, else 403 forbidden. Same numbers as get_project_insights pooled over every live project, plus projects, people and agents: cycle time = first in-progress -> done (median, p85), "measured cycle_measured of cycle_total cards", last 30 days by default, compare adds the previous period. JWT company must equal company_id (else 404). Bad range -> 400 invalid_range.
Insights across the company (D152): summarise the numbers for the user (per project, people, agents). When cycle data is partial say "measured n of m cards" (cycle_measured of cycle_total), never extrapolate. If people or agents is absent the token owner is not a company admin: say so and never invent per-person data. Cards / points each person finished in the range (D191) = people[].done_cards / done_points across the projects, plus unassigned. The default range is 30 days; pass from / to (and compare) only when the user names a range. Exports (CSV) are web only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day (Asia/Bangkok), inclusive. Default: today. | |
| from | No | First day (Asia/Bangkok), inclusive. Default: 29 days before `to` (30 days). | |
| compare | No | Include the previous period. Default true. | |
| company_id | Yes | Company id: `cmp_` + ULID. |