# Create a Deal

`deals.create`

Start a Deal for an existing Business and a recipient from deals.list_recipients or matchmaking. Optionally link the Deal to the Business's Project. Uses the current published application and default Deal pipeline, and starts Autofill. The application stays private to your team; creation does not submit it. Save the returned Deal and application IDs. Reuse the same idempotency key and inputs when retrying.

[Deals guide](https://docs.levr.ai/mcp/resources/deals.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "business_id": {
      "description": "Business ID returned by businesses.list.",
      "maxLength": 32,
      "minLength": 1,
      "type": "string"
    },
    "idempotency_key": {
      "format": "uuid",
      "type": "string"
    },
    "project_id": {
      "description": "Optional Project ID belonging to this Business.",
      "maxLength": 32,
      "minLength": 1,
      "type": "string"
    },
    "provider_slug": {
      "description": "Your Portal, returned by providers.list. This identifies where you are working, not the recipient.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "recipient_id": {
      "description": "Copy id from deals.list_recipients or recipient.id from a matchmaking result.",
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "business_id",
    "recipient_id",
    "idempotency_key"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "application": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "object": {
              "const": "deal_application",
              "type": "string"
            }
          },
          "required": [
            "id",
            "object"
          ],
          "type": "object"
        },
        "frontend_link": {
          "format": "uri",
          "type": "string"
        },
        "id": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "object": {
          "const": "deal",
          "type": "string"
        },
        "project": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "description": "Stable public identifier for the referenced resource.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "object": {
                  "const": "project",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "object"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "recipient": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "description": "Stable public identifier for the referenced resource.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "object",
        "application",
        "project",
        "recipient",
        "frontend_link"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
