Device Magic MCP by usefulapi

v1.20.1
io.usefulapi/device-magic Checked 1 day ago Published 6 hours ago

Read Device Magic forms, submissions, devices and groups; send and revoke dispatches.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

devicemagic_list_forms List forms

List the organization's forms: id, namespace (the form's unique id used for dispatching), version, description and group. GET /organizations/{org}/forms.json.

devicemagic_get_form Get form definition

One form's definition: title and its questions/pages with identifiers and types (the identifiers are the keys inside submissions and dispatch payloads). Optionally a specific version. GET /organizations/{org}/forms/{id}.json.

ParameterTypeDescription
form_id *integerForm id (field `id` of list_forms).
versionstringForm version such as 1.03; default = the latest.

devicemagic_list_submissions List form submissions

Submitted data of one form, newest data as stored in the form's Device Magic Database destination (it must be active on that form). Each record has form info, metadata (device, user, submitted_at, received_at, submission_id) and the answers. The reply says current_page, total_pages and total_count. Filter by from_date/to_date (yyyy-mm-dd). GET /api/forms/{id}/device_magic_database.json.

ParameterTypeDescription
form_id *integerForm id (field `id` of list_forms).
from_datestringOnly submissions from this date (yyyy-mm-dd).
pageintegerPage number, 1-based (use total_pages from the reply).
per_pageintegerSubmissions per page, 1-100 (default 25).
to_datestringOnly submissions up to this date (yyyy-mm-dd).

devicemagic_list_devices List devices

List the organization's devices (phones, tablets, web-form users): id, identifier, owner, description, group and whether approval is pending. GET /organizations/{org}/devices.json.

devicemagic_get_device Get device

One device: id, identifier, owner, description, pending_approval, groups and custom attributes. GET /organizations/{org}/devices/{id}.json.

ParameterTypeDescription
device_id *integerNumeric device id (field `id` of list_devices).

devicemagic_list_groups List groups

List the organization's groups (which devices see which forms), optionally narrowed by a name filter or by tags. GET /api/v2/organizations/{org}/groups.json.

ParameterTypeDescription
filterstringGroup name to look for, e.g. Default (the vendor matches part of the name).
pageintegerPage number, 1-based (default 1).
tagsarrayOnly groups having any of these tags (the vendor matches any tag).

devicemagic_list_resources List resources

List the organization's resources (lookup tables and files used by forms): id, original filename, version, description. GET /api/resources.json.

devicemagic_describe_resource Describe resource

Metadata of one resource: status, version and, for spreadsheets, its tables and columns. The file content itself is not downloaded. GET /api/resources/{id}/describe.json.

ParameterTypeDescription
resource_id *integerResource id (field `id` of list_resources).

devicemagic_list_destinations List form destinations

List where one form's submissions are sent (e-mail, Dropbox, database, ...): id, active flag, format and transport types, timestamps. GET /api/forms/{id}/destinations.json.

ParameterTypeDescription
form_id *integerForm id (field `id` of list_forms).

devicemagic_get_destination Get form destination

One destination of a form. Credentials and tokens of the destination are never returned. GET /api/forms/{form_id}/destinations/{id}.json.

ParameterTypeDescription
destination_id *integerDestination id (field `id` of list_destinations).
form_id *integerForm id.

devicemagic_list_dispatches List outstanding dispatches

Outstanding dispatches (prefilled forms pushed to devices and not yet completed) of the whole organization: id, form name and namespace, device, scheduled time. Dispatch is an Enterprise-plan feature. GET /api/v2/organizations/{org}/dispatches.json.

devicemagic_list_device_dispatches List a device's outstanding dispatches

Outstanding dispatches of one device. GET /api/v2/devices/{identifier}/dispatches.json.

ParameterTypeDescription
device_identifier *stringDevice identifier (field `identifier` of a device, e.g. iPhone_abcdef1234567890).

devicemagic_get_dispatch Get dispatch with prefilled values

One dispatch of a device including the values it was prefilled with. GET /api/v3/devices/{identifier}/dispatches/{id}.json?include_inputs=true.

ParameterTypeDescription
device_identifier *stringDevice identifier (field `identifier` of a device, e.g. iPhone_abcdef1234567890).
dispatch_id *integerDispatch id (field `id` of a dispatch list).

devicemagic_list_dispatch_recipients List dispatch recipients

Devices and web-forms users a dispatch can be sent to (first 100 by default; use items and page for more). GET /api/v3/dispatch_authors.json.

ParameterTypeDescription
itemsintegerResults per page (default 100).
pageintegerPage number, 1-based.

devicemagic_send_dispatch Send a form to a device (dispatch)

WRITE: pushes a form, optionally prefilled, to one device where its user will see it (like assigning a job). Not idempotent: calling it twice sends two dispatches. Needs the Enterprise plan. The form is named by its namespace (list_forms); `payload` maps question identifiers (get_form) to prefilled values (subforms = nested objects, repeat groups = arrays). POST /api/v2/devices/{identifier}/dispatches.json.

ParameterTypeDescription
confirm *booleanMust be true: you confirm the form is sent to this device now (its user sees it).
device_identifier *stringDevice identifier (field `identifier` of a device, e.g. iPhone_abcdef1234567890).
form_namespace *stringForm namespace (field `namespace` of list_forms).
form_descriptionstringDescription shown to the device user (Device Magic allows at most 255 characters).
form_namestringTitle shown to the device user.
payloadobjectPrefilled values keyed by question identifier.
scheduled_atstringWhen the dispatch becomes due, ISO 8601 such as 2026-11-02T09:00:00Z.

devicemagic_revoke_dispatch Revoke a dispatch

WRITE: withdraws one outstanding dispatch from a device (the form disappears from the device). It cannot be undone, but the dispatch can be sent again. DELETE /api/v2/devices/{identifier}/dispatches/{id}.json.

ParameterTypeDescription
confirm *booleanMust be true: you confirm the dispatch is withdrawn from the device.
device_identifier *stringDevice identifier (field `identifier` of a device, e.g. iPhone_abcdef1234567890).
dispatch_id *integerDispatch id (from list_device_dispatches).

devicemagic_approve_device Approve a pending device

WRITE: approves a device that is waiting for approval (pending_approval is true) so it can receive forms. Approving an approved device has no effect. POST /organizations/{org}/devices/{id}/approve.

ParameterTypeDescription
device_id *integerNumeric device id (field `id` of list_devices).