Skip to main content
Glama

Chroma MCP Server

Official

chroma_update_documents

Update documents in a Chroma collection by specifying IDs and providing new embeddings, metadatas, or text documents. Ensures accurate modifications and returns a confirmation of the number of documents updated.

Instructions

Update documents in a Chroma collection.

Args: collection_name: Name of the collection to update documents in ids: List of document IDs to update (required) embeddings: Optional list of new embeddings for the documents. Must match length of ids if provided. metadatas: Optional list of new metadata dictionaries for the documents. Must match length of ids if provided. documents: Optional list of new text documents. Must match length of ids if provided. Returns: A confirmation message indicating the number of documents updated. Raises: ValueError: If 'ids' is empty or if none of 'embeddings', 'metadatas', or 'documents' are provided, or if the length of provided update lists does not match the length of 'ids'. Exception: If the collection does not exist or if the update operation fails.

Input Schema

NameRequiredDescriptionDefault
collection_nameYes
documentsNo
embeddingsNo
idsYes
metadatasNo

Input Schema (JSON Schema)

{ "properties": { "collection_name": { "title": "Collection Name", "type": "string" }, "documents": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Documents" }, "embeddings": { "anyOf": [ { "items": { "items": { "type": "number" }, "type": "array" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Embeddings" }, "ids": { "items": { "type": "string" }, "title": "Ids", "type": "array" }, "metadatas": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Metadatas" } }, "required": [ "collection_name", "ids" ], "title": "chroma_update_documentsArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chroma-core/chroma-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server