# uip rules describe

> Syntax and options for `uip rules describe`, which returns the entry points and argument schemas of a deployed business rule's active version.

:::note
`uip rules describe` is labeled Preview in the command help. Refer to [Versioning](./versioning.md#per-command-stability) for what the Preview label means.
:::

`uip rules describe` returns the entry points of a deployed business rule's active version, with their input and output argument schemas. Use them to map arguments when you bind the rule from a BPMN process, RPA workflow, or case. The rows have the same shape as [`uip or packages entry-points`](./uip-or-packages.md#uip-or-packages-entry-points).

`describe` reads the rule in the tenant of your current session. To read a rule in another tenant, switch tenants with [`uip login tenant set`](./uip-login.md#uip-login-tenant-set) first.

## Synopsis

```
uip rules describe <rule-name> (--folder-path <path> | --folder-key <key>)
```

## Arguments

| Name | Required | Purpose |
|---|---|---|
| `<rule-name>` | yes | Business rule name. |

## Options

Pass exactly one of `--folder-path` or `--folder-key`.

| Long | Value | Description |
|---|---|---|
| `--folder-path` | string | Folder path, for example `Shared`. |
| `--folder-key` | GUID | Folder key. |

## Example

```bash
uip rules describe LoanEligibility --folder-path "Shared"
```

## Data shape (--output json)

```json
{
  "Code": "RulesEntryPoints",
  "Data": [
    {
      "UniqueId": "8a0f5c3e-2d1b-4f6a-9e7c-1b2a3c4d5e6f",
      "Path": "/LoanEligibility.dmn#Decision_Eligibility",
      "DisplayName": "Eligibility",
      "InputArguments": "{\"type\":\"object\",\"properties\":{\"creditScore\":{\"type\":\"number\"}}}",
      "OutputArguments": "{\"type\":\"object\",\"properties\":{\"eligible\":{\"type\":\"boolean\"}}}"
    }
  ]
}
```

`InputArguments` and `OutputArguments` are JSON schemas serialized as strings.

## Exit codes

Refer to [Exit codes](./exit-codes.md) for the shared contract. The command exits `1` in these cases:

| Condition | `ErrorCode` |
|---|---|
| The folder holds no rule with this name. | `not_found` |
| The deployed rule carries no argument contract. Redeploy it from its solution with `uip solution publish` and `uip solution deploy run`. | `configuration_error` |
| Neither or both of `--folder-path` and `--folder-key` are passed. | `invalid_argument` |

A `configuration_error` failure reports `Result: "ConfigError"`.

## Related commands

- [`uip rules get`](./uip-rules-get.md) gets the rule and its current version.
- [`uip rules versions`](./uip-rules-versions.md) lists the rule's versions.
- [`uip solution deploy`](./uip-solution-deploy.md) deploys the solution that holds the rule.

## See also

- [`uip rules`](./uip-rules.md) for the tool overview.
