# Get Org Activity (`get_org_activity`)

Part of the [Outfield MCP Server](https://run.outfieldapp.com/docs/mcp) docs. All tools: [llms.txt](https://run.outfieldapp.com/docs/mcp/llms.txt). Server URL: https://run.outfieldapp.com/mcp

Team-wide activity for a date range, optionally narrowed to interaction types or specific forms.

Load structured team/organization activity for AI summarization. Use this when the user asks about their team's activity (for example, "What has my team's activity been like this week?"). For a single team member's activity, use get_user_activity instead. Returns up to 50 interactions per call, newest first. Pass start_date and end_date as an ISO date or datetime pair when the user names a time window such as this week. If the user names a form, call get_forms first and pass matching form IDs as form_ids; that includes interactions tagged with any version in each form's ancestry. If meta.has_more is true, you can call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. You can repeat until meta.has_more is false to retrieve the full activity history, but more than the first page is not necessary if you were prompted to summarize recent activity for example. If the user names a team, call get_user_profile first and pass organization_id. Omit organization_id to use the current organization.

- Scopes: `ai:read`
- Requires: AI, Team activity, not available to Viewer users
- Example prompts: "What has my team's activity been like this week?"

### Parameters

- `interaction_type` (string[]; optional; one of `check_in`, `meeting`, `note`, `task`, `progressed_deal`, `phone_call`, `email`, `text_message`): Limit to these interaction types: check_in, meeting, note, task, progressed_deal, phone_call, email, text_message. Omit to include all allowed types.
- `form_ids` (integer[]; optional): Form IDs from get_forms. Matches interactions tagged with any form in each ID's ancestry (ancestors, self, and descendants). Max 50.
- `start_date` (string; optional; ISO 8601 date or datetime): Start of activity date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of activity date range (paired with start_date)
- `limit` (integer; optional): Max interactions returned per page. Default 50, max 50
- `cursor` (string; optional): Opaque pagination cursor from a previous response's meta.next_cursor. Pass this to fetch the next page of older interactions when meta.has_more is true.
- `organization_id` (integer; optional): Organization ID from get_user_profile. Omit to use the current organization. If the user names a team, call get_user_profile first and pass that id.

### Notes

- For one person's activity use get_user_activity instead.
- form_ids match interactions tagged with any version of each form (ancestors, itself and descendants). Maximum 50 form ids.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_org_activity",
    "arguments": {
      "start_date": "2026-09-22",
      "end_date": "2026-09-29",
      "interaction_type": ["check_in", "meeting"]
    }
  }
}
```

### Example response (`structuredContent`, illustrative data)

```json
{
  "interactions": [
    {
      "id": 771204,
      "interaction_type": "check_in",
      "title": "Store visit",
      "notes": "Shelves fully stocked. New endcap is up.",
      "created_at": "2026-09-29T14:30:00-05:00",
      "user": "Jordan Rivera",
      "contacts": "Acme Grocery",
      "form_results": "Shelf condition: Fully stocked",
      "ended_at": "2026-09-29T15:30:00-05:00",
      "reported_ended_at": "2026-09-29T14:30:00-05:00",
      "recorded_duration_minutes": 1,
      "reported_duration_minutes": 1,
      "rep_latitude": 12.0,
      "rep_longitude": 12.0,
      "site_status": "On-site"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "interaction_count": 1,
    "start_date": "2026-09-22",
    "end_date": "2026-09-29",
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

### Response fields

- `interactions` (object[])
  - `id` (integer)
  - `interaction_type` (string)
  - `title` (string | null)
  - `notes` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `user` (string | null): Creator or owner display name
  - `contacts` (string): Comma-joined contact names
  - `form_results` (string | null)
  - `ended_at` (string | null): Actual end or check-out as an ISO8601 timestamp
  - `reported_ended_at` (string | null): Recorded start (or interaction occurrence time when unavailable) plus reported duration as an ISO8601 timestamp
  - `recorded_duration_minutes` (integer | null): Elapsed time from recorded start to end, rounded to whole minutes
  - `reported_duration_minutes` (integer | null): Rep's edited duration, rounded to whole minutes
  - `rep_latitude` (number | null): Latitude from the check-in or meeting path, preferring the start point
  - `rep_longitude` (number | null): Longitude from the same path point as rep_latitude
  - `site_status` (string): On-site below 0.5 miles from the contact. Off-site at 0.5 miles or more, or when distance is missing.
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `interaction_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `organization_id` (integer)
  - `organization_name` (string)

Related tools: [get_user_profile](https://run.outfieldapp.com/docs/mcp/tools/get_user_profile.md), [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [get_user_activity](https://run.outfieldapp.com/docs/mcp/tools/get_user_activity.md)
