get-data
Run SQL queries on a Coupler.io data flow execution to retrieve specific data.
Instructions
Get data from a Coupler.io data flow run. Make sure to first query a sample of 5 rows from data table, e.g. SELECT * from data LIMIT 5, and then run the get-schema tool, to better understand the structure. The get-schema tool will return the JSON-encoded schema of the data table. When visualizing the data, do not try to read any files or fetch any URLs, just generate a static page and use the data you get from the tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataflowId": "<dataflowId>",
"executionId": "<executionId>",
"query": "<query>"
},
"name": "get-data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL query to run on the data flow sqlite file. | |
| dataflowId | Yes | The ID of the data flow with a successful run | |
| executionId | Yes | The ID of the last successful run (execution) of the data flow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The data returned from the query. |