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
| Path | Purpose |
|---|---|
| POST /mcp | MCP 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 | RFC 9728 resource metadata: which authorization server to use and which scopes exist. |
| GET /healthz | Liveness of the connect host ({ ok: true }). Also shown on Status. |
- POST /mcp
- PurposeMCP Streamable HTTP (JSON-RPC). Also
GETfor the server-to-client event stream andDELETEto 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
| Tool | Scope | What it does |
|---|---|---|
| list_devices | devices:read | Returns only the devices allowed for this connection: device ID, alias, kind, and connection status. |
| get_device | devices:read | Returns 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 | devices:read | Returns the latest known values for the attributes this connection may read. |
| execute_device_action | devices:control | Runs one action on one device. |
| get_command_status | devices:read | Returns the acceptance, execution and verification status of a command with evidence. |
| cancel_command | devices:control | Cancels a command that has not been sent yet (waiting_approval or queued). |
| connect_device_account | devices:read | Starts linking the owner's LG ThinQ account from the conversation. |
| create_schedule | devices:control | Schedules a device command for a specific time (once) or on a daily or weekly recurrence. |
| list_schedules | devices:read | Schedules created by this connection (agent). |
| get_schedule | devices:read | The schedule definition and its 10 most recent runs. |
| update_schedule | devices:control | Changes the time, recurrence, timezone, end date, parameters, label, or grace period. |
| cancel_schedule | devices:control | Cancels the schedule. |
| pause_schedule | devices:control | Pauses a recurring schedule. |
| resume_schedule | devices:control | Resumes a paused or blocked schedule after re-checking permission, connection, and approval. |
| list_schedule_runs | devices:read | Per-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_approvalorqueued).
- 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.