Skip to main content
Glama

databricks-mcp-server

get_table.go647 B
package tools import ( "context" "github.com/databricks/databricks-sdk-go/service/catalog" "github.com/mark3labs/mcp-go/mcp" ) // GetTable retrieves information about a single table using its full name (catalog.schema.table) // and returns it as a JSON string. func GetTable(ctx context.Context, request mcp.CallToolRequest) (interface{}, error) { w, err := WorkspaceClientFromContext(ctx) if err != nil { return nil, err } fullName := request.GetString("full_name", "") // Note: The Get method doesn't support omitProperties and omitColumns parameters return w.Tables.Get(ctx, catalog.GetTableRequest{ FullName: fullName, }) }

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/characat0/databricks-mcp-server'

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