# Get Inventory (`get_inventory`)

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

Active product-variant inventory with SKU, available and on-hand quantities, pricing and case size.

Load active product-variant inventory, including the variant id, the primary product_variant_price id, SKU, available and on-hand quantities, pricing, and case size. Use product_variant_price.id as product_variant_price_id when calling create_deal. Quantity on a deal line item is in cases when case_size is greater than 1; quantity_available is in single units. Additional prices on the same variant appear in additional_product_variant_prices. Use query to locate a product by product name, variant label, SKU, or other indexed product details. Returns up to 50 variants per call, newest first. If meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. 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, Products, not available to Viewer users
- Example prompts: "Do we have any low-stock items?"; "How many cases of Cold Brew are available?"

### Parameters

- `query` (string; optional): Full-text product, variant, SKU, and price search query
- `stock` (string; optional; one of `low_stock`, `out_of_stock`, `in_stock`): Restrict results to low_stock, out_of_stock, or in_stock
- `limit` (integer; optional): Max product variants 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 product variants 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

- Use product_variant_price.id (not the SKU) as product_variant_price_id in create_deal.
- Line-item quantity is in cases when case_size is greater than 1, while quantity_available is in single units.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_inventory",
    "arguments": {
      "query": "cold brew",
      "stock": "in_stock",
      "limit": 10
    }
  }
}
```

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

```json
{
  "product_variants": [
    {
      "id": 5601,
      "label": "Cold Brew 12oz",
      "description": "Fall promotion",
      "created_at": "2026-09-29T14:30:00-05:00",
      "parent_product": {
        "name": "Cold Brew",
        "description": "Fall promotion"
      },
      "product_variant_price": {
        "id": 5601,
        "label": "Case of 24",
        "sku": "CB-12-BLK",
        "quantity_on_hand": 24.0,
        "quantity_available": 24.0,
        "retail_price": 149.5,
        "case_size": 24,
        "internal_cost": null
      },
      "additional_product_variant_prices": [
        {
          "id": 5602,
          "label": "Single unit",
          "sku": "CB-12-BLK",
          "retail_price": 149.5,
          "case_size": 24,
          "quantity_on_hand": 24.0,
          "quantity_available": 24.0
        }
      ]
    }
  ],
  "meta": {
    "limit": 10,
    "has_more": false,
    "next_cursor": null,
    "product_variant_count": 1,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

### Response fields

- `product_variants` (object[])
  - `id` (integer)
  - `label` (string | null)
  - `description` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `parent_product` (object)
    - `name` (string | null)
    - `description` (string | null)
  - `product_variant_price` (object)
    - `id` (integer)
    - `label` (string | null)
    - `sku` (string | null)
    - `quantity_on_hand` (number)
    - `quantity_available` (number)
    - `retail_price` (number | null)
    - `case_size` (integer)
    - `internal_cost` (number | null)
  - `additional_product_variant_prices` (object[])
    - `id` (integer)
    - `label` (string | null)
    - `sku` (string | null)
    - `retail_price` (number | null)
    - `case_size` (integer)
    - `quantity_on_hand` (number)
    - `quantity_available` (number)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `product_variant_count` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)

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