> 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/contracts/contracts.with_function_name.md).

# Contracts.with\_function\_name()

Adds a filter to get contracts that have a function with the given name.

`with_function_name(name: str, sensitivity: bool = True) ->` [`Contracts`](/glider-ide/api/contracts.md)

## Query Example

```python
from glider import *

def query():
  contracts = Contracts().with_function_name('receive').exec(1)

  functions = contracts.functions().exec()
  for function in functions:
    print(function.name)

  return contracts
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FV8Sba6yP39AOGPwzw7Fp%2Fimage.png?alt=media&amp;token=e85098e9-513c-4623-9f8f-7619b8a83e9f" alt=""><figcaption></figcaption></figure>
