# Review partnership withdrawal

`provider_relationships.review_withdrawal`

Preview partnership withdrawal without changing data. Withdraw one sent invitation or request so it can no longer be accepted. For an existing item, copy process_kind/process_id from provider_relationships.list_invitations_and_requests. Show the effect before provider_relationships.withdraw.

[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": {
    "process_id": {
      "description": "Copy process_id with process_kind from provider_relationships.list_invitations_and_requests: rinv_ for invitation, rreq_ for request.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "process_kind": {
      "description": "Copy with process_id from provider_relationships.list_invitations_and_requests.",
      "enum": [
        "invitation",
        "request"
      ],
      "type": "string"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "process_kind",
    "process_id"
  ],
  "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"
}
```
