> For the complete documentation index, see [llms.txt](https://docs.telys.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.telys.ai/mcp/tool-list-collections.md).

# telys\_list\_collections

`telys_list_collections` **lists the Telys memory collections** in the active store. It is one of the five tools on the Telys MCP server (`telys mcp`), called by name over JSON-RPC 2.0 (protocol version `2025-06-18`) on stdio.

The server scans the store (`$TELYS_MEMORY_PATH`, default `~/.telys/memory`) and returns the names of the collections **saved** to disk. Collections built but never persisted do not appear — over MCP only [`telys_add`](/mcp/tool-add.md) writes to disk. [`telys_create_collection`](/mcp/tool-create-collection.md) builds a collection but does not persist it, so a new collection is not listed until a `telys_add` writes to it and saves.

## Input schema

`telys_list_collections` takes **no parameters**.

| Field    | Type | Required | Description                 |
| -------- | ---- | -------- | --------------------------- |
| *(none)* | —    | —        | This tool has no arguments. |

## Output schema

| Field         | Type            | Description                                                                               |
| ------------- | --------------- | ----------------------------------------------------------------------------------------- |
| `collections` | array of string | Sorted names of the saved collections in the active store. Empty when the store has none. |

## Example call

{% code title="request.json" %}

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "telys_list_collections",
    "arguments": {}
  }
}
```

{% endcode %}

The wrapped result:

{% code title="response.json" %}

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      { "type": "text", "text": "{\"collections\": [\"chat\", \"notes\"]}" }
    ],
    "isError": false
  }
}
```

{% endcode %}

Decoding the `text` field:

{% code title="payload.json" %}

```json
{ "collections": ["chat", "notes"] }
```

{% endcode %}

{% hint style="info" %}
An empty store returns `{ "collections": [] }`, not an error. If you expected collections and see none, confirm the client is pointed at the right store via `TELYS_MEMORY_PATH`. See [MCP configuration & scoping](/mcp/configuration-and-scoping.md).
{% endhint %}

## In practice

```
List my Telys memory collections.
```

## Errors

Failures return the same envelope with `isError: true` and a single text block of the form `<Type>: <message>`. See [MCP configuration & scoping](/mcp/configuration-and-scoping.md) and [Exceptions & error codes](/reference/exceptions-and-errors.md).

## See also

* [Tool: telys\_stats](/mcp/tool-stats.md) — inspect one collection's row count and index state.
* [Tool: telys\_create\_collection](/mcp/tool-create-collection.md) — create a collection (persisted once a `telys_add` writes to it).
* [List & fetch by ID](/working-with-data/list-and-fetch-by-id.md) — the SDK's `collections()` and `ids()`.
* [MCP configuration & scoping](/mcp/configuration-and-scoping.md) — where the store lives and how scope is chosen.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.telys.ai/mcp/tool-list-collections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
