> 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.with_declarer_contract_name.md).

# Callables.with\_declarer\_contract\_name()

Adds a filter to get functions/modifiers that have declarer contract with the given name.

`with_declarer_contract_name(`*`name: str, sensitivity: bool = True`*`) →` [`Callables`](/glider-ide/api/callables.md)

## Function Example

### Example Query

```python
from glider import *


def query():
  # Retrieve the contracts of a list of functions
  contracts = Functions().with_declarer_contract_name("TestToken").exec(2)

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

### Query Output&#x20;

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FxoQnYePNB4m8u3sGAbHS%2FScreenshot%202025-08-25%20at%205.22.26%E2%80%AFPM.png?alt=media&amp;token=48b354f7-32b1-45c7-b482-f9ddb9083c09" alt=""><figcaption></figcaption></figure>

## Modifier Example

### Example Query

```python
from glider import *


def query():
  # Retrieve the contracts of a list of modifiers
  contracts = Modifiers().with_declarer_contract_name("TestToken").exec(2)

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

### Query Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FlUHiFwnpcil3qfSti2OA%2FScreenshot%202025-08-25%20at%205.19.25%E2%80%AFPM.png?alt=media&amp;token=4c8b9846-7797-4ccc-be0c-31d6c4887355" alt=""><figcaption></figcaption></figure>
