reachthingsDocs
EN
Dashboard
OverviewEndpoint & transport
API reference · Overview

Endpoint & transport

One MCP endpoint over Streamable HTTP, protected by OAuth 2.1 bearer tokens. 15 tools, all JSON in and JSON out.

On this page

Endpoint

PathPurpose
POST /mcpMCP Streamable HTTP (JSON-RPC). Also GET for the server-to-client event stream and DELETE to end a session.
GET /.well-known/oauth-protected-resourceRFC 9728 resource metadata: which authorization server to use and which scopes exist.
GET /healthzLiveness of the connect host ({ ok: true }). Also shown on Status.
POST /mcp
PurposeMCP Streamable HTTP (JSON-RPC). Also GET for the server-to-client event stream and DELETE to end a session.
GET /.well-known/oauth-protected-resource
PurposeRFC 9728 resource metadata: which authorization server to use and which scopes exist.
GET /healthz
PurposeLiveness of the connect host ({ ok: true }). Also shown on Status.

Transport & sessions

The server speaks MCP Streamable HTTP. After initialize it returns an Mcp-Session-Id; send it on every later request. Calls without a session are still accepted, but then approvals can only happen on the console page, not inside the chat. Every request needs Authorization: Bearer <token> whose aud equals the MCP URL above; see How auth works.

Server info: name: "onoff-mcp". The server advertises tools.listChanged; when a tool or schema changes it bumps its registry revision and clients should re-list tools. Inputs are validated strictly against the current schemas: undeclared fields are rejected with INVALID_PARAMETERS.

Response format

Every tool returns both a short text content block (safe to show the user) and structuredContent with the machine-readable body. Command tools declare an output schema, so an error is a valid response too: isError: true with structuredContent.command_id: null and error.code.

{
  "content": [{ "type": "text", "text": "[queued] Queued. Check status shortly." }],
  "structuredContent": { "command_id": "cmd_3vX9", "status": "queued", "...": "..." },
  "isError": false
}

// an error before a command exists
{
  "content": [{ "type": "text", "text": "The requested device was not found or is not accessible from this connection." }],
  "structuredContent": { "command_id": null, "error": { "code": "DEVICE_NOT_ACCESSIBLE", "message": "..." } },
  "isError": true
}

All tools

ToolScopeWhat it does
list_devicesdevices:readReturns only the devices allowed for this connection: device ID, alias, kind, and connection status.
get_devicedevices:readReturns the allowed capabilities of a device with their input schemas, units and ranges, required approvals, control path, and each control capability's completion rule and verification rule.
get_device_statedevices:readReturns the latest known values for the attributes this connection may read.
execute_device_actiondevices:controlRuns one action on one device.
get_command_statusdevices:readReturns the acceptance, execution and verification status of a command with evidence.
cancel_commanddevices:controlCancels a command that has not been sent yet (waiting_approval or queued).
connect_device_accountdevices:readStarts linking the owner's LG ThinQ account from the conversation.
create_scheduledevices:controlSchedules a device command for a specific time (once) or on a daily or weekly recurrence.
list_schedulesdevices:readSchedules created by this connection (agent).
get_scheduledevices:readThe schedule definition and its 10 most recent runs.
update_scheduledevices:controlChanges the time, recurrence, timezone, end date, parameters, label, or grace period.
cancel_scheduledevices:controlCancels the schedule.
pause_scheduledevices:controlPauses a recurring schedule.
resume_scheduledevices:controlResumes a paused or blocked schedule after re-checking permission, connection, and approval.
list_schedule_runsdevices:readPer-run history of a schedule.
list_devices
Scopedevices:read
What it doesReturns only the devices allowed for this connection: device ID, alias, kind, and connection status.
get_device
Scopedevices:read
What it doesReturns the allowed capabilities of a device with their input schemas, units and ranges, required approvals, control path, and each control capability's completion rule and verification rule.
get_device_state
Scopedevices:read
What it doesReturns the latest known values for the attributes this connection may read.
execute_device_action
Scopedevices:control
What it doesRuns one action on one device.
get_command_status
Scopedevices:read
What it doesReturns the acceptance, execution and verification status of a command with evidence.
cancel_command
Scopedevices:control
What it doesCancels a command that has not been sent yet (waiting_approval or queued).
connect_device_account
Scopedevices:read
What it doesStarts linking the owner's LG ThinQ account from the conversation.
create_schedule
Scopedevices:control
What it doesSchedules a device command for a specific time (once) or on a daily or weekly recurrence.
list_schedules
Scopedevices:read
What it doesSchedules created by this connection (agent).
get_schedule
Scopedevices:read
What it doesThe schedule definition and its 10 most recent runs.
update_schedule
Scopedevices:control
What it doesChanges the time, recurrence, timezone, end date, parameters, label, or grace period.
cancel_schedule
Scopedevices:control
What it doesCancels the schedule.
pause_schedule
Scopedevices:control
What it doesPauses a recurring schedule.
resume_schedule
Scopedevices:control
What it doesResumes a paused or blocked schedule after re-checking permission, connection, and approval.
list_schedule_runs
Scopedevices:read
What it doesPer-run history of a schedule.