# Get Org Deals (`get_org_deals`)

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 deals with orders and line items for a date range.

Load structured team/organization deals with orders and line items for AI summarization. Use this when the user asks about their team's deals (for example, "How are my team's deals looking this month?"). For a single team member's deals, use get_user_deals instead. Returns up to 25 deals per call, newest updated first. Pass start_date and end_date as an ISO date or datetime pair when the user names a time window such as this month; dates filter deals by updated_at. Use query to search deal name, notes, account, and related text. 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 deals history, but more than the first page is not necessary if you were prompted to summarize recent deals 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, Deals, not available to Viewer users
- Access: Managers see only deals owned by themselves and the users they manage.
- Example prompts: "How are my team's deals looking this month?"

### Parameters

- `query` (string; optional): Full-text search across deal name, notes, account, and related text
- `start_date` (string; optional; ISO 8601 date or datetime): Start of deals updated_at date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of deals updated_at date range (paired with start_date)
- `limit` (integer; optional): Max deals returned per page. Default 25, max 25
- `cursor` (string; optional): Opaque pagination cursor from a previous response's meta.next_cursor. Pass this to fetch the next page of older deals 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 deals use get_user_deals. Dates filter on updated_at.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_org_deals",
    "arguments": {
      "start_date": "2026-09-01",
      "end_date": "2026-09-30"
    }
  }
}
```

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

```json
{
  "deals": [
    {
      "id": 9031,
      "name": "Acme Grocery restock",
      "amount": 70.15,
      "amount_owed": 70.15,
      "notes": null,
      "close_date": "2026-09-29",
      "created_at": "2026-09-29T14:30:00-05:00",
      "updated_at": "2026-09-29T14:30:00-05:00",
      "status": "Proposal",
      "is_revenue": false,
      "user": "Jordan Rivera",
      "lead_contact": null,
      "orders": [
        {
          "order_number": "1042",
          "order_date": "2026-09-29",
          "due_date": "2026-10-29",
          "payment_term": "Net 30",
          "memo": null,
          "notes": null,
          "subtotal": 72.0,
          "is_reserved": true,
          "is_fulfilled": false,
          "line_items": [
            {
              "label": "Cold Brew 12oz",
              "quantity": 2,
              "price_per_unit": 36.0,
              "is_sample": false,
              "product_name": "Cold Brew",
              "variant_label": "12 oz can, 24 pack",
              "sku": "CB-12-BLK",
              "product_kit": null,
              "discounts": []
            }
          ],
          "discounts": [
            {
              "label": "Fall promo 10%",
              "amount": 10.0,
              "discount_type": "percentage",
              "bogo_buy_count": null,
              "bogo_get_count": null,
              "kit_max_count": null,
              "quantity_min_count": null,
              "multiply_by_line_item_quantity": null
            }
          ],
          "taxes": [
            {
              "name": "TX Sales Tax",
              "rate": 8.25
            }
          ]
        }
      ],
      "account": "Acme Grocery"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "deal_count": 1,
    "start_date": "2026-09-01",
    "end_date": "2026-09-30",
    "query": "Best Buy",
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

### Response fields

- `deals` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `amount` (number)
  - `amount_owed` (number | null)
  - `notes` (string | null)
  - `close_date` (string | null): ISO8601 date
  - `created_at` (string | null): ISO8601 timestamp
  - `updated_at` (string | null): ISO8601 timestamp
  - `status` (string | null)
  - `is_revenue` (boolean)
  - `user` (string | null): Deal owner display name
  - `lead_contact` (string | null)
  - `orders` (object[])
    - `order_number` (string | null)
    - `order_date` (string | null): ISO8601 date
    - `due_date` (string | null): ISO8601 date
    - `payment_term` (string | null)
    - `memo` (string | null)
    - `notes` (string | null)
    - `subtotal` (number | null)
    - `is_reserved` (boolean | null)
    - `is_fulfilled` (boolean | null)
    - `line_items` (object[])
      - `label` (string | null)
      - `quantity` (number)
      - `price_per_unit` (number | null)
      - `is_sample` (boolean | null)
      - `product_name` (string | null)
      - `variant_label` (string | null)
      - `sku` (string | null)
      - `product_kit` (object | null)
        - `name` (string | null)
        - `description` (string | null)
        - `components` (object[])
          - `product_name` (string | null)
          - `variant_label` (string | null)
          - `sku` (string | null)
      - `discounts` (object[])
        - `label` (string | null)
        - `amount` (number | null)
        - `discount_type` (string | null)
        - `bogo_buy_count` (integer | null)
        - `bogo_get_count` (integer | null)
        - `kit_max_count` (integer | null)
        - `quantity_min_count` (integer | null)
        - `multiply_by_line_item_quantity` (boolean | null)
    - `discounts` (object[])
      - `label` (string | null)
      - `amount` (number | null)
      - `discount_type` (string | null)
      - `bogo_buy_count` (integer | null)
      - `bogo_get_count` (integer | null)
      - `kit_max_count` (integer | null)
      - `quantity_min_count` (integer | null)
      - `multiply_by_line_item_quantity` (boolean | null)
    - `taxes` (object[])
      - `name` (string | null)
      - `rate` (number | null)
  - `account` (string | null): Deal account display name
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `deal_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `query` (string | null): Full-text search query applied to this page
  - `organization_id` (integer)
  - `organization_name` (string)

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