Ubidots MCP by usefulapi

v1.2.1
io.usefulapi/ubidots Checked 2 days ago Published 12 hours ago

Read 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/.

ParameterTypeDescription
pageintegerPage number for pagination (default 1).
page_sizeintegerItems 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}/.

ParameterTypeDescription
device *stringDevice 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.

ParameterTypeDescription
device *stringDevice 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/.

ParameterTypeDescription
pageintegerPage number for pagination (default 1).
page_sizeintegerItems 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/.

ParameterTypeDescription
device *stringDevice id, or label with a ~ prefix (for example ~my-sensor). From ubidots_list_devices.
pageintegerPage number for pagination (default 1).
page_sizeintegerItems 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}/.

ParameterTypeDescription
variable_id *stringVariable 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).

ParameterTypeDescription
end *integerTime as epoch milliseconds.
start *integerTime as epoch milliseconds.
variables *arrayVariables to query (minimum 1).
columnsarrayColumns to include per data point.
decimalPlacesintegerDecimal places for values (0-16).
results_databooleanfalse returns only the variable check, with empty results.
results_formatstringtabular (arrays, default) or object (named keys).
storagestringStorage 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).

ParameterTypeDescription
end *integerTime as epoch milliseconds.
start *integerTime as epoch milliseconds.
variables *arrayVariables to query (minimum 1).
aggregationsarrayStatistics to compute. Omit for all eleven.
decimalPlacesintegerDecimal places for values (0-16).