Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

telys_create_collection

Reference for the telys_create_collection MCP tool — create a named Telys memory collection, partitioned by scope, in the active memory store.

telys_create_collection creates a Telys memory collection. It is one of the 19 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 builds a new collection in the active store ($TELYS_MEMORY_PATH, default ~/.telys/memory) and wires it to the default embedder (AlgentaMultigramEmbedder), but does not persist it to disk. The collection is built and cached only; it will not appear in telys_list_collections until a mutating tool such as telys_add or telys_upsert writes to it (the mutating tools — telys_add, telys_upsert, telys_update, telys_delete, telys_compact, telys_build_ivf, telys_build_lexical — are the ones that call save()). Creating a collection explicitly is optional — telys_add auto-creates one on first write — but it lets you fix the name and partition key up front.

Input schema

Required: name.

Field
Type
Required
Default
Description

name

string

yes

—

Name of the collection to create.

partition_by

string

no

"scope"

Name of the metadata key used as the physical partition key.

partition_by is a single key name, not a composite. For a compound partition (for example, tenant + project), compose one string value with scope_key(...) in the SDK and store it under a single key. See Partitions & scope keys.

Output schema

Field
Type
Description

created

string

Name of the collection that was created.

dim

integer

Vector dimension of the collection, taken from the default embedder. With the shipped multigram kernel this is 384; the exact value is sourced from the native kernel.

partition_by

string

The partition key name the collection was created with (defaults to scope).

Example call

request.json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "telys_create_collection",
    "arguments": {
      "name": "notes",
      "partition_by": "scope"
    }
  }
}

The wrapped result:

Decoding the text field:

In practice

Errors

Failures return the same envelope with isError: true and a single text block of the form <Type>: <message>. See MCP configuration & scoping and Exceptions & error codes.

See also

Last updated

Was this helpful?