ainative-zerodb-mcp-server
v2.5.2Serverless database for AI agents: vector search, NoSQL, Postgres, files, agent memory.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
zerodb_generate_embeddings
Generate embeddings using specified model (384/768/1024 dimensions). Supports BAAI/bge-small-en-v1.5 (384-dim, default), BAAI/bge-base-en-v1.5 (768-dim), BAAI/bge-large-en-v1.5 (1024-dim). Use when you need raw embedding vectors without storing them. Does not persist data — for embed + store in one step, use zerodb_embed_and_store instead.
| Parameter | Type | Description |
|---|---|---|
texts * | array | Array of text strings to generate embeddings for |
model | string | Embedding model to use |
zerodb_embed_and_store
Generate embeddings and store in ZeroDB in one step. Auto-detects dimension based on model and routes to correct storage. Use when you want to embed text and persist the vectors in a single call. Combines zerodb_generate_embeddings + zerodb_upsert_vector.
| Parameter | Type | Description |
|---|---|---|
texts * | array | Array of text strings to embed and store |
metadata | object | Optional metadata to attach to vectors |
model | string | Embedding model to use |
namespace | string | Vector namespace for organization |
zerodb_semantic_search
Semantic search using text query (auto-embeds query text). Searches vectors in the same dimension as the model used. Use when searching vectors using a text query (auto-embeds the text). Unlike zerodb_search_vectors which requires a raw vector, this accepts plain text. Unlike zerodb_search_memory which searches agent conversation memory, this searches the general vector store.
| Parameter | Type | Description |
|---|---|---|
query_text * | string | Text query to search for (will be auto-embedded) |
filter_metadata | object | Metadata filters for search |
limit | number | Maximum number of results to return |
model | string | Model to use for query embedding (must match stored vectors) |
namespace | string | Vector namespace to search in |
threshold | number | Minimum similarity score (0.0-1.0) |
zerodb_store_memory
Store agent memory in ZeroDB for persistent context. Use when the agent needs to persist conversation turns, decisions, or observations for later recall. Stores with role, session, and agent metadata for filtered retrieval.
| Parameter | Type | Description |
|---|---|---|
content * | string | Memory content to store |
role * | string | Message role |
agent_id | string | Agent identifier (auto-generated if not provided) |
metadata | object | Additional metadata |
session_id | string | Session identifier (auto-generated if not provided) |
zerodb_search_memory
Search agent memory using semantic similarity. Use when searching agent conversation memory by natural language. Unlike zerodb_search_vectors which requires a raw vector, and zerodb_semantic_search which searches the general vector store, this searches agent-specific memory entries filtered by session/agent/role.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query |
agent_id | string | Filter by agent |
limit | number | Max results |
role | string | Filter by role |
session_id | string | Filter by session |
zerodb_get_context
Get agent context window for current session. Use when the agent needs to retrieve its recent conversation context within token limits. Returns the most recent memories for a session, bounded by max_tokens.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session identifier |
agent_id | string | Agent identifier |
max_tokens | number | Max tokens in context |
zerodb_upsert_vector
Store or update a vector embedding with metadata. Supports 384, 768, 1024, or 1536 dimensions. Dimension is auto-detected and validated. Use when you have a pre-computed embedding vector to store or update. For embedding text and storing in one step, use zerodb_embed_and_store instead.
| Parameter | Type | Description |
|---|---|---|
document * | string | Source document or text |
vector_embedding * | array | Vector embedding (384, 768, 1024, or 1536 dimensions supported) |
metadata | object | Document metadata |
namespace | string | Vector namespace |
vector_id | string | Optional vector ID for updates |
zerodb_batch_upsert_vectors
Batch upsert multiple vectors for efficiency. Use when storing many vectors at once to reduce API round-trips. Accepts an array of vector objects and processes them in a single request.
| Parameter | Type | Description |
|---|---|---|
vectors * | array | Array of vectors to upsert |
namespace | string | Vector namespace |
zerodb_search_vectors
Search vectors using semantic similarity. Supports 384, 768, 1024, or 1536 dimension query vectors. Auto-detects dimension. Use when searching raw vector embeddings by similarity with a query vector. Unlike zerodb_semantic_search which accepts text (auto-embeds), this requires a pre-computed vector. Unlike zerodb_search_memory which searches agent memory, this searches the general vector store.
| Parameter | Type | Description |
|---|---|---|
query_vector * | array | Query vector (384, 768, 1024, or 1536 dimensions supported) |
filter_metadata | object | Metadata filters |
limit | number | Max results |
namespace | string | Vector namespace |
threshold | number | Similarity threshold |
zerodb_delete_vector
Delete a specific vector by ID. Use when removing a single vector embedding from the store. WARNING: This operation is irreversible.
| Parameter | Type | Description |
|---|---|---|
vector_id * | string | Vector ID to delete |
namespace | string | Vector namespace |
zerodb_get_vector
Retrieve a specific vector by ID. Use when you need to inspect a particular vector's metadata or embedding values. Optionally includes the full embedding array.
| Parameter | Type | Description |
|---|---|---|
vector_id * | string | Vector ID to retrieve |
include_embedding | boolean | Include full embedding in response |
namespace | string | Vector namespace |
zerodb_list_vectors
List vectors in a project/namespace with pagination. Use when the agent needs to browse or enumerate stored vectors, or answer "what vectors exist?". Supports filtering by namespace and metadata.
| Parameter | Type | Description |
|---|---|---|
filter_metadata | object | Metadata filters |
limit | number | Results per page |
namespace | string | Vector namespace |
offset | number | Pagination offset |
zerodb_vector_stats
Get vector statistics for a project. Use when checking how many vectors are stored, their dimensions, and namespace distribution. Returns counts, dimension breakdowns, and optionally detailed statistics.
| Parameter | Type | Description |
|---|---|---|
detailed | boolean | Include detailed statistics |
namespace | string | Optional namespace filter |
zerodb_create_vector_index
Create optimized index for vector search. Use when search performance needs improvement on large vector collections. Supports IVF, HNSW, and flat index types with configurable distance metrics.
| Parameter | Type | Description |
|---|---|---|
distance_metric | string | Distance metric |
index_params | object | Algorithm-specific parameters |
index_type | string | Index algorithm |
namespace | string | Namespace to index |
zerodb_optimize_vectors
Optimize vector storage for better performance. Use when vector search is slow or storage needs compaction. Supports compress, reindex, and deduplicate operations. Use dry_run to preview changes first.
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | Preview changes without applying |
namespace | string | Namespace to optimize |
optimize_type | string | Optimization type |
zerodb_export_vectors
Export vectors to various formats (JSON, CSV, Parquet). Use when you need to download or migrate vector data out of ZeroDB. Supports filtering by namespace and metadata.
| Parameter | Type | Description |
|---|---|---|
filter_metadata | object | Metadata filters |
format | string | Export format |
include_embeddings | boolean | Include vector embeddings |
namespace | string | Namespace to export |
zerodb_quantum_compress
Compress vector using TurboQuant (PolarQuant + QJL) algorithm from Google Research (ICLR 2026). Achieves ~3.5x compression with 0.9999+ cosine similarity preservation. Data-oblivious — no calibration needed. Returns base64-encoded compressed data.
| Parameter | Type | Description |
|---|---|---|
vector_embedding * | array | Vector to compress (1-4096 dimensions) |
compression_ratio | number | Ignored (kept for backward compat). Actual ratio is determined by precision. |
method | string | Algorithm: turboquant (PolarQuant+QJL), polarquant (PolarQuant only), qjl (sign-bit only) |
precision | number | Bit precision for radius quantization (8=3.5x, 16=2.4x, 32=highest fidelity) |
preserve_similarity | boolean | Use TurboQuant (true) or PolarQuant-only (false) |
zerodb_quantum_decompress
Decompress a TurboQuant-compressed vector back to original dimensions. Reconstructs the full vector from the base64-encoded compressed data returned by zerodb_quantum_compress.
| Parameter | Type | Description |
|---|---|---|
compressed_vector * | array | Compressed vector data |
compression_metadata | object | Compression metadata from compress operation |
original_dimensions | number | Original vector dimensions |
zerodb_quantum_hybrid_search
Hybrid similarity search combining cosine similarity with metadata boosting. Returns ranked results with configurable weighting between similarity score and metadata relevance.
| Parameter | Type | Description |
|---|---|---|
query_vector * | array | Query vector |
classical_weight | number | Cosine similarity weight (0.0-1.0) |
limit | number | Max results |
namespace | string | Vector namespace |
quantum_weight | number | Metadata boost weight (0.0-1.0) |
zerodb_quantum_optimize
Analyze vector space characteristics for optimal TurboQuant compression settings. Reports sparsity, magnitude distribution, and recommended precision level.
| Parameter | Type | Description |
|---|---|---|
namespace | string | Namespace to analyze |
optimization_level | number | Analysis depth (1-3) |
target_backend | string | Target backend (simulator recommended) |
zerodb_quantum_feature_map
Transform vector into feature space for enhanced similarity computation. Applies configurable feature mapping for dimensionality transformation.
| Parameter | Type | Description |
|---|---|---|
vector_embedding * | array | Input vector |
feature_map_type | string | Feature map type |
num_qubits | number | Dimensionality parameter |
reps | number | Number of repetitions |
zerodb_quantum_kernel
Calculate kernel similarity between two vectors. Supports fidelity (normalized dot product squared) and swap_test kernel types for measuring vector similarity.
| Parameter | Type | Description |
|---|---|---|
vector_a * | array | First vector |
vector_b * | array | Second vector |
kernel_type | string | Kernel type |
shots | number | Number of iterations |
zerodb_create_table
Create a new NoSQL table with schema. Use when you need to set up a new data structure for storing structured records. Define fields and indexes for the table schema.
| Parameter | Type | Description |
|---|---|---|
schema * | object | Table schema definition |
table_name * | string | Unique table name |
description | string | Table description |
zerodb_list_tables
List all NoSQL tables in the project with their schemas. Use when the agent needs to discover available data structures or answer "what tables exist?". Returns table names, row counts, and field definitions.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
offset | number | Pagination offset |
zerodb_get_table
Get table details and schema. Use when you need to inspect a specific table's structure, field types, indexes, and optionally row count statistics.
| Parameter | Type | Description |
|---|---|---|
table_id * | string | Table ID or name |
include_stats | boolean | Include row count and stats |
zerodb_delete_table
Delete a table and all its data. Use when a table is no longer needed and should be permanently removed. Requires confirm flag. WARNING: This operation is irreversible.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Confirmation flag |
table_id * | string | Table ID or name to delete |
zerodb_insert_rows
Insert rows into a table. Use when adding new records to a NoSQL table. Accepts an array of row objects and optionally returns inserted IDs.
| Parameter | Type | Description |
|---|---|---|
rows * | array | Array of row objects to insert |
table_id * | string | Table ID or name |
return_ids | boolean | Return inserted row IDs |
zerodb_query_rows
Query rows from a table with filters. Use when reading data from a NoSQL table. Supports MongoDB-style filters, sorting, pagination, and field projection.
| Parameter | Type | Description |
|---|---|---|
table_id * | string | Table ID or name |
filter | object | MongoDB-style query filter |
limit | number | Max results |
offset | number | Pagination offset |
projection | object | Field projection |
sort | object | Sort specification |
zerodb_update_rows
Update rows in a table. Use when modifying existing records in a NoSQL table. Supports MongoDB-style update operators ($set, $inc, etc.) and optional upsert behavior.
| Parameter | Type | Description |
|---|---|---|
filter * | object | MongoDB-style query filter |
table_id * | string | Table ID or name |
update * | object | Update operations ($set, $inc, etc.) |
upsert | boolean | Insert if not found |
zerodb_delete_rows
Delete rows from a table matching a filter. Use when removing specific records from a NoSQL table. Supports MongoDB-style filters. WARNING: This operation is irreversible.
| Parameter | Type | Description |
|---|---|---|
filter * | object | MongoDB-style query filter to match rows |
table_id * | string | Table ID or name |
limit | number | Max rows to delete (0 = all matching) |
zerodb_upload_file
Upload file to ZeroDB storage. Use when you need to store a file (base64-encoded) in the project's S3-compatible object storage. Supports metadata and virtual folder organization.
| Parameter | Type | Description |
|---|---|---|
file_content * | string | Base64-encoded file content |
file_name * | string | File name |
content_type | string | MIME type |
folder | string | Virtual folder path |
metadata | object | File metadata |
zerodb_download_file
Download file from ZeroDB storage. Use when you need to retrieve a previously uploaded file by its ID. Returns base64-encoded content by default.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | File ID to download |
return_base64 | boolean | Return as base64 string |
zerodb_list_files
List files in project storage. Use when the agent needs to discover available files or answer "what files are stored?". Supports filtering by folder and MIME type with pagination.
| Parameter | Type | Description |
|---|---|---|
content_type | string | Filter by MIME type |
folder | string | Filter by folder path |
limit | number | Max results |
offset | number | Pagination offset |
zerodb_delete_file
Delete file from storage. Use when a file is no longer needed and should be permanently removed. WARNING: This operation is irreversible.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | File ID to delete |
zerodb_get_file_metadata
Get file metadata without downloading content. Use when you need to check a file's size, type, upload date, or custom metadata without fetching the actual file data.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | File ID |
zerodb_generate_presigned_url
Generate presigned URL for file access. Use when you need a temporary URL to share file access with external systems. Supports download and upload operations with configurable expiration.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | File ID |
expiration_seconds | number | URL expiration time |
operation | string | URL operation type |
zerodb_create_event
Create an event in the event stream. Use when you need to publish an event for tracking, auditing, or triggering downstream workflows. Supports event types, payloads, and correlation IDs.
| Parameter | Type | Description |
|---|---|---|
event_data * | object | Event payload data |
event_type * | string | Event type/category |
correlation_id | string | Correlation ID for event tracking |
source | string | Event source identifier |
zerodb_list_events
List events with filtering. Use when you need to browse or query the event stream by type, source, or time range. Supports pagination for large result sets.
| Parameter | Type | Description |
|---|---|---|
end_time | string | ISO timestamp - events before this time |
event_type | string | Filter by event type |
limit | number | Max results |
offset | number | Pagination offset |
source | string | Filter by source |
start_time | string | ISO timestamp - events after this time |
zerodb_get_event
Get event details by ID. Use when you need to inspect a specific event's full payload, timestamps, and metadata.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | Event ID |
zerodb_subscribe_events
Subscribe to event stream (returns subscription ID). Use when you need to set up real-time event notifications. Supports filtering by event type and optional webhook delivery.
| Parameter | Type | Description |
|---|---|---|
event_types * | array | Event types to subscribe to |
filter | object | Event filter criteria |
webhook_url | string | Optional webhook URL for events |
zerodb_event_stats
Get event stream statistics. Use when you need to understand event volume, frequency, and distribution over time. Supports filtering by event type and time range.
| Parameter | Type | Description |
|---|---|---|
event_type | string | Filter by event type |
time_range | string | Statistics time range |
zerodb_create_project
Create a new ZeroDB project. Use when you need to set up a new isolated workspace for storing vectors, tables, files, and events. Projects are the top-level organizational unit.
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Unique project name |
description | string | Project description |
settings | object | Project settings and configuration |
zerodb_get_project
Get project details. Use when you need to inspect a project's configuration, settings, and enabled features. Uses the configured project ID by default.
| Parameter | Type | Description |
|---|---|---|
project_id | string | Project ID (optional, uses env default if not provided) |
zerodb_list_projects
List all accessible projects. Use when the agent needs to discover available projects or answer "what projects do I have access to?". Returns project names, IDs, and basic info.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
offset | number | Pagination offset |
zerodb_update_project
Update project settings. Use when you need to modify a project's name, description, or configuration settings.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID |
description | string | New description |
project_name | string | New project name |
settings | object | Updated settings |
zerodb_delete_project
Delete a project and all its data. Use when a project is no longer needed. Removes all vectors, tables, files, and events within the project. Requires confirm flag. WARNING: This operation is irreversible.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Confirmation flag |
project_id * | string | Project ID to delete |
zerodb_get_project_stats
Get project usage statistics. Use when you need to check storage consumption, vector counts, API call volumes, and other usage metrics for a project.
| Parameter | Type | Description |
|---|---|---|
include_details | boolean | Include detailed breakdowns |
project_id | string | Project ID (optional, uses env default) |
zerodb_enable_database
Enable database features for a project. Use when you need to activate specific capabilities (vectors, compression, nosql, files, events) on a project that does not yet have them enabled.
| Parameter | Type | Description |
|---|---|---|
features * | array | Features to enable: vectors, quantum, nosql, files, events |
project_id * | string | Project ID |
zerodb_rlhf_interaction
Collect user interaction for RLHF training. Use when recording a prompt-response pair with optional feedback score for reinforcement learning. Each call creates a new training data point.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | User prompt |
response * | string | Agent response |
agent_id | string | Agent identifier |
context | object | Interaction context |
feedback | number | User feedback score (-1 to 1) |
zerodb_rlhf_agent_feedback
Collect agent-level feedback. Use when recording user satisfaction signals (thumbs up/down, ratings) for a specific agent. Useful for tracking agent quality over time.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Agent identifier |
feedback_type * | string | Feedback type |
comment | string | Optional feedback comment |
context | object | Feedback context |
rating | number | Rating value (1-5 for rating type) |
zerodb_rlhf_workflow
Collect workflow-level feedback. Use when recording the outcome of a multi-step workflow including success status, duration, and steps completed.
| Parameter | Type | Description |
|---|---|---|
success * | boolean | Workflow success status |
workflow_id * | string | Workflow identifier |
duration_ms | number | Workflow duration in milliseconds |
feedback | object | Detailed workflow feedback |
steps_completed | number | Number of steps completed |
zerodb_rlhf_error
Collect error report for RLHF improvement. Use when recording errors encountered during agent operation to improve future behavior. Include sanitized stack traces and severity levels.
| Parameter | Type | Description |
|---|---|---|
error_message * | string | Error message |
error_type * | string | Error type/category |
context | object | Error context |
severity | string | Error severity |
stack_trace | string | Error stack trace (sanitized) |
zerodb_rlhf_status
Get RLHF collection status. Use when you need to check whether RLHF data collection is active and how many interactions have been recorded for a session.
| Parameter | Type | Description |
|---|---|---|
session_id | string | Optional session ID filter |
zerodb_rlhf_summary
Get RLHF data summary and statistics. Use when you need an overview of collected RLHF data including interaction counts, average feedback scores, and trends over time.
| Parameter | Type | Description |
|---|---|---|
agent_id | string | Filter by agent |
time_range | string | Summary time range |
zerodb_rlhf_start
Start RLHF data collection for session. Use when initiating RLHF tracking at the beginning of an agent session. Safe to call multiple times — idempotent for the same session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session identifier |
config | object | Collection configuration |
zerodb_rlhf_stop
Stop RLHF data collection for session. Use when ending RLHF tracking at the end of an agent session. Optionally exports collected data before stopping.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session identifier |
export_data | boolean | Export collected data |
zerodb_rlhf_session
Get RLHF interactions for a session. Use when reviewing all recorded interactions within a specific RLHF session for analysis or export.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session identifier |
limit | number | Max results |
zerodb_rlhf_broadcast
Broadcast RLHF event to subscribers. Use when sending RLHF-related notifications to specific agents or all subscribers. Supports targeted delivery to specific agent IDs.
| Parameter | Type | Description |
|---|---|---|
event_data * | object | Event payload |
event_type * | string | Event type |
target_agents | array | Target agent IDs |
zerodb_admin_system_stats
Get system-wide statistics (admin only). Use when you need a global view of platform performance and usage metrics. Requires admin privileges.
| Parameter | Type | Description |
|---|---|---|
include_performance | boolean | Include performance metrics |
include_usage | boolean | Include usage metrics |
zerodb_admin_list_projects
List all projects system-wide (admin only). Use when you need to see all projects across all users for administrative purposes. Supports filtering by user ID. Requires admin privileges.
| Parameter | Type | Description |
|---|---|---|
filter_user | string | Filter by user ID |
limit | number | Max results |
offset | number | Pagination offset |
zerodb_admin_user_usage
Get user usage statistics (admin only). Use when you need to inspect a specific user's resource consumption and API usage. Requires admin privileges.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID to query |
time_range | string | Statistics time range |
zerodb_admin_health
Get system health status (admin only). Use when you need to check the health of all system components (database, storage, search). Requires admin privileges.
| Parameter | Type | Description |
|---|---|---|
include_components | boolean | Include component health |
zerodb_admin_optimize
Run database optimization (admin only). Use when the database needs maintenance such as vacuum, reindex, or analyze operations. Supports dry_run to preview changes. Requires admin privileges.
| Parameter | Type | Description |
|---|---|---|
optimization_type * | string | Optimization type |
dry_run | boolean | Preview without applying |
project_id | string | Optional project ID to optimize |
zerodb_postgres_query
Execute SQL query on provisioned PostgreSQL instance with security validations. Use when you need to run arbitrary SQL (SELECT, INSERT, UPDATE, DELETE) against the dedicated PostgreSQL database. Supports parameterized queries and read-only mode enforcement.
| Parameter | Type | Description |
|---|---|---|
sql * | string | SQL query to execute |
max_rows | number | Maximum rows to return |
params | array | Query parameters for prepared statements |
read_only | boolean | Enforce read-only mode (SELECT only) |
timeout_seconds | number | Query timeout in seconds |
zerodb_postgres_schema_info
Get database schema information (tables, columns, indexes). Use when you need to discover or inspect the PostgreSQL schema structure. Returns table definitions, column types, indexes, and constraints.
| Parameter | Type | Description |
|---|---|---|
include_constraints | boolean | Include constraint information |
include_indexes | boolean | Include index information |
include_stats | boolean | Include table statistics |
table_name | string | Optional: specific table to inspect |
zerodb_postgres_create_table
Create new PostgreSQL table with schema definition. Use when you need to define a new relational table with typed columns, constraints, and indexes. Supports if_not_exists for idempotent creation.
| Parameter | Type | Description |
|---|---|---|
columns * | array | Column definitions |
table_name * | string | Name of the table to create |
if_not_exists | boolean | Only create if table does not exist |
indexes | array | Index definitions |
zerodb_postgres_backup
Trigger PostgreSQL backup job. Use when you need to create a point-in-time backup of the database. Supports full and incremental backups with configurable retention and compression.
| Parameter | Type | Description |
|---|---|---|
backup_type | string | Backup type |
compression | boolean | Compress backup |
include_data | boolean | Include table data |
include_schema | boolean | Include schema definition |
retention_days | number | Backup retention in days |
zerodb_postgres_restore
Restore PostgreSQL database from backup. Use when you need to recover data from a previous backup. Supports full, schema-only, and data-only restore types. WARNING: This operation is irreversible — it overwrites existing data when confirm_overwrite is true.
| Parameter | Type | Description |
|---|---|---|
backup_id * | string | Backup ID to restore from |
confirm_overwrite * | boolean | Confirm overwrite of existing data |
restore_type | string | Restore type |
target_database | string | Optional: restore to different database name |
zerodb_postgres_stats
Get PostgreSQL database statistics (size, connections, query performance). Use when you need to monitor database health, connection pool usage, storage consumption, and query performance metrics.
| Parameter | Type | Description |
|---|---|---|
include_connections | boolean | Include connection statistics |
include_queries | boolean | Include query performance stats |
include_replication | boolean | Include replication stats |
include_storage | boolean | Include storage statistics |
time_range | string | Statistics time range |
zerodb_lakehouse_query
Execute a read-only (SELECT/WITH only) SQL query against the project lakehouse via DuckDB over Parquet files in object storage. Use when you need to analyze or inspect data that has been ingested into the lakehouse. Destructive SQL (INSERT/UPDATE/DELETE/DROP/etc.) is rejected.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ZeroDB project ID |
sql * | string | SQL query (SELECT or WITH only) |
max_rows | number | Maximum rows to return |
zerodb_lakehouse_list_tables
List the lakehouse tables (sensor-type partitions) available for a project, with file counts, total bytes, and last-modified time. Use when you need to discover what data exists in the lakehouse before querying it.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ZeroDB project ID |
zerodb_lakehouse_catalog_list
List all partitions in the public lakehouse data catalog, with file counts and sizes. Use when you need a platform-wide overview of available lakehouse data, independent of any single project. No project_id required.
zerodb_lakehouse_catalog_search
Search the public lakehouse data catalog by partition name. Use when you need to find which lakehouse partitions match a keyword (e.g. "weather", "ais") before querying them.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search term to match against partition names |
zerodb_provision_postgres
Provision a dedicated PostgreSQL instance via Railway with dedicated resources. Use when you need to spin up a new managed PostgreSQL database. Choose instance size based on workload requirements and budget.
| Parameter | Type | Description |
|---|---|---|
instance_size * | string | Instance size: micro-1 ($5/mo), standard-2 ($10/mo), standard-4 ($25/mo), performance-8 ($50/mo), performance-16 ($100/mo) |
project_id * | string | ZeroDB project ID |
postgres_version | string | PostgreSQL version |
tags | array | Optional tags for organization |
zerodb_get_postgres_status
Get status and health metrics for dedicated PostgreSQL instance. Use when you need to check if your PostgreSQL instance is running, its uptime, and health indicators.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ZeroDB project ID |
zerodb_get_postgres_connection
Get connection credentials for PostgreSQL instance (database_url, host, port, etc.). Use when you need connection details to configure applications or tools. Supports primary, readonly, and admin credential types.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ZeroDB project ID |
credential_type | string | Type of credentials to retrieve |
zerodb_get_postgres_usage
Get usage statistics and billing information for PostgreSQL instance. Use when you need to review compute usage, storage consumption, and cost breakdown for your dedicated instance.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ZeroDB project ID |
hours | number | Time range in hours for statistics (default: 24) |
zerodb_get_postgres_logs
Get SQL query logs with performance metrics and credit consumption. Use when you need to audit queries, debug slow operations, or review credit usage. Supports filtering by query type.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ZeroDB project ID |
limit | number | Maximum number of log entries to return (default: 100) |
query_type | string | Optional: filter by query type |
zerodb_restart_postgres
Restart the dedicated PostgreSQL instance (completes in 30-60 seconds). Use when the instance needs a restart due to configuration changes or performance issues. Does not lose data.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ZeroDB project ID |
zerodb_delete_postgres
Delete the PostgreSQL instance and all data (requires confirmation). Use when the instance is no longer needed. Requires confirm=true. WARNING: This operation is irreversible.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to confirm deletion and data loss |
project_id * | string | ZeroDB project ID |
zerodb_graph_upsert_entity
Create or update a knowledge graph entity. Use when you need to add a person, organization, technology, or concept to the context graph, or refresh an existing one. If the entity already exists (matched by canonical_name + entity_type), aliases are merged and memory_count is incremented rather than duplicating the entity.
| Parameter | Type | Description |
|---|---|---|
canonical_name * | string | Entity canonical name |
entity_type * | string | Entity type, e.g. person, org, tech, concept |
aliases | array | Known aliases for the entity |
project_id | string | Optional project ID — when provided, the entity_type is checked against that project's ontology and a warning (not a block) is returned if it is not in the allowed list |
properties | object | Arbitrary entity properties |
zerodb_graph_create_edge
Create or strengthen a directed edge (relationship) between two existing entities in the knowledge graph. Use when you have identified a relationship between two entities you have already created with zerodb_graph_upsert_entity. Both entities must already exist — this does not create them. Unlike zerodb_graph_traverse which reads the graph, this writes to it.
| Parameter | Type | Description |
|---|---|---|
predicate * | string | Relationship type, e.g. works_at, located_in, depends_on |
source_name * | string | Source entity canonical name (must already exist) |
target_name * | string | Target entity canonical name (must already exist) |
confidence | number | Edge confidence (0.0-1.0) |
properties | object | Arbitrary edge properties |
zerodb_graph_traverse
Multi-hop traversal of the knowledge graph starting from an entity. Use when you need to discover what is connected to an entity, directly or transitively, up to a bounded depth. Returns nodes, edges, and paths discovered within max_hops. Unlike zerodb_graph_rag_search which ranks results by relevance to a text query, this is a pure structural walk from a known starting entity.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity name or ID to start traversal from |
as_of | string | Optional ISO timestamp — only return edges valid at this point in time |
max_hops | number | Maximum traversal depth (1-5) |
min_confidence | number | Minimum edge confidence to follow (0.0-1.0) |
predicates | array | Optional filter: only follow edges with these predicate types |
zerodb_graph_rag_search
GraphRAG hybrid search — blends vector similarity with knowledge graph proximity. Use when you want search results that are both semantically relevant to a query AND structurally connected in the entity graph, rather than relying on vector similarity alone. graph_weight=0.0 behaves like pure vector search (same as zerodb_semantic_search); graph_weight=1.0 is pure graph proximity ranking; the default 0.3 blends both.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text |
graph_weight | number | Blend factor: 0=pure vector, 1=pure graph proximity |
limit | number | Maximum results to return |
max_hops | number | Maximum graph traversal depth used for the graph-proximity component |
zerodb_graph_list_entities
List knowledge graph entities for the current user, optionally filtered by entity type, paginated by memory_count descending. Use when you need to browse or audit what entities already exist in the graph rather than looking up one specific entity by name (use zerodb_graph_resolve-style lookup via traverse/neighbors for that).
| Parameter | Type | Description |
|---|---|---|
entity_type | string | Filter by entity type, e.g. person, org, tech, concept |
limit | number | Max results |
offset | number | Pagination offset |
zerodb_graph_neighbors
Get the direct (1-hop) neighbors of a knowledge graph entity, with relationship and entity metadata. Use when you need everything directly connected to one entity without a deeper multi-hop walk. Unlike zerodb_graph_traverse, this is bounded to a single hop and does not support predicate/confidence filtering.
| Parameter | Type | Description |
|---|---|---|
entity_name * | string | Entity name to find neighbors of (must already exist) |
limit | number | Max neighbors to return |
zerodb_graph_stats
Get knowledge graph analytics for the current user: node count, edge count, graph density, entity-type and predicate distributions, and top entities by connectivity. Use for a high-level health/size check of the graph before deciding whether to traverse, export, or run centrality analysis.
zerodb_graph_merge_entities
Merge duplicate entities into a single canonical entity, moving all edges and aliases from the merge targets onto the canonical entity and deleting the duplicates. Use when you have discovered that two or more entities in the graph actually refer to the same real-world thing (e.g. "Acme" and "Acme Inc"). This is destructive to the merged (non-canonical) entities — it cannot be undone.
| Parameter | Type | Description |
|---|---|---|
canonical * | string | Canonical entity name to keep |
merge * | array | Entity names to merge into the canonical entity and delete |
zerodb_graph_ontology_get
Get the ontology definition (allowed entity types, predicates per type, and constraints) for a project. Use before creating entities/edges in a project that has an ontology, so you know which entity_type and predicate values are expected. Returns a not-found error if the project has no ontology defined yet — use zerodb_graph_ontology_infer to propose one from existing data.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project UUID |
zerodb_graph_ontology_upsert
Create or update the ontology for a project: the allowed entity types, allowed predicates per entity type, and optional constraints. Use when you are defining or revising the schema that governs what entities/relationships are expected in a project's graph. Version is auto-incremented on update — this does not retroactively reclassify existing entities (use zerodb_graph_ontology_infer + applying its output for that).
| Parameter | Type | Description |
|---|---|---|
entity_types * | array | Allowed entity types for this project |
project_id * | string | Project UUID |
constraints | object | Optional additional constraints |
predicates | object | Allowed predicates per entity type, e.g. {'customer': {'places': 'order'}} |
zerodb_graph_ontology_infer
Infer a candidate ontology from the user's existing graph data by analyzing entity-type and predicate frequency patterns. Use when a project has no ontology yet, or you want to propose updates based on what has actually been recorded in the graph so far. When project_id is given, also returns a diff against that project's current ontology (new types/predicates not yet captured). Filters out generic placeholder types (object, thing, unknown).
| Parameter | Type | Description |
|---|---|---|
min_entity_count | number | Minimum entity-type occurrences to suggest it |
min_predicate_count | number | Minimum predicate occurrences to suggest it |
project_id | string | Optional project UUID to diff the inferred ontology against |
zerodb_graph_ontology_suggestions
Get human-readable, actionable suggestions for improving a project's ontology: entities with generic types that should be reclassified, frequently-used predicates missing from the ontology, and entity types present in the data but not yet declared. Use this when you want a quick, readable punch list rather than the raw inference output from zerodb_graph_ontology_infer.
| Parameter | Type | Description |
|---|---|---|
project_id | string | Optional project UUID to scope suggestions to |
zerodb_graph_contradictions_list
List contradictions in the knowledge graph: edges that were superseded because a newer edge contradicted an existing relationship on the same (source, predicate) pair. Use this to audit where the graph has recorded conflicting facts over time, before deciding how to resolve each one with zerodb_graph_contradictions_resolve.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max contradictions to return |
zerodb_graph_contradictions_resolve
Resolve a contradiction on a superseded edge, found via zerodb_graph_contradictions_list. action="accept_new" keeps the current state (default/no-op — the old edge stays superseded); action="keep_both" restores the old edge so both are active simultaneously; action="reject_new" deletes the new edge and restores the old one. Use this once you have determined which version of a contradicted fact is correct.
| Parameter | Type | Description |
|---|---|---|
action * | string | Resolution action |
edge_id * | string | UUID of the superseded (old) edge to resolve |
zerodb_graph_centrality
Get entities ranked by degree centrality (total/in/out degree, hub score, critical-node flag). Use to find the most structurally important or connected entities in the graph. Requires the graph.compute_centrality background task to have run at least once for this user — returns an empty list otherwise, not an error.
| Parameter | Type | Description |
|---|---|---|
critical_only | boolean | Only return entities flagged as critical infrastructure nodes |
entity_type | string | Filter by entity type |
limit | number | Max entities to return |
zerodb_graph_export
Export the knowledge graph as JSON (nodes + edges, D3/Cytoscape-compatible shape). Use when you need the whole graph (or a filtered slice of it) to hand to a visualization, external analysis tool, or another agent, rather than exploring it interactively via traverse/neighbors. For the GEXF (Gephi) format, use the underlying HTTP export route directly — this tool only returns the JSON shape.
| Parameter | Type | Description |
|---|---|---|
entity_type | string | Filter by entity type |
limit | number | Max entities to export |
min_confidence | number | Minimum edge confidence to include |
zerodb_renew_token
Manually renew authentication token. Use when the current auth token has expired or is about to expire and you need to force a refresh before the next API call.