Skip to main content
Glama
aliyun

Hologres MCP Server

Official
by aliyun

list_hg_schemas

Retrieve all user-accessible schemas in a Hologres database, excluding system schemas, to facilitate database metadata exploration and management.

Instructions

List all schemas in the current Hologres database, excluding system schemas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for the 'list_hg_schemas' tool inside the call_tool function. It constructs the SQL query to fetch all non-system schemas from the database.
    elif name == "list_hg_schemas": query = """ SELECT table_schema FROM information_schema.tables WHERE table_schema NOT IN ('pg_catalog', 'information_schema','hologres','hologres_statistic','hologres_streaming_mv') GROUP BY table_schema ORDER BY table_schema; """
  • Registration of the 'list_hg_schemas' tool within the list_tools() function, including its name, description, and input schema (no parameters required).
    Tool( name="list_hg_schemas", description="List all schemas in the current Hologres database, excluding system schemas.", inputSchema={ "type": "object", "properties": {}, "required": [] } ),
  • Input schema definition for the 'list_hg_schemas' tool, which requires no input parameters.
    inputSchema={ "type": "object", "properties": {}, "required": [] }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aliyun/alibabacloud-hologres-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server