# Get Contact Deals (`get_contact_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

Deals where the contact is the deal account, with their orders and line items, newest updated first.

Load structured account deals with orders and line items for AI summarization. Use a contact_id from search_contacts (typically an account/place). Returns deals where that contact is the deal account. Returns up to 25 deals per call, newest updated first. 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.

- Scopes: `ai:read`
- Requires: AI, Deals, not available to Viewer users
- Example prompts: "Show me my recent deals for Best Buy."

### Parameters

- `contact_id` (integer; required): Account/contact ID
- `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.

### Notes

- Returns up to 25 deals per page. Leads-only relationships are not included.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_contact_deals",
    "arguments": {
      "contact_id": 48213,
      "start_date": "2026-07-01",
      "end_date": "2026-09-29"
    }
  }
}
```

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

```json
{
  "contact": {
    "id": 48213,
    "name": "Acme Grocery",
    "contact_type": "place"
  },
  "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
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "deal_count": 1,
    "start_date": "2026-07-01",
    "end_date": "2026-09-29"
  }
}
```

### Response fields

- `contact` (object)
  - `id` (integer)
  - `name` (string | null)
  - `contact_type` (string): place or person
- `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)
- `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

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