Skip to main content
Glama
appwrite

Appwrite MCP Server

Official
by appwrite

databases_create_enum_attribute

Define an enumeration attribute in Appwrite databases to restrict field values to a predefined list of accepted options, ensuring data consistency and validation.

Instructions

Create an enumeration attribute. The elements param acts as a white-list of accepted values for this attribute.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_idYesDatabase ID.
collection_idYesCollection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
keyYesAttribute Key.
elementsYesArray of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 255 characters long.
requiredYesIs attribute required?
defaultNoDefault value for attribute when not provided. Cannot be set when attribute is required.
arrayNoIs attribute an array?

Latest Blog Posts

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/appwrite/mcp'

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