You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,12 +43,14 @@ Remove this line, if you're offline or if you specifically want to use the image
43
43
44
44
## Tools
45
45
### Data flows
46
-
-**get-data** - Gets the result of a data flow run as a SQLite file and executes a read-only query on it.
46
+
-**get-data** - Gets the result of a data flow run as a SQLite file and executes a read-only query on it. Currently, only data flows built from a dashboard or dataset template are supported.
47
47
-`dataflowId`: Data flow ID (`string`, **required**)
48
+
-`executionId`: Data flow run ID (`string`, **required**)
48
49
-`query`: Query to run on the data flow SQLite file (`string`, **required**)
49
50
50
-
-**get-schema** - Gets the data flow schema file.
51
+
-**get-schema** - Gets the data flow schema file. Currently, only data flows built from a dashboard or dataset template are supported.
51
52
-`dataflowId`: Data flow ID (`string`, **required**)
53
+
-`executionId`: Data flow run ID (`string`, **required**)
text: 'Missing or invalid required parameter: query must be a non-empty string'
160
+
text: 'Invalid parameters for get-data tool. Validation error: Required at "query"'
157
161
}]
158
162
})
159
163
})
160
164
161
165
it('returns error on invalid dataflowId',async()=>{
162
166
consttoolResult=awaithandler({
163
167
dataflowId: 123,
168
+
executionId: true,
164
169
query: 'SELECT * FROM data'
165
170
})
166
171
167
172
expect(toolResult).toEqual({
168
173
isError: true,
169
174
content: [{
170
175
type: 'text',
171
-
text: 'Missing or invalid required parameter: dataflowId must be a non-empty string'
176
+
text: 'Invalid parameters for get-data tool. Validation error: Expected string, received number at "dataflowId"; Expected string, received boolean at "executionId"'
text: 'Missing or invalid required parameter: dataflowId must be a non-empty string',
136
+
text: 'Invalid parameters for get-schema tool. Validation error: Expected string, received number at "dataflowId"; Expected string, received boolean at "executionId"',
0 commit comments