Skip to main content
Glama
DeepaRajareddy

Redshift MCP Server

redshift_list_tables

List all tables in a specific Redshift schema to explore database structure and identify available data tables for querying.

Instructions

List all tables in a specific schema. Args: schema: The schema name (default: "public") Returns: JSON list of table names

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNopublic

Implementation Reference

  • The handler function for the 'redshift_list_tables' tool, decorated with @mcp.tool() for registration. It generates a SQL query to list tables in the specified schema and delegates execution to the 'redshift_query' tool.
    @mcp.tool() def redshift_list_tables(schema: str = "public") -> str: """ List all tables in a specific schema. Args: schema: The schema name (default: "public") Returns: JSON list of table names """ sql = f""" SELECT table_name FROM information_schema.tables WHERE table_schema = '{schema}' AND table_type = 'BASE TABLE' """ return redshift_query(sql)

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/DeepaRajareddy/redshift_mcp_server'

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