@@ -76,20 +76,37 @@ class ListTablesPageInput(BaseModel):
7676
7777*/
7878
79- type QueryInput struct {
80- SQL string `json:"sql" yaml:"sql"`
81- Parameters []interface {} `json:"parameters,omitempty" yaml:"parameters,omitempty"`
82- RowLimit int `json:"row_limit" yaml:"row_limit"`
83- Format string `json:"format" yaml:"format"`
79+ type greetInput struct {
80+ Name string `json:"name" jsonschema:"the person to greet"`
8481}
8582
86- type QueryJSONInput struct {
87- SQL string `json:"sql" yaml:"sql"`
88- Parameters []interface {} `json:"parameters,omitempty" yaml:"parameters,omitempty"`
89- RowLimit int `json:"row_limit" yaml:"row_limit"`
83+ type hierarchyInput struct {
84+ Provider string `json:"provider" yaml:"provider"`
85+ Service string `json:"service" yaml:"service"`
86+ Resource string `json:"resource" yaml:"resource"`
87+ Method string `json:"method" yaml:"method"`
9088}
9189
92- type ListSchemasInput struct {
90+ type serverInfoOutput struct {
91+ Name string `json:"name" jsonschema:"server name"`
92+ Info string `json:"info" jsonschema:"server info"`
93+ IsReadOnly bool `json:"read_only" jsonschema:"is the database read-only"`
94+ }
95+
96+ type queryInput struct {
97+ SQL string `json:"sql" yaml:"sql"`
98+ Parameters []string `json:"parameters,omitempty" yaml:"parameters,omitempty"`
99+ RowLimit int `json:"row_limit" yaml:"row_limit"`
100+ Format string `json:"format" yaml:"format"`
101+ }
102+
103+ type queryJSONInput struct {
104+ SQL string `json:"sql" yaml:"sql"`
105+ Parameters []string `json:"parameters,omitempty" yaml:"parameters,omitempty"`
106+ RowLimit int `json:"row_limit" yaml:"row_limit"`
107+ }
108+
109+ type listSchemasInput struct {
93110 IncludeSystem bool `json:"include_system" yaml:"include_system"`
94111 IncludeTemp bool `json:"include_temp" yaml:"include_temp"`
95112 RequireUsage bool `json:"require_usage" yaml:"require_usage"`
@@ -98,7 +115,7 @@ type ListSchemasInput struct {
98115 CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
99116}
100117
101- type ListSchemasPageInput struct {
118+ type listSchemasPageInput struct {
102119 IncludeSystem bool `json:"include_system" yaml:"include_system"`
103120 IncludeTemp bool `json:"include_temp" yaml:"include_temp"`
104121 RequireUsage bool `json:"require_usage" yaml:"require_usage"`
@@ -108,19 +125,19 @@ type ListSchemasPageInput struct {
108125 CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
109126}
110127
111- type ListTablesInput struct {
112- DBSchema * string `json:"db_schema ,omitempty" yaml:"db_schema ,omitempty"`
113- NameLike * string `json:"name_like,omitempty" yaml:"name_like,omitempty"`
114- CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
115- TableTypes []string `json:"table_types,omitempty" yaml:"table_types,omitempty"`
116- RowLimit int `json:"row_limit" yaml:"row_limit"`
128+ type listTablesInput struct {
129+ Hierarchy * hierarchyInput `json:"hierarchy ,omitempty" yaml:"hierarchy ,omitempty"`
130+ NameLike * string `json:"name_like,omitempty" yaml:"name_like,omitempty"`
131+ CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
132+ TableTypes []string `json:"table_types,omitempty" yaml:"table_types,omitempty"`
133+ RowLimit int `json:"row_limit" yaml:"row_limit"`
117134}
118135
119- type ListTablesPageInput struct {
120- DBSchema * string `json:"db_schema ,omitempty" yaml:"db_schema ,omitempty"`
121- NameLike * string `json:"name_like,omitempty" yaml:"name_like,omitempty"`
122- CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
123- TableTypes []string `json:"table_types,omitempty" yaml:"table_types,omitempty"`
124- PageSize int `json:"page_size" yaml:"page_size"`
125- Cursor * string `json:"cursor,omitempty" yaml:"cursor,omitempty"`
136+ type listTablesPageInput struct {
137+ Hierarchy * hierarchyInput `json:"hierarchy ,omitempty" yaml:"hierarchy ,omitempty"`
138+ NameLike * string `json:"name_like,omitempty" yaml:"name_like,omitempty"`
139+ CaseSensitive bool `json:"case_sensitive" yaml:"case_sensitive"`
140+ TableTypes []string `json:"table_types,omitempty" yaml:"table_types,omitempty"`
141+ PageSize int `json:"page_size" yaml:"page_size"`
142+ Cursor * string `json:"cursor,omitempty" yaml:"cursor,omitempty"`
126143}
0 commit comments