Ubidots MCP by usefulapi
v1.2.1Read devices, variables, last values and time-series statistics in Ubidots.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ubidots_list_devices List devices
List the devices in the account with label, name, last activity, tags and variable count. Start here to find a device id or label. Ubidots API: GET /api/v2.0/devices/.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number for pagination (default 1). |
page_size | integer | Items per page (default 50; variables 200). |
ubidots_get_device Get a device
Get one device by id or ~label: its location properties, active state, organization and variable count. Ubidots API: GET /api/v2.0/devices/{key}/.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id, or label with a ~ prefix (for example ~my-sensor). From ubidots_list_devices. |
ubidots_get_device_last_values Get a device's last values
Get the most recent value of every variable of one device, with timestamps. Good for a current reading. Ubidots API: GET /api/v2.0/devices/{key}/_/values/last.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id, or label with a ~ prefix (for example ~my-sensor). From ubidots_list_devices. |
ubidots_list_variables List variables
List variables across all devices with their type, unit, device, last value and last activity. Ubidots API: GET /api/v2.0/variables/.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number for pagination (default 1). |
page_size | integer | Items per page (default 50; variables 200). |
ubidots_list_device_variables List a device's variables
List the variables of one device (id or ~label), with type, unit and last activity. Ubidots API: GET /api/v2.0/devices/{key}/variables/.
| Parameter | Type | Description |
|---|---|---|
device * | string | Device id, or label with a ~ prefix (for example ~my-sensor). From ubidots_list_devices. |
page | integer | Page number for pagination (default 1). |
page_size | integer | Items per page (default 50; variables 200). |
ubidots_get_variable Get a variable
Get one variable by id: its device, type, unit, expression (for synthetic variables), last value and the link to its values. Ubidots API: GET /api/v2.0/variables/{id}/.
| Parameter | Type | Description |
|---|---|---|
variable_id * | string | Variable id (from ubidots_list_variables or ubidots_list_device_variables). |
ubidots_get_data_series Get time-series data
Read the raw time-series data points of one or more variables between two epoch-millisecond times. Each variable returns its own code, so one variable can fail without failing the rest. Ubidots API: POST /api/v2.0/data/series/ (read only).
| Parameter | Type | Description |
|---|---|---|
end * | integer | Time as epoch milliseconds. |
start * | integer | Time as epoch milliseconds. |
variables * | array | Variables to query (minimum 1). |
columns | array | Columns to include per data point. |
decimalPlaces | integer | Decimal places for values (0-16). |
results_data | boolean | false returns only the variable check, with empty results. |
results_format | string | tabular (arrays, default) or object (named keys). |
storage | string | Storage tier to query. |
ubidots_get_data_statistics Get data statistics
Compute aggregate statistics (first, last, min, max, count, sum, mean, std, p25, p50, p75) of one or more variables over a time range. Ubidots API: POST /api/v2.0/data/statistics/ (read only).
| Parameter | Type | Description |
|---|---|---|
end * | integer | Time as epoch milliseconds. |
start * | integer | Time as epoch milliseconds. |
variables * | array | Variables to query (minimum 1). |
aggregations | array | Statistics to compute. Omit for all eleven. |
decimalPlaces | integer | Decimal places for values (0-16). |