# 5.3 Read-only functions

Read-only functions can be called by the contract itself or from outside. They may return any type, similar to private functions.

As the name suggests, read-only functions are limited to read operations. Data variables and maps can be read, but not written. Read-only functions can also be purely functional, meaning they calculate a result based on input and return it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://base-tech.gitbook.io/base/base-bigbang-language/5.-functions/5.3-read-only-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
