Retro Eye care Haitian Deep Dark Default

Capability Catalog

This page describes the database tasks that users can complete through natural language, and the usage boundaries when connecting to ShardingSphere-Proxy or using a direct database connection.

Connection Targets

Connecting to ShardingSphere-Proxy

Use this mode to inspect ShardingSphere logical database structure, read rule state, run controlled SQL, or create reviewable rule change plans.

Available tasks include:

  • Inspecting logical databases, schemas, tables, views, columns, indexes, sequences, storage units, and single table mappings.
  • Searching metadata objects such as tables, views, columns, indexes, and storage units.
  • Running read-only SQL queries.
  • Previewing SQL that may change data, metadata, or rules.
  • Planning, reviewing, applying, and validating official DistSQL-only rule changes for data encryption, data masking, broadcast, readwrite-splitting, shadow, and sharding.

Usage boundaries:

  • Users see logical metadata exposed by Proxy. It is not equivalent to the complete catalog of every physical database.
  • Tasks that depend on ShardingSphere rules, algorithms, or rule change statements apply only to Proxy connections.
  • Side-effecting tasks should be previewed or planned first, then reviewed before execution.

Direct Database Connection

A direct database connection means that ShardingSphere-MCP connects to a user-provided database service such as MySQL or PostgreSQL without going through ShardingSphere-Proxy. Use this mode when ShardingSphere-MCP acts as a controlled access entry for an existing database, including metadata inspection, object search, and restricted SQL execution.

Available tasks include:

  • Inspecting databases, schemas, tables, views, columns, indexes, and sequences.
  • Searching metadata objects.
  • Running read-only SQL queries.
  • Previewing or executing ordinary DML, DDL, and DCL after explicit authorization.

Usage boundaries:

  • ShardingSphere rule state is not available.
  • Feature plugins that depend on ShardingSphere rules, such as data encryption, data masking, broadcast, readwrite-splitting, shadow, and sharding, do not apply.
  • Returned metadata comes from the target database itself and does not represent a ShardingSphere logical rule view.

Metadata Inspection

Task Natural language example Connection target User focus
List accessible databases “List the databases that can be accessed.” Proxy or direct database connection Confirm that database names match the configuration.
Inspect schemas or namespaces “Show schemas in <database-name>.” Proxy or direct database connection For multi-schema databases, confirm the target schema first.
Inspect tables or views “List tables and views in <schema-name>.” Proxy or direct database connection Proxy connections show logical objects.
Inspect columns “Show columns and column types for <table-name>.” Proxy or direct database connection Column types follow metadata visible from the connection target.
Inspect indexes “Show indexes for <table-name>.” Proxy or direct database connection With Proxy connections, index information may differ from the full physical database structure.
Inspect sequences “List sequences in <schema-name>.” Proxy or direct database connection Available only when the connection target exposes sequence metadata.
Inspect storage units “List storage units in <database-name>.” Proxy only Backed by SHOW STORAGE UNITS FROM <database-name>; sensitive connection properties are redacted or omitted.
Inspect storage unit usage “Which rules use storage unit write_ds?” Proxy only Backed by SHOW RULES USED STORAGE UNIT <storage-unit> FROM <database-name>.
Inspect single tables “Which storage unit contains single table t_user?” Proxy only Backed by SHOW SINGLE TABLE and SHOW SINGLE TABLES; use the default single table storage unit resource for new single tables.
Task Natural language example Connection target User focus
Search objects by name “Find tables whose names contain order.” Proxy or direct database connection Useful when the full object name is unknown.
Search by object type “Find tables and views whose names contain user.” Proxy or direct database connection Narrow the search to tables, views, columns, or other object types.
Search storage units “Find storage units whose names contain write.” Proxy only Uses database_gateway_search_metadata with object_types=["storage_unit"].
Continue from search results “Open the orders table found earlier and show columns and indexes.” Proxy or direct database connection Search results can provide context for follow-up natural-language tasks.

Queries and Ordinary SQL Changes

Task Natural language example Connection target User focus
Run a query “Query the first 10 rows from orders.” Proxy or direct database connection Use for sample data inspection or query result validation.
Limit returned rows “Query the first 100 rows from orders and do not return more.” Proxy or direct database connection Avoid returning too much data.
Preview an ordinary SQL change “Preview this SQL change without executing it.” Proxy or direct database connection Review impact before execution.
Confirm a previewed ordinary SQL change “Confirm and execute the SQL change that was just previewed.” Proxy or direct database connection Requires confirmation that side effects were reviewed.

Runtime Protection Limits

  • When the returned row count is not specified, a query returns at most 100 rows by default.
  • A single query can request at most 5000 rows. If the result is truncated, narrow the predicate, reduce the projection, or request fewer rows.
  • A query timeout can be requested by the task, up to 300000 milliseconds. When omitted, the Server default behavior is used.
  • Each MCP session has a tool-call quota. When the quota is exhausted, close the current session and create a new MCP session.
  • Console-style metadata SQL such as SHOW STORAGE UNITS and SHOW SINGLE TABLES remains blocked by database_gateway_execute_query. Use the corresponding MCP resources or recovery hints instead of raw SHOW passthrough.

ShardingSphere Rule Changes

Task Natural language example Connection target User focus
Check existing rules “Check whether orders.phone already has a masking rule.” Proxy only Rule state comes from ShardingSphere-Proxy.
Plan a data encryption rule “Plan reversible encryption for orders.status and preview it without execution.” Proxy only Review the rule DistSQL, algorithms, properties, and rule column names.
Plan a data masking rule “Plan phone-number masking for orders.phone, keep the first 3 and last 4 characters, and preview it without execution.” Proxy only Review the masking algorithm, properties, and impact scope.
Plan a broadcast rule “Plan config_region as a broadcast table and preview it without execution.” Proxy only Review logical table names and broadcast rule DistSQL.
Plan a readwrite rule “Plan a readwrite-splitting rule with write storage unit write_ds and read storage units read_ds_0, read_ds_1.” Proxy only Review existing storage units, load-balance algorithm, and status plan.
Plan a shadow rule “Plan a shadow rule for t_order using source storage unit ds_0 and shadow storage unit ds_shadow.” Proxy only Review existing storage units, algorithm properties, and cleanup proof.
Plan a sharding rule “Plan a sharding table rule for t_order with explicit data nodes and a standard strategy.” Proxy only Review data nodes, strategy, key generation, and unused component proof.
Adjust a rule plan “Change the previous plan to use AES.” Proxy only Preview again after changing the plan.
Apply a rule change “Confirm and execute the previous rule change plan.” Proxy only Side-effecting; review must be completed before execution.
Validate a rule change “Validate whether the previous masking rule has taken effect.” Proxy only Check rule state and workflow execution result.

For detailed usage, see Data Encryption, Data Masking, Broadcast, Readwrite-Splitting, Shadow, and Sharding.