> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/callables/callables.contracts.md).

# Callables.contracts()

`contracts() →` [`Contracts`](/glider-ide/api/contracts.md)

Returns the [Contracts](/glider-ide/api/contracts.md) object for the contracts of the callables. This method can be called on all [Callables](/glider-ide/api/callables.md) child classes: [Functions](/glider-ide/api/functions.md) and [Modifiers](/glider-ide/api/modifiers.md).

The function will account for the inheritance of the contracts, thus, even one callable can have multiple contracts where it is accessible.

### Functions Example

```python
from glider import *

def query():
  # Retrieve the contracts of a list of functions
  contracts = Functions().contracts().exec(100)

  # Return the first five contracts
  return contracts[:5]
```

Output:

<figure><img src="/files/06tsHrYKQYjV0FD6cD2A" alt=""><figcaption></figcaption></figure>

### Modifiers Example

```python
from glider import *

def query():
  # Retrieve the contracts of a list of modifiers
  contracts = Modifiers().contracts().exec(100)

  # Return the first five contracts
  return contracts[:5]
```

Output:

<figure><img src="/files/EokCBvqwupgYSHe7gtAG" alt=""><figcaption></figcaption></figure>
