About OceanBase
OceanBase is an MCP server published by oceanbase in the Developer Tools category: mCP Server for OceanBase database and its tools. 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, is licensed Apache-2.0, and its last commit was on 16 Nov 2026. The latest release is seekdb-mcp-server-v0.0.4 (26 Dec 2025): 🚀 What's New This release focuses on code quality improvements and developer experience enhancements for the seekdb MCP server. It follows seekdb-mcp-server-v0.0.3 (23 Dec 2025), and the 5 most recent releases go back to oceanbase-mcp-server-v0.0.4 (5 Dec 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/oceanbase/awesome-oceanbase-mcpTools (108)
activate_tenant激活备用租户| Parameter | Type | Description |
|---|---|---|
| force | boolean | 是否强制激活 |
| namespace | string | 命名空间(默认为"default") |
| standby_tenant_name * | string | 备用租户名称 |
add_memoryAdd new memory to storage| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| infer | boolean | Whether to use intelligent mode (default True) |
| messages * | any | Memory content, can be string, message dict, or message list. IMPORTANT: Each message dict MUST contain 'role' and 'content' fields. |
| metadata | object | Metadata dictionary |
| run_id | string | Run/session identifier |
| user_id | string | User identifier |
add_memory_with_profileAdd memory and extract user profile information from conversation| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| custom_topics | string | Optional custom topics JSON string for structured extraction. Only used when profile_type="topics". Format: {"main_topic": {"sub_topic1": "description1", "sub_topic2": "description2"}} |
| infer | boolean | Whether to use intelligent mode (default True) |
| messages * | any | Conversation content, can be string, message dict, or message list. IMPORTANT: Each message dict MUST contain 'role' and 'content' fields. |
| metadata | object | Metadata dictionary |
| profile_type | string | Type of profile extraction: - "content": Non-structured natural language profile (default) - "topics": Structured JSON topics with main topics and sub-topics |
| run_id | string | Run/session identifier |
| strict_mode | boolean | If True, only output topics from the provided list (default False) Only used when profile_type="topics" |
| user_id * | string | User identifier (required for profile extraction) |
call_obshell_sdk调用 obshell 的 sdk 方法| Parameter | Type | Description |
|---|---|---|
| args * | object | |
| sdk_method * | string |
change_tenant_password修改租户密码| Parameter | Type | Description |
|---|---|---|
| force | boolean | 是否强制执行操作 |
| namespace | string | 命名空间(默认为"default") |
| password * | string | 租户的新密码(必需) |
| tenant_name * | string | 租户名称 |
configure_cluster_connection配置集群查询相关的连接| Parameter | Type | Description |
|---|---|---|
| cluster_name * | string | 集群名称 |
| namespace | string | 命名空间,默认为default |
| password | string | 租户密码,如果未提供则从环境变量中获取集群密码 |
| port | integer | 端口,默认为2881 |
| tenant_name | string | 租户名称,默认为sys |
| user | string | 用户,默认为root |
| zone | string | 指定要连接的可用区,如果不指定则使用第一个可用的zone |
connectcreate connection to oceanbase database| Parameter | Type | Description |
|---|---|---|
| database | string | |
| instanceId | string | |
| password | string | |
| tenantId | string | |
| user | string |
create_backup_policy在指定集群中创建备份策略| Parameter | Type | Description |
|---|---|---|
| archive_path | string | 备份策略的归档路径 |
| bak_data_path | string | 备份策略的备份数据路径 |
| bak_encryption_password | string | 备份加密密码 |
| dest_type | string | 备份策略的目标类型,当前支持OSS或NFS(默认为"NFS") |
| full | string | 全量备份计划,crontab格式,例如 0 0 * * 4,5 |
| inc | string | 增量备份计划,crontab格式,例如 0 0 * * 1,2,3 |
| job_keep_days | integer | 保留备份作业的天数(默认为7) |
| namespace | string | 命名空间(默认为"default") |
| oss_access_id | string | OSS目标的访问ID |
| oss_access_key | string | OSS目标的访问密钥 |
| recovery_days | integer | 保留恢复作业的天数(默认为30) |
| tenant_name * | string | 租户名称 |
create_cluster在指定命名空间中创建新的OceanBase集群| Parameter | Type | Description |
|---|---|---|
| backup_storage_address | string | 备份存储的存储类 |
| backup_storage_path | string | 备份存储的大小 |
| cluster_name * | string | 要创建的集群名称 |
| cpu | string | 观察者的CPU(默认为2) |
| data_storage_class | string | 数据存储的存储类(默认为"local-path") |
| data_storage_size | string | 数据存储的大小(默认为50) |
| id | string | 集群的ID |
| image | string | 观察者的镜像(默认为"quay.io/oceanbase/oceanbase-cloud-native:4.3.3.1-101000012024102216") |
| log_storage_class | string | 日志存储的存储类(默认为"local-path") |
| log_storage_size | string | 日志存储的大小(默认为20) |
| memory | string | 观察者的内存(默认为10) |
| mode | string | 集群的模式(默认为"service") |
| namespace | string | 要在其中创建集群的命名空间(默认为"default") |
| parameters | string | OBCluster中的其他参数设置,例如__min_full_resource_pool_memory |
| redo_log_storage_class | string | 重做日志存储的存储类(默认为"local-path") |
| redo_log_storage_size | string | 重做日志存储的大小(默认为50) |
| root_password | string | 集群的root密码 |
| zones | string | 集群的可用区,例如'--zones=<zone>=<replica>'(默认为[z1=1]) |
create_oceanbase_performance_reportGenerate performance report| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | Target OceanBase cluster ID (required) |
| end_snapshot_id * | integer | End snapshot ID for the report (required) |
| name * | string | Report name (required) |
| start_snapshot_id * | integer | Start snapshot ID for the report (required) |
create_tenant创建租户| Parameter | Type | Description |
|---|---|---|
| archive_source | string | 归档来源 |
| bak_data_source | string | 备份数据来源 |
| bak_encryption_password | string | 备份加密密码 |
| charset | string | 租户使用的字符集(默认为"utf8mb4") |
| cluster * | string | 租户所在集群名称(必需) |
| connect_white_list | string | 租户使用的连接白名单(默认为"%") |
| cpu_count | string | 单位的CPU数量(默认为"1") |
| from_tenant | string | 创建租户时使用的源租户或归档租户 |
| iops_weight | integer | 单位的IOPS权重(默认为1) |
| log_disk_size | string | 单位的日志磁盘大小(默认为"4Gi") |
| max_iops | integer | 单位的最大IOPS(默认为1024) |
| memory_size | string | 单位的内存大小(默认为"2Gi") |
| min_iops | integer | 单位的最小IOPS(默认为1024) |
| namespace | string | 命名空间(默认为"default") |
| oss_access_id | string | 归档的OSS访问ID |
| oss_access_key | string | 归档的OSS访问密钥 |
| priority | string | 租户的可用区优先级,格式为'Zone=Priority',可使用逗号分隔多个优先级(必需) |
| restore | boolean | 是否从备份恢复,默认为False |
| restore_type | string | 恢复类型,支持OSS或NFS(默认为"OSS") |
| root_password | string | 租户的root密码,如果不指定,则会自动生成 |
| tenant_name * | string | 租户名称 |
| tenant_name_override | string | 租户名称覆盖,如果不指定,则使用k8s的名称 |
| unit_number | integer | 租户的单位数量(默认为1) |
| unlimited | boolean | 是否不限制时间,默认为True |
| until_timestamp | string | 租户的截止时间 |
delete_all_memoriesBatch delete memories| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| run_id | string | Run/session identifier |
| user_id | string | User identifier |
delete_backup_policy删除指定租户的备份策略| Parameter | Type | Description |
|---|---|---|
| force | boolean | 强制删除租户备份策略 |
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
delete_cluster删除指定命名空间中的OceanBase集群| Parameter | Type | Description |
|---|---|---|
| cluster_name * | string | 要删除的集群名称 |
| namespace | string | 要从中删除集群的命名空间 |
delete_memoryDelete memory| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| memory_id * | integer | Memory ID |
| user_id | string | User identifier |
delete_memory_with_profileDelete memory and optionally the associated user profile| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| delete_profile | boolean | If True, also delete the user's profile (default False) |
| memory_id * | integer | Memory ID to delete |
| user_id * | string | User identifier (required) |
delete_tenant删除指定租户| Parameter | Type | Description |
|---|---|---|
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
delete_user_profileDelete user profile by user_id| Parameter | Type | Description |
|---|---|---|
| user_id * | string | User identifier (required) |
diagnosticsDiagnose the operational status of a tenant| Parameter | Type | Description |
|---|---|---|
| end | string | End time of the diagnostic task. If not provided, the default is the current time. Time format: YYYY-MM-DDTHH:mm:ss |
| instanceId | string | |
| start | string | Start time of the diagnostic task. If not provided, the default is one hour ago. Time format: YYYY-MM-DDTHH:mm:ss |
| tenantId | string |
execute_cluster_sql在集群指定租户下执行SQL查询,支持各种常见SQL查询语句,如SELECT、SHOW TABLES、SHOW COLUMNS等| Parameter | Type | Description |
|---|---|---|
| cluster_name | string | 集群名称,如果提供则会重新配置连接 |
| database | string | 数据库名称,默认为oceanbase,也可以为业务数据库 |
| namespace | string | 命名空间,默认为default |
| query * | string | SQL查询语句 |
| tenant_name | string | 租户名称,如果提供则会重新配置连接 |
execute_sqlExecute an SQL on the OceanBase server.| Parameter | Type | Description |
|---|---|---|
| sql * | string |
get_all_obshell_sdk_methods获取 obshell 所有可供用户使用的 sdk 方法get_all_oceanbase_tenantsQuery all tenant list| Parameter | Type | Description |
|---|---|---|
| mode | string | Query tenants with specified modes: ORACLE or MYSQL (optional),e.g., "ORACLE,MYSQL" or "ORACLE". |
| name | string | Query tenants whose name contains the keyword, case-insensitive (optional) |
| page | integer | Pagination page number, starting from 1, default: 1 |
| size | integer | Pagination size, default: 10, maximum: 2000 |
| sort | string | Sorting rule, e.g., "name,asc" (optional) |
| status | string | Query 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 timeget_memory_by_idGet specific memory| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| memory_id * | integer | Memory ID |
| user_id | string | User identifier |
get_ob_ash_reportGet OceanBase Active Session History report.| Parameter | Type | Description |
|---|---|---|
| end_time * | string | Sample End Time,Format: yyyy-MM-dd HH:mm:ss. |
| start_time * | string | Sample Start Time,Format: yyyy-MM-dd HH:mm:ss. |
| tenant_id | integer | Used 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 方法的描述| Parameter | Type | Description |
|---|---|---|
| sdk_method * | string |
get_oceanbase_alarm_detailQuery alarm event detail| Parameter | Type | Description |
|---|---|---|
| alarm_id * | integer | The ID of the alarm event |
get_oceanbase_alarmsQuery alarm event list| Parameter | Type | Description |
|---|---|---|
| active_at_end | string | Alarm trigger end time (Datetime format, e.g., "2020-11-11T17:11:13.127+08:00") (optional) |
| active_at_start | string | Alarm trigger start time (Datetime format, e.g., "2020-11-11T11:12:13.127+08:00") (optional) |
| app_type | string | Application type (alarm source) (optional): - OceanBase - OCP - OMS - OBProxy - Log - Backup |
| is_subscribed_by_me | boolean | Whether subscribed by me |
| keyword | string | Keyword matching (optional) |
| level * | integer | Alarm level [1~5]: - 1: Down - 2: Critical - 3: Alert - 4: Caution - 5: Info |
| page | integer | Pagination page number, starting from 1, default: 1 |
| scope | string | Alarm scope (optional): - Cluster - Tenant - Host - Service - Arbitration - Backup - OceanBaseLog - OBProxyLog - * - HostLog |
| size | integer | Pagination size, default: 10, maximum: 200 |
| status | string | Alarm status (optional): - Active - Inactive - Silenced - Inhibited |
get_oceanbase_cluster_parametersGet OceanBase cluster parameters list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the target OceanBase cluster |
get_oceanbase_cluster_server_statsGet resource statistics for all OBServers in the cluster| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
get_oceanbase_cluster_serversGet OceanBase cluster OBServer list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the target cluster |
| idc_name | string | Query OceanBase servers in the specified IDC (optional) |
| region_name | string | Query OceanBase servers in the specified region (optional) |
get_oceanbase_cluster_snapshotsQuery cluster snapshot information| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the target OceanBase cluster (required) |
get_oceanbase_cluster_statsGet OceanBase cluster resource statistics| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
get_oceanbase_cluster_tenantsQuery cluster tenant list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
| mode | string | Tenant mode: MYSQL or ORACLE (optional) |
| name | string | Tenant name keyword, case-insensitive (optional) |
| page | integer | Pagination page number, starting from 1, default: 1 |
| size | integer | Pagination size, default: 10, maximum: 2000 |
| sort | string | Sorting rule, e.g., "asc,name" (optional) |
| status | string | Tenant 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| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
get_oceanbase_cluster_zonesGet OceanBase cluster Zone list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the OceanBase cluster to query Zone list |
get_oceanbase_inspection_item_last_resultQuery the last inspection result of a specified inspection item| Parameter | Type | Description |
|---|---|---|
| item_id * | integer | Inspection item ID (required) |
| object_id * | integer | Object ID |
| object_type * | string | Inspection object type (required): - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy |
| tag_id * | integer | Inspection scenario ID (required): - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection |
get_oceanbase_inspection_overviewQuery inspection object list| Parameter | Type | Description |
|---|---|---|
| inspection_object_type | string | Object types e.g., "OB_CLUSTER": - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy |
| name | string | Inspection object name (optional) |
| object_ids | string | Inspection 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_name | string | Parent object name of the inspection object (optional) |
| schedule_states | string | Schedule states e.g., "ACTIVE,INACTIVE,EXPIRED" or "ACTIVE": - ACTIVE: Enabled - INACTIVE: Disabled - EXPIRED: Expired |
get_oceanbase_inspection_reportGet inspection report detail| Parameter | Type | Description |
|---|---|---|
| report_id * | integer | Inspection report ID (can be obtained from the query inspection tasks interface) |
get_oceanbase_inspection_report_infoGet the last inspection result of a specific object| Parameter | Type | Description |
|---|---|---|
| object_id * | integer | Object ID |
| object_type * | string | Inspection object type (required): - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy |
| tag_id * | integer | Inspection scenario ID (required): - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection |
get_oceanbase_inspection_tasksQuery inspection task list| Parameter | Type | Description |
|---|---|---|
| inspectionObjectTypes | string | Inspection 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 |
| name | string | Inspection object name (optional) |
| tags | string | Inspection scenario tag IDs (optional) e.g. "1,2,3,4" or "1": - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection |
| taskStates | string | Inspection task state (optional) - RUNNING: Running - FAILED: Failed - SUCCESSFUL: Successful |
get_oceanbase_metric_data_with_labelQuery monitor metric data with labels| Parameter | Type | Description |
|---|---|---|
| end_time * | string | End time of monitoring data (Datetime format, e.g., "2020-02-16T07:32:16+08:00") |
| group_by * | string | Array of labels for aggregating monitoring data |
| interval * | integer | Time granularity of monitoring data in seconds |
| labels * | string | Filter conditions for monitoring data |
| max_points * | integer | Maximum number of monitoring result points (optional) |
| metrics * | string | Array of monitoring metrics |
| min_step * | integer | Query sampling interval (optional) |
| start_time * | string | Start time of monitoring data (Datetime format, e.g., "2020-02-16T05:32:16+08:00") |
get_oceanbase_metric_groupsQuery monitor metric description information| Parameter | Type | Description |
|---|---|---|
| page | integer | Pagination page number, starting from 1, default: 1 |
| scope * | string | Metric scope: CLUSTER, TENANT, HOST, or OBPROXY |
| size | integer | Pagination size, default: 10, maximum: 2000 |
| sort | string | Sorting rule (optional) |
| target | string | Metric metadata type: OBCLUSTER or OBPROXY (optional) |
| target_id | integer | Metric metadata ID (optional) |
| type * | string | Metric type: TOP or NORMAL |
get_oceanbase_obproxy_cluster_detailQuery OBProxy cluster detail| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the OBProxy cluster |
get_oceanbase_obproxy_cluster_parametersQuery OBProxy cluster parameters| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the OBProxy cluster |
get_oceanbase_performance_reportQuery performance report| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | Target OceanBase cluster ID (required) |
| directory | string | The directory where the HTML report is saved (required), and the absolute path is not empty |
| report_id * | integer | Performance report ID (required) |
get_oceanbase_sql_textQuery SQL full text| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | Cluster ID (required) |
| db_name | string | Query SQL performance in specified database (optional) |
| end_time * | string | End time (Datetime format, e.g., "2020-02-16T07:32:16+08:00") (required) |
| sql_id * | string | SQL ID (required) |
| start_time * | string | Start time (Datetime format, e.g., "2020-02-16T05:32:16+08:00") (required) |
| tenant_id * | integer | Tenant ID (required) |
get_oceanbase_tenant_databasesGet database list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
| tenant_id * | integer | The ID of the tenant |
get_oceanbase_tenant_detailQuery tenant detail| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster that the target tenant belongs to |
| tenant_id * | integer | The ID of the target tenant |
get_oceanbase_tenant_objectsGet database object list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
| tenant_id * | integer | The ID of the tenant |
get_oceanbase_tenant_parametersGet tenant parameters list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the OceanBase cluster |
| tenant_id * | integer | The ID of the tenant |
get_oceanbase_tenant_role_detailGet database role detail| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
| role_name * | string | Role name |
| tenant_id * | integer | The ID of the tenant |
get_oceanbase_tenant_rolesGet database role list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
| tenant_id * | integer | The ID of the tenant |
get_oceanbase_tenant_slow_sqlQuery slow SQL list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | Cluster ID (required) |
| end_time * | string | End time (UTC format: YYYY-MM-DDThh:mm:ssZ) (required) |
| filter_expression | string | Filter expression, all fields referenced by @ (optional) |
| inner | boolean | Whether it's internal SQL (optional) |
| limit | integer | Number of TOP results to return (optional) |
| server_id | integer | Query SQL performance on specified OceanBase server (optional) |
| sql_text | string | SQL text keyword (case-insensitive) (optional) |
| sql_text_length | integer | Maximum length of returned SQL text (optional) |
| start_time * | string | Start time (UTC format: YYYY-MM-DDThh:mm:ssZ) (required) |
| tenant_id * | integer | Tenant ID (required) |
get_oceanbase_tenant_top_sqlQuery SQL performance statistics| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | Cluster ID (required) |
| end_time * | string | End time (Datetime format, e.g., "2020-02-16T07:32:16+08:00") (required) need: end_time - start_time <= 1 day |
| inner | boolean | Whether to include internal SQL (optional, default: false) |
| search_attr | string | Advanced search metric name (optional) |
| search_op | string | Advanced search operator: EQ, NE, GT, GE, LT, LE (optional) |
| search_val | string | Advanced search value (optional) |
| server_id | integer | Query SQL executed on specified OceanBase server (optional) |
| sql_text | string | SQL text keyword (case-insensitive) (optional) |
| start_time * | string | Start time (Datetime format, e.g., "2020-02-16T05:32:16+08:00") (required) |
| tenant_id * | integer | Tenant ID (required) |
get_oceanbase_tenant_unitsQuery tenant Unit list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster that the target tenant belongs to |
| tenant_id * | integer | The ID of the target tenant |
| zone_name | string | Zone name (optional) |
get_oceanbase_tenant_user_detailGet database user detail| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
| host_name | string | Host name (optional) |
| tenant_id * | integer | The ID of the tenant |
| username * | string | Username |
get_oceanbase_tenant_usersGet database user list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster |
| tenant_id * | integer | The ID of the tenant |
get_oceanbase_zone_serversGet Zone OBServer list| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the target cluster |
| zone_name * | string | The name of the Zone |
get_resource_capacityGet resource capacity from oceanbase.get_user_profileGet user profile information by user_id| Parameter | Type | Description |
|---|---|---|
| user_id * | string | User identifier (required) |
install_component安装OceanBase组件, 目前支持ob-operator,ob-dashboard, local-path-provisioner,cert-manager,不支持其他组件,| Parameter | Type | Description |
|---|---|---|
| component_name | string | 组件名称 |
| version | string | 组件版本 |
install_ob_operator安装ob-operatorinstall_okctl安装okctllist_all_clusters列出所有的OceanBase集群list_backup_policies列出指定集群中的所有备份策略| Parameter | Type | Description |
|---|---|---|
| cluster_name * | string | 集群名称 |
| namespace | string | 命名空间(默认为"default") |
list_databasesdescribe databases by teant id| Parameter | Type | Description |
|---|---|---|
| instanceId | string | |
| tenantId | string |
list_instanceslist oceanbase instanceslist_memoriesList all memories| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| filters | object | Metadata filters |
| limit | integer | Maximum number of results (default 100) |
| offset | integer | Offset (default 0) |
| run_id | string | Run/session identifier |
| user_id | string | User identifier |
list_obproxy_clustersQuery OBProxy cluster list| Parameter | Type | Description |
|---|---|---|
| page | integer | Pagination page number, starting from 1, default: 1 |
| size | integer | Pagination size, default: 10 |
list_oceanbase_clustersList OceanBase clusters| Parameter | Type | Description |
|---|---|---|
| name | string | Cluster name keyword for filtering, case-insensitive (optional) |
| page | integer | Pagination page number, starting from 1. Default: 1 |
| size | integer | Pagination size, default: 10, maximum: 2000 |
| sort | string | Sorting rule, e.g., "name,asc" (optional) |
| status | string | Cluster 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| Parameter | Type | Description |
|---|---|---|
| instanceId | string |
list_user_profilesList user profiles with optional filtering| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of profiles to return (default 100) |
| main_topic | array | Optional list of main topic names to filter Example: ["basic_information", "interests_and_hobbies"] |
| offset | integer | Offset for pagination (default 0) |
| sub_topic | array | Optional list of sub topic paths in format "main_topic.sub_topic" Example: ["basic_information.user_name", "employment.company"] |
| topic_value | array | Optional list of topic values to filter by exact match Example: ["Beijing", "Software Engineer"] |
| user_id | string | Optional user identifier to filter by specific user |
obdiag_analyze_log分析集群日志,找出发生过的错误信息并返回| Parameter | Type | Description |
|---|---|---|
| cluster_name | string |
obdiag_check_run巡检集群,并返回巡检报告| Parameter | Type | Description |
|---|---|---|
| cluster_name | string |
obdiag_cluster_list列出可用的集群配置名称列表,用于在其他工具中指定 cluster_name 参数obdiag_display_listobdiag 集群信息查询功能,返回支持的指令列表| Parameter | Type | Description |
|---|---|---|
| cluster_name | string |
obdiag_display_runobdiag 集群信息查询功能,执行获取的指令列表,需要功能来自obdiag_display_list的返回结果。只需要返回obdiag_display_list结果| Parameter | Type | Description |
|---|---|---|
| cluster_name | string | |
| env_dict | object | |
| scene * | string |
obdiag_gather_logobdiag 收集集群日志,根据需求添加参数或者默认不加任何参数收集日志| Parameter | Type | Description |
|---|---|---|
| cluster_name | string | |
| var * | string |
oceanbase_hybrid_searchPerform hybird search combining relational condition filtering(that is, scalar) and vector search.| Parameter | Type | Description |
|---|---|---|
| distance_func | string | The index distance algorithm used when comparing the distance between two vectors. |
| filter_expr | array | Scalar conditions requiring filtering in where clause. |
| output_column_name | array | Returned table fields,unless explicitly requested, please do not provide. |
| table_name * | string | Name of the table to search. |
| topk | integer | Number of results returned. |
| vec_column_name | string | column name containing vectors to search. |
| vector_data * | array | Query vector. |
| with_distance | boolean | Whether to output distance data. |
oceanbase_text_searchSearch for documents using full text search in an OceanBase table.| Parameter | Type | Description |
|---|---|---|
| full_text_search_column_name * | array | Specify the columns to be searched in full text. |
| full_text_search_expr * | string | Specify the keywords or phrases to search for. |
| limit | integer | Maximum number of results to return. |
| other_where_clause | array | Other WHERE condition query statements except full-text search. |
| output_column_name | array | columns to include in results. |
| table_name * | string | Name of the table to search. |
oceanbase_vector_searchPerform vector similarity search on an OceanBase table.| Parameter | Type | Description |
|---|---|---|
| distance_func | string | The index distance algorithm used when comparing the distance between two vectors. |
| output_column_name | array | Returned table fields. |
| table_name * | string | Name of the table to search. |
| topk | integer | Number of results returned. |
| vec_column_name | string | column name containing vectors to search. |
| vector_data * | array | Query vector. |
| with_distance | boolean | Whether to output distance data. |
pause_backup_policy暂停指定租户的备份策略| Parameter | Type | Description |
|---|---|---|
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
queryquery infos from tenant's database by sql| Parameter | Type | Description |
|---|---|---|
| sql | string |
replay_tenant_log回放租户日志| Parameter | Type | Description |
|---|---|---|
| force | boolean | 是否强制执行操作 |
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
| unlimited | boolean | 是否不限制时间(默认为True) |
| until_timestamp | string | 租户恢复的时间戳,例如: 2024-02-23 17:47:00 |
resume_backup_policy恢复指定租户的备份策略| Parameter | Type | Description |
|---|---|---|
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
run_oceanbase_inspectionRun inspection| Parameter | Type | Description |
|---|---|---|
| inspection_object_type * | string | Inspection object type (required): - OB_CLUSTER: Cluster - OB_TENANT: Tenant - HOST: Host - OB_PROXY: OBProxy |
| object_ids * | string | Inspection object IDs in OCP (e.g., cluster ID, tenant ID). Multiple IDs should be provided as a list (required) |
| tag * | integer | Scenario tag ID (required): - 1: Basic inspection - 2: Performance inspection - 3: Deep inspection - 4: Installation inspection |
scale_cluster扩缩OceanBase集群,支持添加/调整/删除可用区| Parameter | Type | Description |
|---|---|---|
| cluster_name * | string | 要扩缩的集群名称 |
| namespace | string | 集群所在的命名空间(默认为"default") |
| zones * | string | 集群的可用区,例如 'z1=1',设置副本数为0以删除可用区,每次只能修改一个可用区 |
scale_tenant扩缩租户资源,一次只能执行一种类型的扩展操作| Parameter | Type | Description |
|---|---|---|
| cpu_count | string | 单位的CPU数量(默认为"1") |
| force | boolean | 是否强制执行操作 |
| iops_weight | integer | 单位的IOPS权重(默认为1) |
| log_disk_size | string | 单位的日志磁盘大小(默认为"4Gi") |
| max_iops | integer | 单位的最大IOPS(默认为1024) |
| memory_size | string | 单位的内存大小(默认为"2Gi") |
| min_iops | integer | 单位的最小IOPS(默认为1024) |
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
| unit_number | integer | 租户的单位数量(默认为1) |
search_memoriesSearch memories| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| filters | object | Metadata filters |
| limit | integer | Maximum number of results (default 10) |
| query * | string | Search query text |
| run_id | string | Run/session identifier |
| threshold | number | Similarity threshold (0.0-1.0) |
| user_id | string | User identifier |
search_memories_with_profileSearch memories and optionally include user profile information| Parameter | Type | Description |
|---|---|---|
| add_profile | boolean | Whether to include user profile in results (default True) |
| agent_id | string | Agent identifier |
| filters | object | Metadata filters |
| limit | integer | Maximum number of results (default 10) |
| query * | string | Search query text |
| run_id | string | Run/session identifier |
| threshold | number | Similarity threshold (0.0-1.0) |
| user_id * | string | User 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.| Parameter | Type | Description |
|---|---|---|
| keyword * | string |
set_oceanbase_cluster_parametersUpdate OceanBase cluster parameters| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the target cluster |
| parameters * | array | Parameter list containing parameter names and new values |
set_oceanbase_tenant_parametersUpdate tenant parameters| Parameter | Type | Description |
|---|---|---|
| cluster_id * | integer | The ID of the cluster that the target tenant belongs to |
| parameters * | array | Parameter list containing parameter names, values, and parameter types |
| tenant_id * | integer | The ID of the target tenant |
show_backup_policy查看指定租户的备份策略| Parameter | Type | Description |
|---|---|---|
| job_type | string | 备份策略的作业类型,例如 FULL、INC、CLEAN、ARCHIVE、ALL(默认为"ALL") |
| limit | integer | 查看的备份策略的作业数量 |
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
show_cluster显示指定OceanBase集群的概览| Parameter | Type | Description |
|---|---|---|
| cluster_name * | string | 要显示的集群名称 |
| namespace | string | 集群所在的命名空间(默认为"default") |
show_tenant显示租户信息| Parameter | Type | Description |
|---|---|---|
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
switchover_tenant切换主备租户| Parameter | Type | Description |
|---|---|---|
| force | boolean | 是否强制执行操作 |
| namespace | string | 命名空间(默认为"default") |
| primary_tenant_name * | string | 主租户名称 |
| standby_tenant_name * | string | 备租户名称 |
update_backup_policy更新指定租户的备份策略| Parameter | Type | Description |
|---|---|---|
| full | string | 全量备份计划,crontab格式,例如 0 0 * * 4,5 |
| inc | string | 增量备份计划,crontab格式,例如 0 0 * * 1,2,3 |
| job_keep_days | integer | 保留备份作业的天数(默认为7) |
| namespace | string | 命名空间(默认为"default") |
| piece_interval_days | integer | 切换备份片段的天数(默认为1) |
| recovery_days | integer | 保留备份恢复的天数(默认为30) |
| tenant_name * | string | 租户名称 |
update_cluster更新OceanBase集群,支持CPU/内存/存储的调整| Parameter | Type | Description |
|---|---|---|
| cluster_name * | string | 要更新的集群名称 |
| cpu | string | 观察者的CPU(默认为2) |
| data_storage_class | string | 数据存储的存储类 |
| data_storage_size | string | 数据存储的大小(默认为50) |
| log_storage_class | string | 日志存储的存储类 |
| log_storage_size | string | 日志存储的大小(默认为20) |
| memory | string | 观察者的内存(默认为10) |
| namespace | string | 集群所在的命名空间(默认为"default") |
| redo_log_storage_class | string | 重做日志存储的存储类 |
| redo_log_storage_size | string | 重做日志存储的大小(默认为50) |
update_component更新OceanBase组件, 目前支持ob-operator,ob-dashboard, local-path-provisioner,cert-manager,不支持其他组件,| Parameter | Type | Description |
|---|---|---|
| component_name | string | 组件名称 |
update_memoryUpdate memory| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent identifier |
| content * | string | New content |
| memory_id * | integer | Memory ID |
| metadata | object | Updated metadata |
| user_id | string | User identifier |
update_tenant更新租户信息| Parameter | Type | Description |
|---|---|---|
| connect_white_list | string | 租户的连接白名单 |
| force | boolean | 是否强制执行操作 |
| namespace | string | 命名空间(默认为"default") |
| priority | string | 租户的可用区优先级,格式为'Zone=Priority',可使用逗号分隔多个优先级 |
| tenant_name * | string | 租户名称 |
upgrade_cluster升级OceanBase集群,请指定新的镜像| Parameter | Type | Description |
|---|---|---|
| cluster_name * | string | 要升级的集群名称 |
| image * | string | 观察者的镜像 |
| namespace | string | 集群所在的命名空间(默认为"default") |
upgrade_tenant升级租户| Parameter | Type | Description |
|---|---|---|
| force | boolean | 是否强制升级 |
| namespace | string | 命名空间(默认为"default") |
| tenant_name * | string | 租户名称 |
Security checks
Static checks derived from the repository a month ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 561 words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 48 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
The repository's README runs to about 561 words, fetched a month ago. The original in the repository is authoritative.
Read full README