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

telys_add

Reference for the telys_add MCP tool — add text documents to a Telys memory collection, auto-creating and saving it when the collection does not exist.

telys_add adds text documents to a Telys memory collection (created if absent). 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.

Given a collection and a list of texts, the server embeds each document with its default embedder (AlgentaMultigramEmbedder), inserts the new rows, and persists the collection to the active store ($TELYS_MEMORY_PATH, default ~/.telys/memory). If the collection does not exist, the server creates it first — partitioned by scope — then saves. This is the write path that feeds telys_search.

Input schema

Required: collection, texts.

Field
Type
Required
Default
Description

collection

string

yes

—

Target collection. Auto-created (with partition_by="scope") and saved if it does not exist.

texts

array of string

yes

—

The documents to embed and store.

ids

array of string

no

auto

External IDs, one per text. When omitted, the server assigns IDs.

metadata

array of object

no

—

One metadata object per text. Include a scope key to route each record into a partition and to filter it later with where.

When you supply ids, texts, and metadata, the arrays align by position — element i of each describes the same record. Keep their lengths equal.

Output schema

Field
Type
Description

added

integer

Number of documents inserted in this call.

collection

string

Echoes the collection that was written (and created, if it did not exist).

Example call

A tools/call request that seeds a fresh notes collection:

The wrapped result — a JSON payload in one text content block, with isError for status:

Decoding the text field:

In practice

Drive it from natural language; the client fills texts and metadata:

Errors

Failures return the same envelope with isError: true and a single text block of the form <Type>: <message> — for example, a duplicate ID or mismatched array lengths. See MCP configuration & scoping and Exceptions & error codes.

See also

Last updated

Was this helpful?