execute_hg_dml_sql
Execute a DML (INSERT, UPDATE, DELETE) SQL query in Hologres database
How to use it
execute_hg_dml_sql is exposed by the Alibabacloud Hologres MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the execute_hg_dml_sql tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Alibabacloud Hologres MCP Server
uvx hologres-mcp-server --transport streamable-http --host 0.0.0.0 --port 8000Other tools in Alibabacloud Hologres MCP Server (38)
Analyze a specific query's performance profile by its queryid from hgquerylog. Returns detailed metrics including duration, memory, CPU time, read/write stats.
Invoke a procedure in Hologres database
Cancel or terminate a running query by its process ID.
Create MaxCompute foreign tables in Hologres database.
Execute a DDL (CREATE, ALTER, DROP, COMMENT ON) SQL query in Hologres database
Execute a SELECT SQL query in Hologres database
Execute a SELECT SQL query in Hologres database with serverless computing
Collect table statistics in Hologres database
Get refresh history for a specific Dynamic Table, including duration, status, and latency.
Get execution plan in Hologres database
Get the current value of a GUC (Grand Unified Configuration) parameter.
Diagnose lock contention by showing blocking and waiting queries.
Get query plan in Hologres database
Get slow queries from hgquerylog ordered by duration.
Get table storage trend from hgtableinfo, showing daily storage size, file count, and row count changes.
Get table properties including distributionkey, clusteringkey, segmentkey, bitmapcolumns, binlog settings, etc.
Get table's Table Group and shard count info for diagnosing data skew.
Get storage size details of a table, including total, data, index, and metadata breakdown.
Get detailed running status and scaling progress of a computing group.
List currently active queries and connections from pgstatactivity.
List all data masking rules configured via hganon extension (column-level and user-level).
List all Dynamic Tables with their status, freshness settings, and last refresh info.
List all External Databases and Foreign Servers for Lakehouse acceleration. Requires V3.0+.
List all Query Queues and their classifiers (concurrency limits, routing rules). Requires V3.0+.
List all tables in the Hologres recycle bin (dropped tables that can be restored).
Lists all schemas in the current Hologres database, excluding system schemas.
Lists all tables in a specific schema, including their types (table, view, external table, partitioned table).
List all computing groups (warehouses) with their CPU, memory, cluster count, and status.
Create or drop a classifier for a Query Queue. Requires V3.0+.
Create, drop, or clear a Query Queue. Requires V3.0+ and superuser privileges.
Manage a computing group: suspend, resume, restart, rename, or resize. Requires superuser.
Execute a SELECT SQL query and generate a chart (bar, line, scatter, pie, histogram, area). Returns query results and a base64-encoded PNG image.
Query files directly from OSS using EXTERNALFILES function without creating foreign tables. Requires V4.1+.
Trigger shard rebalancing for a computing group to eliminate data skew.
Restore a dropped table from the Hologres recycle bin.
Set or remove properties on a Query Queue or classifier. Requires V3.0+.
Show the DDL script of a table, view, or external table in the Hologres database.
Switch the current session's computing resource to a specified warehouse.