1. Conduid
  2. Data
  3. OceanBase
MCP server · Data

OceanBase

Read-only MCP gateway and local developer assistant for OceanBase.

63Good

Scored 19 hours ago · breakdown

About OceanBase

OceanBase is an MCP server published by oceanbase in the Data category: read-only MCP gateway and local developer assistant for OceanBase. Conduid read 108 tools from its source: activate_tenant, add_memory, add_memory_with_profile, call_obshell_sdk, change_tenant_password, configure_cluster_connection and 102 more. No package is published for it, so it installs from a source checkout.

The repository has 111 stars and 38 forks, and its last commit was on 16 Nov 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include data-access, database, database-gateway, metadata, oceanbase and opencode.

Install

From source
git clone https://github.com/oceanbase/mcp-oceanbase

Tools (108)

activate_tenant激活备用租户
ParameterTypeDescription
forceboolean是否强制激活
namespacestring命名空间(默认为"default")
standby_tenant_name *string备用租户名称
add_memoryAdd new memory to storage
ParameterTypeDescription
agent_idstringAgent identifier
inferbooleanWhether to use intelligent mode (default True)
messages *anyMemory content, can be string, message dict, or message list. IMPORTANT: Each message dict MUST contain 'role' and 'content' fields.
metadataobjectMetadata dictionary
run_idstringRun/session identifier
user_idstringUser identifier
add_memory_with_profileAdd memory and extract user profile information from conversation
ParameterTypeDescription
agent_idstringAgent identifier
custom_topicsstringOptional custom topics JSON string for structured extraction. Only used when profile_type="topics". Format: {"main_topic": {"sub_topic1": "description1", "sub_topic2": "description2"}}
inferbooleanWhether to use intelligent mode (default True)
messages *anyConversation content, can be string, message dict, or message list. IMPORTANT: Each message dict MUST contain 'role' and 'content' fields.
metadataobjectMetadata dictionary
profile_typestringType of profile extraction: - "content": Non-structured natural language profile (default) - "topics": Structured JSON topics with main topics and sub-topics
run_idstringRun/session identifier
strict_modebooleanIf True, only output topics from the provided list (default False) Only used when profile_type="topics"
user_id *stringUser identifier (required for profile extraction)
call_obshell_sdk调用 obshell 的 sdk 方法
ParameterTypeDescription
args *object
sdk_method *string
change_tenant_password修改租户密码
ParameterTypeDescription
forceboolean是否强制执行操作
namespacestring命名空间(默认为"default")
password *string租户的新密码(必需)
tenant_name *string租户名称
configure_cluster_connection配置集群查询相关的连接
ParameterTypeDescription
cluster_name *string集群名称
namespacestring命名空间,默认为default
passwordstring租户密码,如果未提供则从环境变量中获取集群密码
portinteger端口,默认为2881
tenant_namestring租户名称,默认为sys
userstring用户,默认为root
zonestring指定要连接的可用区,如果不指定则使用第一个可用的zone
connectcreate connection to oceanbase database
ParameterTypeDescription
databasestring
instanceIdstring
passwordstring
tenantIdstring
userstring
create_backup_policy在指定集群中创建备份策略
ParameterTypeDescription
archive_pathstring备份策略的归档路径
bak_data_pathstring备份策略的备份数据路径
bak_encryption_passwordstring备份加密密码
dest_typestring备份策略的目标类型,当前支持OSS或NFS(默认为"NFS")
fullstring全量备份计划,crontab格式,例如 0 0 * * 4,5
incstring增量备份计划,crontab格式,例如 0 0 * * 1,2,3
job_keep_daysinteger保留备份作业的天数(默认为7)
namespacestring命名空间(默认为"default")
oss_access_idstringOSS目标的访问ID
oss_access_keystringOSS目标的访问密钥
recovery_daysinteger保留恢复作业的天数(默认为30)
tenant_name *string租户名称
create_cluster在指定命名空间中创建新的OceanBase集群
ParameterTypeDescription
backup_storage_addressstring备份存储的存储类
backup_storage_pathstring备份存储的大小
cluster_name *string要创建的集群名称
cpustring观察者的CPU(默认为2)
data_storage_classstring数据存储的存储类(默认为"local-path")
data_storage_sizestring数据存储的大小(默认为50)
idstring集群的ID
imagestring观察者的镜像(默认为"quay.io/oceanbase/oceanbase-cloud-native:4.3.3.1-101000012024102216")
log_storage_classstring日志存储的存储类(默认为"local-path")
log_storage_sizestring日志存储的大小(默认为20)
memorystring观察者的内存(默认为10)
modestring集群的模式(默认为"service")
namespacestring要在其中创建集群的命名空间(默认为"default")
parametersstringOBCluster中的其他参数设置,例如__min_full_resource_pool_memory
redo_log_storage_classstring重做日志存储的存储类(默认为"local-path")
redo_log_storage_sizestring重做日志存储的大小(默认为50)
root_passwordstring集群的root密码
zonesstring集群的可用区,例如'--zones=<zone>=<replica>'(默认为[z1=1])
create_oceanbase_performance_reportGenerate performance report
ParameterTypeDescription
cluster_id *integerTarget OceanBase cluster ID (required)
end_snapshot_id *integerEnd snapshot ID for the report (required)
name *stringReport name (required)
start_snapshot_id *integerStart snapshot ID for the report (required)
create_tenant创建租户
ParameterTypeDescription
archive_sourcestring归档来源
bak_data_sourcestring备份数据来源
bak_encryption_passwordstring备份加密密码
charsetstring租户使用的字符集(默认为"utf8mb4")
cluster *string租户所在集群名称(必需)
connect_white_liststring租户使用的连接白名单(默认为"%")
cpu_countstring单位的CPU数量(默认为"1")
from_tenantstring创建租户时使用的源租户或归档租户
iops_weightinteger单位的IOPS权重(默认为1)
log_disk_sizestring单位的日志磁盘大小(默认为"4Gi")
max_iopsinteger单位的最大IOPS(默认为1024)
memory_sizestring单位的内存大小(默认为"2Gi")
min_iopsinteger单位的最小IOPS(默认为1024)
namespacestring命名空间(默认为"default")
oss_access_idstring归档的OSS访问ID
oss_access_keystring归档的OSS访问密钥
prioritystring租户的可用区优先级,格式为'Zone=Priority',可使用逗号分隔多个优先级(必需)
restoreboolean是否从备份恢复,默认为False
restore_typestring恢复类型,支持OSS或NFS(默认为"OSS")
root_passwordstring租户的root密码,如果不指定,则会自动生成
tenant_name *string租户名称
tenant_name_overridestring租户名称覆盖,如果不指定,则使用k8s的名称
unit_numberinteger租户的单位数量(默认为1)
unlimitedboolean是否不限制时间,默认为True
until_timestampstring租户的截止时间
delete_all_memoriesBatch delete memories
ParameterTypeDescription
agent_idstringAgent identifier
run_idstringRun/session identifier
user_idstringUser identifier
delete_backup_policy删除指定租户的备份策略
ParameterTypeDescription
forceboolean强制删除租户备份策略
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
delete_cluster删除指定命名空间中的OceanBase集群
ParameterTypeDescription
cluster_name *string要删除的集群名称
namespacestring要从中删除集群的命名空间
delete_memoryDelete memory
ParameterTypeDescription
agent_idstringAgent identifier
memory_id *integerMemory ID
user_idstringUser identifier
delete_memory_with_profileDelete memory and optionally the associated user profile
ParameterTypeDescription
agent_idstringAgent identifier
delete_profilebooleanIf True, also delete the user's profile (default False)
memory_id *integerMemory ID to delete
user_id *stringUser identifier (required)
delete_tenant删除指定租户
ParameterTypeDescription
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
delete_user_profileDelete user profile by user_id
ParameterTypeDescription
user_id *stringUser identifier (required)
diagnosticsDiagnose the operational status of a tenant
ParameterTypeDescription
endstringEnd time of the diagnostic task. If not provided, the default is the current time. Time format: YYYY-MM-DDTHH:mm:ss
instanceIdstring
startstringStart time of the diagnostic task. If not provided, the default is one hour ago. Time format: YYYY-MM-DDTHH:mm:ss
tenantIdstring
execute_cluster_sql在集群指定租户下执行SQL查询,支持各种常见SQL查询语句,如SELECT、SHOW TABLES、SHOW COLUMNS等
ParameterTypeDescription
cluster_namestring集群名称,如果提供则会重新配置连接
databasestring数据库名称,默认为oceanbase,也可以为业务数据库
namespacestring命名空间,默认为default
query *stringSQL查询语句
tenant_namestring租户名称,如果提供则会重新配置连接
execute_sqlExecute an SQL on the OceanBase server.
ParameterTypeDescription
sql *string
get_all_obshell_sdk_methods获取 obshell 所有可供用户使用的 sdk 方法
get_all_oceanbase_tenantsQuery all tenant list
ParameterTypeDescription
modestringQuery tenants with specified modes: ORACLE or MYSQL (optional),e.g., "ORACLE,MYSQL" or "ORACLE".
namestringQuery tenants whose name contains the keyword, case-insensitive (optional)
pageintegerPagination page number, starting from 1, default: 1
sizeintegerPagination size, default: 10, maximum: 2000
sortstringSorting rule, e.g., "name,asc" (optional)
statusstringQuery tenants with specified status (optional) ,e.g., "NORMAL,CREATING" or "CREATING".
get_all_server_nodesGet all server nodes from oceanbase.
get_current_tenantGet the current tenant name from oceanbase.
get_current_timeGet current time
get_memory_by_idGet specific memory
ParameterTypeDescription
agent_idstringAgent identifier
memory_id *integerMemory ID
user_idstringUser identifier
get_ob_ash_reportGet OceanBase Active Session History report.
ParameterTypeDescription
end_time *stringSample End Time,Format: yyyy-MM-dd HH:mm:ss.
start_time *stringSample Start Time,Format: yyyy-MM-dd HH:mm:ss.
tenant_idintegerUsed to specify the tenant ID for generating the ASH Report. Leaving this field blank or setting it to NULL indicates no restriction on the TENANT_ID.
get_obshell_sdk_methods_description获取 obshell 的 sdk 方法的描述
ParameterTypeDescription
sdk_method *string
get_oceanbase_alarm_detailQuery alarm event detail
ParameterTypeDescription
alarm_id *integerThe ID of the alarm event
get_oceanbase_alarmsQuery alarm event list
ParameterTypeDescription
active_at_endstringAlarm trigger end time (Datetime format, e.g., "2020-11-11T17:11:13.127+08:00") (optional)
active_at_startstringAlarm trigger start time (Datetime format, e.g., "2020-11-11T11:12:13.127+08:00") (optional)
app_typestringApplication type (alarm source) (optional): - OceanBase - OCP - OMS - OBProxy - Log - Backup
is_subscribed_by_mebooleanWhether subscribed by me
keywordstringKeyword matching (optional)
level *integerAlarm level [1~5]: - 1: Down - 2: Critical - 3: Alert - 4: Caution - 5: Info
pageintegerPagination page number, starting from 1, default: 1
scopestringAlarm scope (optional): - Cluster - Tenant - Host - Service - Arbitration - Backup - OceanBaseLog - OBProxyLog - * - HostLog
sizeintegerPagination size, default: 10, maximum: 200
statusstringAlarm status (optional): - Active - Inactive - Silenced - Inhibited
get_oceanbase_cluster_parametersGet OceanBase cluster parameters list
ParameterTypeDescription
cluster_id *integerThe ID of the target OceanBase cluster
get_oceanbase_cluster_server_statsGet resource statistics for all OBServers in the cluster
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
get_oceanbase_cluster_serversGet OceanBase cluster OBServer list
ParameterTypeDescription
cluster_id *integerThe ID of the target cluster
idc_namestringQuery OceanBase servers in the specified IDC (optional)
region_namestringQuery OceanBase servers in the specified region (optional)
get_oceanbase_cluster_snapshotsQuery cluster snapshot information
ParameterTypeDescription
cluster_id *integerThe ID of the target OceanBase cluster (required)
get_oceanbase_cluster_statsGet OceanBase cluster resource statistics
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
get_oceanbase_cluster_tenantsQuery cluster tenant list
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
modestringTenant mode: MYSQL or ORACLE (optional)
namestringTenant name keyword, case-insensitive (optional)
pageintegerPagination page number, starting from 1, default: 1
sizeintegerPagination size, default: 10, maximum: 2000
sortstringSorting rule, e.g., "asc,name" (optional)
statusstringTenant status list or comma-separated string (optional) ,e.g., "NORMAL,CREATING" or "CREATING". Valid tenant status values: - NORMAL: Normal - CREATING: Creating - MODIFYING: Modifying
get_oceanbase_cluster_unitsQuery OceanBase cluster Unit list
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
get_oceanbase_cluster_zonesGet OceanBase cluster Zone list
ParameterTypeDescription
cluster_id *integerThe ID of the OceanBase cluster to query Zone list
get_oceanbase_inspection_item_last_resultQuery the last inspection result of a specified inspection item
ParameterTypeDescription
item_id *integerInspection item ID (required)
object_id *integerObject ID
object_type *stringInspection object type (required): - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy
tag_id *integerInspection scenario ID (required): - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection
get_oceanbase_inspection_overviewQuery inspection object list
ParameterTypeDescription
inspection_object_typestringObject types e.g., "OB_CLUSTER": - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy
namestringInspection object name (optional)
object_idsstringInspection object IDs in OCP (e.g., cluster ID, tenant ID). e.g. "1,2,3,4" or "1": Multiple IDs should be separated by commas (optional)
parent_namestringParent object name of the inspection object (optional)
schedule_statesstringSchedule states e.g., "ACTIVE,INACTIVE,EXPIRED" or "ACTIVE": - ACTIVE: Enabled - INACTIVE: Disabled - EXPIRED: Expired
get_oceanbase_inspection_reportGet inspection report detail
ParameterTypeDescription
report_id *integerInspection report ID (can be obtained from the query inspection tasks interface)
get_oceanbase_inspection_report_infoGet the last inspection result of a specific object
ParameterTypeDescription
object_id *integerObject ID
object_type *stringInspection object type (required): - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy
tag_id *integerInspection scenario ID (required): - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection
get_oceanbase_inspection_tasksQuery inspection task list
ParameterTypeDescription
inspectionObjectTypesstringInspection object types (optional) e.g., "OB_CLUSTER,OB_TENANT,HOST,OB_PROXY" or "OB_CLUSTER": - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy
namestringInspection object name (optional)
tagsstringInspection scenario tag IDs (optional) e.g. "1,2,3,4" or "1": - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection
taskStatesstringInspection task state (optional) - RUNNING: Running - FAILED: Failed - SUCCESSFUL: Successful
get_oceanbase_metric_data_with_labelQuery monitor metric data with labels
ParameterTypeDescription
end_time *stringEnd time of monitoring data (Datetime format, e.g., "2020-02-16T07:32:16+08:00")
group_by *stringArray of labels for aggregating monitoring data
interval *integerTime granularity of monitoring data in seconds
labels *stringFilter conditions for monitoring data
max_points *integerMaximum number of monitoring result points (optional)
metrics *stringArray of monitoring metrics
min_step *integerQuery sampling interval (optional)
start_time *stringStart time of monitoring data (Datetime format, e.g., "2020-02-16T05:32:16+08:00")
get_oceanbase_metric_groupsQuery monitor metric description information
ParameterTypeDescription
pageintegerPagination page number, starting from 1, default: 1
scope *stringMetric scope: CLUSTER, TENANT, HOST, or OBPROXY
sizeintegerPagination size, default: 10, maximum: 2000
sortstringSorting rule (optional)
targetstringMetric metadata type: OBCLUSTER or OBPROXY (optional)
target_idintegerMetric metadata ID (optional)
type *stringMetric type: TOP or NORMAL
get_oceanbase_obproxy_cluster_detailQuery OBProxy cluster detail
ParameterTypeDescription
cluster_id *integerThe ID of the OBProxy cluster
get_oceanbase_obproxy_cluster_parametersQuery OBProxy cluster parameters
ParameterTypeDescription
cluster_id *integerThe ID of the OBProxy cluster
get_oceanbase_performance_reportQuery performance report
ParameterTypeDescription
cluster_id *integerTarget OceanBase cluster ID (required)
directorystringThe directory where the HTML report is saved (required), and the absolute path is not empty
report_id *integerPerformance report ID (required)
get_oceanbase_sql_textQuery SQL full text
ParameterTypeDescription
cluster_id *integerCluster ID (required)
db_namestringQuery SQL performance in specified database (optional)
end_time *stringEnd time (Datetime format, e.g., "2020-02-16T07:32:16+08:00") (required)
sql_id *stringSQL ID (required)
start_time *stringStart time (Datetime format, e.g., "2020-02-16T05:32:16+08:00") (required)
tenant_id *integerTenant ID (required)
get_oceanbase_tenant_databasesGet database list
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
tenant_id *integerThe ID of the tenant
get_oceanbase_tenant_detailQuery tenant detail
ParameterTypeDescription
cluster_id *integerThe ID of the cluster that the target tenant belongs to
tenant_id *integerThe ID of the target tenant
get_oceanbase_tenant_objectsGet database object list
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
tenant_id *integerThe ID of the tenant
get_oceanbase_tenant_parametersGet tenant parameters list
ParameterTypeDescription
cluster_id *integerThe ID of the OceanBase cluster
tenant_id *integerThe ID of the tenant
get_oceanbase_tenant_role_detailGet database role detail
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
role_name *stringRole name
tenant_id *integerThe ID of the tenant
get_oceanbase_tenant_rolesGet database role list
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
tenant_id *integerThe ID of the tenant
get_oceanbase_tenant_slow_sqlQuery slow SQL list
ParameterTypeDescription
cluster_id *integerCluster ID (required)
end_time *stringEnd time (UTC format: YYYY-MM-DDThh:mm:ssZ) (required)
filter_expressionstringFilter expression, all fields referenced by @ (optional)
innerbooleanWhether it's internal SQL (optional)
limitintegerNumber of TOP results to return (optional)
server_idintegerQuery SQL performance on specified OceanBase server (optional)
sql_textstringSQL text keyword (case-insensitive) (optional)
sql_text_lengthintegerMaximum length of returned SQL text (optional)
start_time *stringStart time (UTC format: YYYY-MM-DDThh:mm:ssZ) (required)
tenant_id *integerTenant ID (required)
get_oceanbase_tenant_top_sqlQuery SQL performance statistics
ParameterTypeDescription
cluster_id *integerCluster ID (required)
end_time *stringEnd time (Datetime format, e.g., "2020-02-16T07:32:16+08:00") (required) need: end_time - start_time <= 1 day
innerbooleanWhether to include internal SQL (optional, default: false)
search_attrstringAdvanced search metric name (optional)
search_opstringAdvanced search operator: EQ, NE, GT, GE, LT, LE (optional)
search_valstringAdvanced search value (optional)
server_idintegerQuery SQL executed on specified OceanBase server (optional)
sql_textstringSQL text keyword (case-insensitive) (optional)
start_time *stringStart time (Datetime format, e.g., "2020-02-16T05:32:16+08:00") (required)
tenant_id *integerTenant ID (required)
get_oceanbase_tenant_unitsQuery tenant Unit list
ParameterTypeDescription
cluster_id *integerThe ID of the cluster that the target tenant belongs to
tenant_id *integerThe ID of the target tenant
zone_namestringZone name (optional)
get_oceanbase_tenant_user_detailGet database user detail
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
host_namestringHost name (optional)
tenant_id *integerThe ID of the tenant
username *stringUsername
get_oceanbase_tenant_usersGet database user list
ParameterTypeDescription
cluster_id *integerThe ID of the cluster
tenant_id *integerThe ID of the tenant
get_oceanbase_zone_serversGet Zone OBServer list
ParameterTypeDescription
cluster_id *integerThe ID of the target cluster
zone_name *stringThe name of the Zone
get_resource_capacityGet resource capacity from oceanbase.
get_user_profileGet user profile information by user_id
ParameterTypeDescription
user_id *stringUser identifier (required)
install_component安装OceanBase组件, 目前支持ob-operator,ob-dashboard, local-path-provisioner,cert-manager,不支持其他组件,
ParameterTypeDescription
component_namestring组件名称
versionstring组件版本
install_ob_operator安装ob-operator
install_okctl安装okctl
list_all_clusters列出所有的OceanBase集群
list_backup_policies列出指定集群中的所有备份策略
ParameterTypeDescription
cluster_name *string集群名称
namespacestring命名空间(默认为"default")
list_databasesdescribe databases by teant id
ParameterTypeDescription
instanceIdstring
tenantIdstring
list_instanceslist oceanbase instances
list_memoriesList all memories
ParameterTypeDescription
agent_idstringAgent identifier
filtersobjectMetadata filters
limitintegerMaximum number of results (default 100)
offsetintegerOffset (default 0)
run_idstringRun/session identifier
user_idstringUser identifier
list_obproxy_clustersQuery OBProxy cluster list
ParameterTypeDescription
pageintegerPagination page number, starting from 1, default: 1
sizeintegerPagination size, default: 10
list_oceanbase_clustersList OceanBase clusters
ParameterTypeDescription
namestringCluster name keyword for filtering, case-insensitive (optional)
pageintegerPagination page number, starting from 1. Default: 1
sizeintegerPagination size, default: 10, maximum: 2000
sortstringSorting rule, e.g., "name,asc" (optional)
statusstringCluster status filter as comma-separated string (optional). Multiple statuses can be specified, e.g., "RUNNING,STOPPED" or "RUNNING". Valid status values: - RUNNING: Cluster is running normally - CREATING: Cluster is being created - DELETING: Cluster is being deleted - STARTING: Cluster is starting up - RESTARTING: Cluster is restarting - STOPPING: Cluster is stopping - STOPPED: Cluster is stopped - TAKINGOVER: Cluster is taking over - MOVINGOUT: Cluster is moving out - SWITCHOVER: Primary-standby cluster switching - FAILOVER: Standby cluster failover - OPERATING: Cluster is in operation
list_tenantsdescribe tenants by instance id
ParameterTypeDescription
instanceIdstring
list_user_profilesList user profiles with optional filtering
ParameterTypeDescription
limitintegerMaximum number of profiles to return (default 100)
main_topicarrayOptional list of main topic names to filter Example: ["basic_information", "interests_and_hobbies"]
offsetintegerOffset for pagination (default 0)
sub_topicarrayOptional list of sub topic paths in format "main_topic.sub_topic" Example: ["basic_information.user_name", "employment.company"]
topic_valuearrayOptional list of topic values to filter by exact match Example: ["Beijing", "Software Engineer"]
user_idstringOptional user identifier to filter by specific user
obdiag_analyze_log分析集群日志,找出发生过的错误信息并返回
ParameterTypeDescription
cluster_namestring
obdiag_check_run巡检集群,并返回巡检报告
ParameterTypeDescription
cluster_namestring
obdiag_cluster_list列出可用的集群配置名称列表,用于在其他工具中指定 cluster_name 参数
obdiag_display_listobdiag 集群信息查询功能,返回支持的指令列表
ParameterTypeDescription
cluster_namestring
obdiag_display_runobdiag 集群信息查询功能,执行获取的指令列表,需要功能来自obdiag_display_list的返回结果。只需要返回obdiag_display_list结果
ParameterTypeDescription
cluster_namestring
env_dictobject
scene *string
obdiag_gather_logobdiag 收集集群日志,根据需求添加参数或者默认不加任何参数收集日志
ParameterTypeDescription
cluster_namestring
var *string
oceanbase_hybrid_searchPerform hybird search combining relational condition filtering(that is, scalar) and vector search.
ParameterTypeDescription
distance_funcstringThe index distance algorithm used when comparing the distance between two vectors.
filter_exprarrayScalar conditions requiring filtering in where clause.
output_column_namearrayReturned table fields,unless explicitly requested, please do not provide.
table_name *stringName of the table to search.
topkintegerNumber of results returned.
vec_column_namestringcolumn name containing vectors to search.
vector_data *arrayQuery vector.
with_distancebooleanWhether to output distance data.
oceanbase_text_searchSearch for documents using full text search in an OceanBase table.
ParameterTypeDescription
full_text_search_column_name *arraySpecify the columns to be searched in full text.
full_text_search_expr *stringSpecify the keywords or phrases to search for.
limitintegerMaximum number of results to return.
other_where_clausearrayOther WHERE condition query statements except full-text search.
output_column_namearraycolumns to include in results.
table_name *stringName of the table to search.
oceanbase_vector_searchPerform vector similarity search on an OceanBase table.
ParameterTypeDescription
distance_funcstringThe index distance algorithm used when comparing the distance between two vectors.
output_column_namearrayReturned table fields.
table_name *stringName of the table to search.
topkintegerNumber of results returned.
vec_column_namestringcolumn name containing vectors to search.
vector_data *arrayQuery vector.
with_distancebooleanWhether to output distance data.
pause_backup_policy暂停指定租户的备份策略
ParameterTypeDescription
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
queryquery infos from tenant's database by sql
ParameterTypeDescription
sqlstring
replay_tenant_log回放租户日志
ParameterTypeDescription
forceboolean是否强制执行操作
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
unlimitedboolean是否不限制时间(默认为True)
until_timestampstring租户恢复的时间戳,例如: 2024-02-23 17:47:00
resume_backup_policy恢复指定租户的备份策略
ParameterTypeDescription
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
run_oceanbase_inspectionRun inspection
ParameterTypeDescription
inspection_object_type *stringInspection object type (required): - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy
object_ids *stringInspection object IDs in OCP (e.g., cluster ID, tenant ID). Multiple IDs should be provided as a list (required)
tag *integerScenario tag ID (required): - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection
scale_cluster扩缩OceanBase集群,支持添加/调整/删除可用区
ParameterTypeDescription
cluster_name *string要扩缩的集群名称
namespacestring集群所在的命名空间(默认为"default")
zones *string集群的可用区,例如 'z1=1',设置副本数为0以删除可用区,每次只能修改一个可用区
scale_tenant扩缩租户资源,一次只能执行一种类型的扩展操作
ParameterTypeDescription
cpu_countstring单位的CPU数量(默认为"1")
forceboolean是否强制执行操作
iops_weightinteger单位的IOPS权重(默认为1)
log_disk_sizestring单位的日志磁盘大小(默认为"4Gi")
max_iopsinteger单位的最大IOPS(默认为1024)
memory_sizestring单位的内存大小(默认为"2Gi")
min_iopsinteger单位的最小IOPS(默认为1024)
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
unit_numberinteger租户的单位数量(默认为1)
search_memoriesSearch memories
ParameterTypeDescription
agent_idstringAgent identifier
filtersobjectMetadata filters
limitintegerMaximum number of results (default 10)
query *stringSearch query text
run_idstringRun/session identifier
thresholdnumberSimilarity threshold (0.0-1.0)
user_idstringUser identifier
search_memories_with_profileSearch memories and optionally include user profile information
ParameterTypeDescription
add_profilebooleanWhether to include user profile in results (default True)
agent_idstringAgent identifier
filtersobjectMetadata filters
limitintegerMaximum number of results (default 10)
query *stringSearch query text
run_idstringRun/session identifier
thresholdnumberSimilarity threshold (0.0-1.0)
user_id *stringUser identifier (required)
search_oceanbase_documentThis tool is designed to provide context-specific information about OceanBase to a large language model (LLM) to enhance the accuracy and relevance of its responses.
ParameterTypeDescription
keyword *string
set_oceanbase_cluster_parametersUpdate OceanBase cluster parameters
ParameterTypeDescription
cluster_id *integerThe ID of the target cluster
parameters *arrayParameter list containing parameter names and new values
set_oceanbase_tenant_parametersUpdate tenant parameters
ParameterTypeDescription
cluster_id *integerThe ID of the cluster that the target tenant belongs to
parameters *arrayParameter list containing parameter names, values, and parameter types
tenant_id *integerThe ID of the target tenant
show_backup_policy查看指定租户的备份策略
ParameterTypeDescription
job_typestring备份策略的作业类型,例如 FULL、INC、CLEAN、ARCHIVE、ALL(默认为"ALL")
limitinteger查看的备份策略的作业数量
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
show_cluster显示指定OceanBase集群的概览
ParameterTypeDescription
cluster_name *string要显示的集群名称
namespacestring集群所在的命名空间(默认为"default")
show_tenant显示租户信息
ParameterTypeDescription
namespacestring命名空间(默认为"default")
tenant_name *string租户名称
switchover_tenant切换主备租户
ParameterTypeDescription
forceboolean是否强制执行操作
namespacestring命名空间(默认为"default")
primary_tenant_name *string主租户名称
standby_tenant_name *string备租户名称
update_backup_policy更新指定租户的备份策略
ParameterTypeDescription
fullstring全量备份计划,crontab格式,例如 0 0 * * 4,5
incstring增量备份计划,crontab格式,例如 0 0 * * 1,2,3
job_keep_daysinteger保留备份作业的天数(默认为7)
namespacestring命名空间(默认为"default")
piece_interval_daysinteger切换备份片段的天数(默认为1)
recovery_daysinteger保留备份恢复的天数(默认为30)
tenant_name *string租户名称
update_cluster更新OceanBase集群,支持CPU/内存/存储的调整
ParameterTypeDescription
cluster_name *string要更新的集群名称
cpustring观察者的CPU(默认为2)
data_storage_classstring数据存储的存储类
data_storage_sizestring数据存储的大小(默认为50)
log_storage_classstring日志存储的存储类
log_storage_sizestring日志存储的大小(默认为20)
memorystring观察者的内存(默认为10)
namespacestring集群所在的命名空间(默认为"default")
redo_log_storage_classstring重做日志存储的存储类
redo_log_storage_sizestring重做日志存储的大小(默认为50)
update_component更新OceanBase组件, 目前支持ob-operator,ob-dashboard, local-path-provisioner,cert-manager,不支持其他组件,
ParameterTypeDescription
component_namestring组件名称
update_memoryUpdate memory
ParameterTypeDescription
agent_idstringAgent identifier
content *stringNew content
memory_id *integerMemory ID
metadataobjectUpdated metadata
user_idstringUser identifier
update_tenant更新租户信息
ParameterTypeDescription
connect_white_liststring租户的连接白名单
forceboolean是否强制执行操作
namespacestring命名空间(默认为"default")
prioritystring租户的可用区优先级,格式为'Zone=Priority',可使用逗号分隔多个优先级
tenant_name *string租户名称
upgrade_cluster升级OceanBase集群,请指定新的镜像
ParameterTypeDescription
cluster_name *string要升级的集群名称
image *string观察者的镜像
namespacestring集群所在的命名空间(默认为"default")
upgrade_tenant升级租户
ParameterTypeDescription
forceboolean是否强制升级
namespacestring命名空间(默认为"default")
tenant_name *string租户名称

Security checks

  • ✓README presentThe repository's README runs to about 561 words.

5 checks have not been run yet.

README

The repository's README runs to about 561 words. The original in the repository is authoritative.

Read full README
Questions

About OceanBase

How do I install OceanBase?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is OceanBase safe to use with an AI agent?

Its trust score is 63 out of 100 (good). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is OceanBase still maintained?

Yes — the last commit was 15 days ago. The repository has 111 stars and 38 forks.

What tools does OceanBase provide?

Conduid read 108 tools from the source: activate_tenant, add_memory, add_memory_with_profile, call_obshell_sdk, change_tenant_password, configure_cluster_connection, connect, create_backup_policy and 100 more. 98 of them publish their parameters, listed under Tools above.