Skip to main content
Glama
ArcadeData

ArcadeDB Multi-Model DBMS

Official

get_schema

Retrieve the complete database schema including vertex, edge, and document types with properties, indexes, and inheritance hierarchy for ArcadeDB Multi-Model DBMS.

Instructions

Get the full schema of a database including types (vertex, edge, document), their properties, indexes, and inheritance hierarchy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseYesThe name of the database

Implementation Reference

  • The 'getSchema' implementation in the python binding returns a Schema wrapper around the Java database's schema object.
    def schema(self):
        """
        Get the schema manipulation API for this database.
    
        The schema API provides type-safe access to schema operations:
        - Type management (document, vertex, edge types)
        - Property management (create, drop properties)
        - Index management (create, drop indexes)
    
        Returns:
            Schema instance for this database
    
        Example:
            >>> # Create a vertex type with properties
            >>> db.schema.create_vertex_type("User")
            >>> db.schema.create_property("User", "name", PropertyType.STRING)
            >>> db.schema.create_property("User", "age", PropertyType.INTEGER)
            >>>
            >>> # Create an index
            >>> db.schema.create_index("User", ["name"], unique=True)
            >>>
            >>> # Create edge type
            >>> db.schema.create_edge_type("Follows")
    
        Note:
            Schema changes are immediately persisted and visible to all
            database connections. Schema modifications should be done
            carefully in production environments.
        """
        self._check_not_closed()
        from .schema import Schema
    
        return Schema(self._java_db.getSchema(), self)

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/ArcadeData/arcade-db-multi-model-dbms'

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