# Review partnership invitation

`provider_relationships.review_invitation`

Preview partnership invitation without changing data. Email a partnership invitation. sender_provider_slug identifies an existing Marketplace profile to connect, or null when inviting a company that is not yet in the Marketplace. For an existing item, copy process_kind/process_id from provider_relationships.list_invitations_and_requests. Show the effect before provider_relationships.create_invitation.

[Partnerships guide](https://docs.levr.ai/mcp/resources/provider_relationships.md)

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

Operation: read. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "invited_company_name": {
      "maxLength": 255,
      "type": "string"
    },
    "invited_contact_name": {
      "maxLength": 255,
      "type": "string"
    },
    "invited_email": {
      "format": "email",
      "type": "string"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "sender_provider_slug": {
      "anyOf": [
        {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Existing counterparty Marketplace profile’s exact slug; ask for it if unavailable. Null for a company without a profile."
    }
  },
  "required": [
    "provider_slug",
    "sender_provider_slug",
    "invited_email",
    "invited_company_name",
    "invited_contact_name"
  ],
  "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": {
        "effect": {
          "type": "string"
        },
        "invited_company_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "invited_contact_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "invited_email": {
          "type": [
            "string",
            "null"
          ]
        },
        "operation": {
          "enum": [
            "create_invitation",
            "create_request",
            "accept",
            "reject",
            "resend",
            "withdraw"
          ],
          "type": "string"
        },
        "process_id": {
          "anyOf": [
            {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "process_kind": {
          "anyOf": [
            {
              "enum": [
                "invitation",
                "request"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "provider_slug": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "receiver_provider_slug": {
          "anyOf": [
            {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "review_token": {
          "type": "string"
        },
        "sender_provider_slug": {
          "anyOf": [
            {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "provider_slug",
        "operation",
        "process_kind",
        "process_id",
        "receiver_provider_slug",
        "sender_provider_slug",
        "invited_email",
        "invited_company_name",
        "invited_contact_name",
        "effect",
        "review_token"
      ],
      "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"
}
```
